Bug 41730 - MTOUCH: error MT4109
Summary: MTOUCH: error MT4109
Status: RESOLVED DUPLICATE of bug 41319
Alias: None
Product: iOS
Classification: Xamarin
Component: Tools ()
Version: XI 9.8 (tvOS / C7)
Hardware: PC Mac OS
: --- normal
Target Milestone: Untriaged
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2016-06-11 10:01 UTC by Dmitry Khotyanovich
Modified: 2016-06-14 05:57 UTC (History)
3 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED DUPLICATE of bug 41319

Description Dmitry Khotyanovich 2016-06-11 10:01:01 UTC
Description of Problem:
From window build output:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++  -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.3.sdk -Qunused-arguments -miphoneos-version-min=8.0 -arch arm64 -c -o /Users/dmitrykhotyanovich/Projects/lthealth-mobileapp/LT.LTHealth.iOS/obj/iPhone/Release/mtouch-cache/MvvmCross.Plugins.PhoneCall.iOS.dll.arm64.o -x assembler /Users/dmitrykhotyanovich/Projects/lthealth-mobileapp/LT.LTHealth.iOS/obj/iPhone/Release/mtouch-cache/MvvmCross.Plugins.PhoneCall.iOS.dll.arm64.s
		/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++  -Wno-receiver-forward-class -gdwarf-2 -I/Library/Frameworks/Xamarin.iOS.framework/Versions/9.8.0.323/SDKs/MonoTouch.iphoneos.sdk/usr/include -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.3.sdk -Qunused-arguments -miphoneos-version-min=8.0 -arch arm64 -c -o /Users/dmitrykhotyanovich/Projects/lthealth-mobileapp/LT.LTHealth.iOS/obj/iPhone/Release/mtouch-cache/registrar.arm64.o -x objective-c++ /Users/dmitrykhotyanovich/Projects/lthealth-mobileapp/LT.LTHealth.iOS/obj/iPhone/Release/mtouch-cache/64/registrar.m
		MONO_PATH=/Users/dmitrykhotyanovich/Projects/lthealth-mobileapp/LT.LTHealth.iOS/obj/iPhone/Release/mtouch-cache/64/Build /Library/Frameworks/Xamarin.iOS.framework/Versions/9.8.0.323/bin/arm64-darwin-mono-sgen --debug -O=gsharedvt  --aot=mtriple=arm64-ios,data-outfile=/Users/dmitrykhotyanovich/Projects/lthealth-mobileapp/LT.LTHealth.iOS/obj/iPhone/Release/mtouch-cache/MvvmCross.Plugins.DownloadCache.iOS.arm64.aotdata,static,asmonly,direct-icalls,full,nodebug,dwarfdebug,outfile=/Users/dmitrykhotyanovich/Projects/lthealth-mobileapp/LT.LTHealth.iOS/obj/iPhone/Release/mtouch-cache/MvvmCross.Plugins.DownloadCache.iOS.dll.arm64.s "/Users/dmitrykhotyanovich/Projects/lthealth-mobileapp/LT.LTHealth.iOS/obj/iPhone/Release/mtouch-cache/64/Build/MvvmCross.Plugins.DownloadCache.iOS.dll"
		Mono Ahead of Time compiler - compiling assembly /Users/dmitrykhotyanovich/Projects/lthealth-mobileapp/LT.LTHealth.iOS/obj/iPhone/Release/mtouch-cache/64/Build/MvvmCross.Plugins.DownloadCache.iOS.dll
		Code: 134176(73%) Info: 1875(1%) Ex Info: 11853(6%) Unwind Info: 1902(1%) Class Info: 151(0%) PLT: 1322(0%) GOT Info: 29810(16%) Offsets: 1667(0%) GOT: 11688
		Compiled: 486/486 (100%), No GOT slots: 289 (59%), Direct calls: 70 (2333%)
		Output file: '/Users/dmitrykhotyanovich/Projects/lthealth-mobileapp/LT.LTHealth.iOS/obj/iPhone/Release/mtouch-cache/MvvmCross.Plugins.DownloadCache.iOS.dll.arm64.s'.
		Linking symbol: '_mono_aot_module_MvvmCross_Plugins_DownloadCache_iOS_info'.
		JIT time: 92 ms, Generation time: 64 ms, Assembly+Link time: 0 ms.
		
		/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++  -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.3.sdk -Qunused-arguments -miphoneos-version-min=8.0 -arch arm64 -c -o /Users/dmitrykhotyanovich/Projects/lthealth-mobileapp/LT.LTHealth.iOS/obj/iPhone/Release/mtouch-cache/MvvmCross.Plugins.DownloadCache.iOS.dll.arm64.o -x assembler /Users/dmitrykhotyanovich/Projects/lthealth-mobileapp/LT.LTHealth.iOS/obj/iPhone/Release/mtouch-cache/MvvmCross.Plugins.DownloadCache.iOS.dll.arm64.s
		Process exited with code 1, command:
		/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++  -Wno-receiver-forward-class -gdwarf-2 -I/Library/Frameworks/Xamarin.iOS.framework/Versions/9.8.0.323/SDKs/MonoTouch.iphoneos.sdk/usr/include -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.3.sdk -Qunused-arguments -miphoneos-version-min=8.0 -arch arm64 -c -o /Users/dmitrykhotyanovich/Projects/lthealth-mobileapp/LT.LTHealth.iOS/obj/iPhone/Release/mtouch-cache/registrar.arm64.o -x objective-c++ /Users/dmitrykhotyanovich/Projects/lthealth-mobileapp/LT.LTHealth.iOS/obj/iPhone/Release/mtouch-cache/64/registrar.m
		/Users/dmitrykhotyanovich/Projects/lthealth-mobileapp/LT.LTHealth.iOS/obj/iPhone/Release/mtouch-cache/64/registrar.m:16109:17: warning: method 'collectionView:numberOfItemsInSection:' in protocol 'UICollectionViewDataSource' not implemented [-Wprotocol]
		@implementation MvvmCross_Binding_iOS_Views_MvxBaseCollectionViewSource { } 
		                ^ 
		/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.3.sdk/System/Library/Frameworks/UIKit.framework/Headers/UICollectionView.h:51:1: note: method 'collectionView:numberOfItemsInSection:' declared here
		- (NSInteger)collectionView:(UICollectionView *)collectionView numberOfItemsInSection:(NSInteger)section;
		^ 
		/Users/dmitrykhotyanovich/Projects/lthealth-mobileapp/LT.LTHealth.iOS/obj/iPhone/Release/mtouch-cache/64/registrar.m:16679:16: error: 'init' is unavailable
		                        rv = [super init];
		                                    ^ 
		/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.3.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIActivityItemProvider.h:32:1: note: 'init' has been explicitly marked unavailable here
		- (instancetype)init NS_UNAVAILABLE;
		^ 
		1 warning and 1 error generated.
		
		Mono Ahead of Time compiler - compiling assembly /Users/dmitrykhotyanovich/Projects/lthealth-mobileapp/LT.LTHealth.iOS/obj/iPhone/Release/mtouch-cache/64/Build/System.dll
		Code: 946572(82%) Info: 20909(1%) Ex Info: 47631(4%) Unwind Info: 7275(0%) Class Info: 17780(1%) PLT: 3779(0%) GOT Info: 87243(7%) Offsets: 16477(1%) GOT: 46832
		Compiled: 3860/3860 (100%), No GOT slots: 2378 (61%), Direct calls: 4962 (112%)
		Output file: '/Users/dmitrykhotyanovich/Projects/lthealth-mobileapp/LT.LTHealth.iOS/obj/iPhone/Release/mtouch-cache/System.dll.arm64.s'.
		Linking symbol: '_mono_aot_module_System_info'.
		JIT time: 657 ms, Generation time: 842 ms, Assembly+Link time: 19 ms.
		
		/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++  -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.3.sdk -Qunused-arguments -miphoneos-version-min=8.0 -arch arm64 -c -o /Users/dmitrykhotyanovich/Projects/lthealth-mobileapp/LT.LTHealth.iOS/obj/iPhone/Release/mtouch-cache/System.dll.arm64.o -x assembler /Users/dmitrykhotyanovich/Projects/lthealth-mobileapp/LT.LTHealth.iOS/obj/iPhone/Release/mtouch-cache/System.dll.arm64.s
MTOUCH: error MT4109: Failed to compile the generated registrar code. Please file a bug report at http://bugzilla.xamarin.com
	Task "MTouch" execution -- FAILED
	Done building target "_CompileToNative" in project "/Users/dmitrykhotyanovich/Projects/lthealth-mobileapp/LT.LTHealth.iOS/LT.LTHealth.iOS.csproj".-- FAILED
	
Done building project "/Users/dmitrykhotyanovich/Projects/lthealth-mobileapp/LT.LTHealth.iOS/LT.LTHealth.iOS.csproj".-- FAILED

Build FAILED.



Steps to reproduce the problem:
1. update xamarin studio
2. rebuild all packages with configuration release/device. It's not reproduced if configuration has debug/simulater


Actual Results:
MTOUCH: error MT4109

Expected Results:
package.

How often does this happen? 
always.

Additional Information:

after update of
Comment 1 Rolf Bjarne Kvinge [MSFT] 2016-06-14 05:57:57 UTC

*** This bug has been marked as a duplicate of bug 41319 ***