Bug 30887 - MTOUCH: error MT3001: Could not AOT the assembly Siaqodb.dll
Summary: MTOUCH: error MT3001: Could not AOT the assembly Siaqodb.dll
Status: RESOLVED FIXED
Alias: None
Product: iOS
Classification: Xamarin
Component: Xamarin.iOS.dll ()
Version: XI 8.10
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: Untriaged
Assignee: Sebastien Pouliot
URL:
Depends on:
Blocks:
 
Reported: 2015-06-08 03:00 UTC by martink
Modified: 2015-09-03 15:41 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 FIXED

Description martink 2015-06-08 03:00:49 UTC
Am able to do an Ad Hoc build, but fails when doing an App Store build:

AOT Compilation exited with code 134, command:
		MONO_PATH=/<redacted>/obj/iPhone/AppStore/mtouch-cache/64/Build /Library/Frameworks/Xamarin.iOS.framework/Versions/8.10.1.64/bin/arm64-darwin-mono-sgen --debug --llvm -O=gsharedvt  --aot=mtriple=arm64-ios,full,static,asmonly,direct-icalls,nodebug,dwarfdebug,llvm-path=/Library/Frameworks/Xamarin.iOS.framework/Versions/8.10.1.64/LLVM/bin64/,outfile=/<redacted>/obj/iPhone/AppStore/mtouch-cache/Siaqodb.dll.arm64.s,llvm-outfile=/<redacted>/obj/iPhone/AppStore/mtouch-cache/Siaqodb.dll.arm64-llvm.s "/<redacted>/obj/iPhone/AppStore/mtouch-cache/64/Build/Siaqodb.dll"
		WARNING: The runtime version supported by this application is unavailable.
		Using default runtime: v4.0.30319
		Mono Ahead of Time compiler - compiling assembly /Users/martin/Projects/PGPCapture.Droid/PGPCapture.iOS/obj/iPhone/AppStore/mtouch-cache/64/Build/Siaqodb.dll
		Executing opt: "/Library/Frameworks/Xamarin.iOS.framework/Versions/8.10.1.64/LLVM/bin64/opt" -f -targetlibinfo -no-aa -basicaa -notti -instcombine -simplifycfg -inline-cost -inline -sroa -domtree -early-cse -lazy-value-info -correlated-propagation -simplifycfg -instcombine -simplifycfg -reassociate -domtree -loops -loop-simplify -lcssa -loop-rotate -licm -lcssa -loop-unswitch -instcombine -scalar-evolution -loop-simplify -lcssa -indvars -loop-idiom -loop-deletion -loop-unroll -memdep -gvn -memdep -memcpyopt -sccp -instcombine -lazy-value-info -correlated-propagation -domtree -memdep -adce -simplifycfg -instcombine -strip-dead-prototypes -domtree -verify -o "/<redacted>/obj/iPhone/AppStore/mtouch-cache/Siaqodb.dll.arm64.s.opt.bc" "/<redacted>/obj/iPhone/AppStore/mtouch-cache/Siaqodb.dll.arm64.s.bc"
		Executing llc: "/Library/Frameworks/Xamarin.iOS.framework/Versions/8.10.1.64/LLVM/bin64/llc"  -asm-verbose=false -disable-gnu-eh-frame -enable-mono-eh-frame -mtriple=arm64-ios -mono-eh-frame-symbol=mono_aot_Siaqodb_eh_frame -relocation-model=static -o "/<redacted>/obj/iPhone/AppStore/mtouch-cache/Siaqodb.dll.arm64-llvm.s" "/<redacted>/obj/iPhone/AppStore/mtouch-cache/Siaqodb.dll.arm64.s.opt.bc"
		Error setting up #=q3QMNyca8izPEGXAJ3DyXdvMeMq9$QZGpWC4so5d4Sc0= class vtable
			
MTOUCH: error MT3001: Could not AOT the assembly '/Users/martin/Projects/PGPCapture.Droid/PGPCapture.iOS/obj/iPhone/AppStore/mtouch-cache/64/Build/Siaqodb.dll'
		  at MonoTouch.AOTTask.Build () [0x00000] in <filename unknown>:0 
		  at MonoTouch.BuildTask.Execute () [0x00000] in <filename unknown>:0 
		  at MonoTouch.Target+<Compile>c__AnonStorey0.<>m__0 (MonoTouch.BuildTask v) [0x00000] in <filename unknown>:0 
		  at System.Threading.Tasks.Parallel+<ForEachWorker>c__AnonStorey6`2[MonoTouch.BuildTask,System.Object].<>m__0 (Int32 i) [0x00000] in <filename unknown>:0 
		  at System.Threading.Tasks.Parallel+<ForWorker>c__AnonStorey3`1[System.Object].<>m__1 () [0x00000] in <filename unknown>:0 
	Task "MTouch" execution -- FAILED
Comment 1 Sebastien Pouliot 2015-06-08 09:26:58 UTC
`MT3001` errors means to AOT compiler could not complete it’s job. Without a full build log (one done with `-v -v -v -v) it’s not possible to guess why it happened, nor to suggest potential workaround.

The best way to get this resolved is to attach the assembly that resulted in the `MT3001` error. Ideally a full, self-contained test case is much better. Also having all the versions* information is required.

`*` The easiest way to get exact version information is to use the "Xamarin Studio" menu, "About Xamarin Studio" item, "Show Details" button and copy/paste the version informations (you can use the "Copy Information" button).
Comment 3 martink 2015-06-09 02:51:25 UTC
=== Xamarin Studio ===

Version 5.9.3 (build 1)
Installation UUID: 06d3f9ec-12e1-4969-bdf1-c8284103ed7b
Runtime:
	Mono 4.0.1 ((detached/ed1d3ec)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 400010044

=== Apple Developer Tools ===

Xcode 6.3.2 (7718)
Build 6D2105

=== Xamarin.Mac ===

Not Installed

=== Xamarin.Android ===

Version: 5.1.3.1 (Business Edition)
Android SDK: /Users/martin/Library/Developer/Xamarin/android-sdk-mac_x86
	Supported Android versions:
		2.3    (API level 10)
		4.0.3  (API level 15)
		4.1    (API level 16)
		4.2    (API level 17)
		4.3    (API level 18)
		4.4    (API level 19)
		4.4.87 (API level 20)
		5.0    (API level 21)
Java SDK: /usr
java version "1.6.0_65"
Java(TM) SE Runtime Environment (build 1.6.0_65-b14-466.1-11M4716)
Java HotSpot(TM) 64-Bit Server VM (build 20.65-b04-466.1, mixed mode)

=== Xamarin Android Player ===

Version: Unknown version
Location: /Applications/Xamarin Android Player.app

=== Xamarin.iOS ===

Version: 8.10.1.64 (Business Edition)
Hash: e6ebd18
Branch: master
Build date: 2015-05-21 21:55:09-0400

=== Build Information ===

Release ID: 509030001
Git revision: 5a524e1726ed103fdd4fe37e0356f2b35466ce9d
Build date: 2015-06-02 16:35:08-04
Xamarin addins: 51957cfbd06be911b212671ad05c2c6221ac90f9

=== Operating System ===

Mac OS X 10.10.3
Darwin Martins-MacBook-Pro.local 14.3.0 Darwin Kernel Version 14.3.0
    Mon Mar 23 11:59:05 PDT 2015
    root:xnu-2782.20.48~5/RELEASE_X86_64 x86_64
Comment 4 martink 2015-06-09 02:55:05 UTC
The assembly that caused the issue is Siaqodb v 4.0.2.29 (https://www.nuget.org/packages/Siaqodb/)
Comment 6 martink 2015-06-22 09:45:09 UTC
Downgraded both Xamarin Studio and Xamarin.iOS as follows, and the build was successful:

=== Xamarin Studio ===

Version 5.8.3 (build 1)
Installation UUID: 06d3f9ec-12e1-4969-bdf1-c8284103ed7b
Runtime:
	Mono 4.0.1 ((detached/ed1d3ec)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 400010044

=== Xamarin.Android ===

Version: 5.1.3.1 (Business Edition)
Android SDK: /Users/martin/Library/Developer/Xamarin/android-sdk-mac_x86
	Supported Android versions:
		2.3    (API level 10)
		4.0.3  (API level 15)
		4.1    (API level 16)
		4.2    (API level 17)
		4.3    (API level 18)
		4.4    (API level 19)
		4.4.87 (API level 20)
		5.0    (API level 21)
Java SDK: /usr
java version "1.6.0_65"
Java(TM) SE Runtime Environment (build 1.6.0_65-b14-466.1-11M4716)
Java HotSpot(TM) 64-Bit Server VM (build 20.65-b04-466.1, mixed mode)

=== Xamarin Android Player ===

Version: Unknown version
Location: /Applications/Xamarin Android Player.app

=== Apple Developer Tools ===

Xcode 6.3.2 (7718)
Build 6D2105

=== Xamarin.Mac ===

Not Installed

=== Xamarin.iOS ===

Version: 8.10.0.303 (Business Edition)
Hash: 3c4e832
Branch: master
Build date: 2015-05-20 21:47:57-0400

=== Build Information ===

Release ID: 508030001
Git revision: 6e8e725e0d689351901c2c70453bfa4ea25e293b
Build date: 2015-04-06 20:31:47-04
Xamarin addins: 051cd5f8c1b5dbfc87eaef80a74aec03f34c60a8

=== Operating System ===

Mac OS X 10.10.3
Darwin Martins-MacBook-Pro.local 14.3.0 Darwin Kernel Version 14.3.0
    Mon Mar 23 11:59:05 PDT 2015
    root:xnu-2782.20.48~5/RELEASE_X86_64 x86_64
Comment 7 Sebastien Pouliot 2015-06-23 11:18:17 UTC
The recent MT3001 errors comes from additional checks done by the AOT compiler [1]. 

That spotted a bug in the linker where an assembly could be invalid (e.g. peverify would not be happy) but that did not affect most application (it never was reported before). 

However that new check nows prevent a successful build. As such it's being, temporarily, disabled for 8.10.2.x. You can download it from [2], it's identical to the beta being released today - but it also removes the check.


[1] the check is new in XI 8.10.1.x, going back to 8.10.0.x should be fine (or the issue is different) using https://kb.xamarin.com/customer/portal/articles/1699777-how-do-i-downgrade-to-an-older-version

[2] http://storage.bos.internalx.com/macios-mac-macios-cycle5-c5sr2/ef/ef8c2f7734c2f1702dec51766aff1de1bed1c5db/monotouch-8.10.2.37.pkg
Comment 8 Sebastien Pouliot 2015-09-03 15:41:51 UTC
Beside the workaround in the 8.10 service releases the root cause is also fixed in XI 8.99 previews.