Bug 6377 - AOT Compilation fails when using LLVM with MT 5.3.5
Summary: AOT Compilation fails when using LLVM with MT 5.3.5
Status: RESOLVED FIXED
Alias: None
Product: iOS
Classification: Xamarin
Component: General ()
Version: 5.3.x
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: Untriaged
Assignee: Zoltan Varga
URL:
Depends on:
Blocks:
 
Reported: 2012-08-03 08:58 UTC by Paul DB
Modified: 2012-08-04 10:05 UTC (History)
2 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 Paul DB 2012-08-03 08:58:34 UTC
Trying to compile my app for distribution with the LLVM option enabled fails.
If I turn off LLVM, app builds fine and works on devices.

AOT seems to fail on my class library "MYAPPMobileIOS.dll".  My app consists of the class library project and application project (which references the class lib).

Am using latest Monotouch beta 5.3.5

Build error encountered is:

AOT Compilation exited with code 134, command:
MONO_PATH="/MYAPP/bin/iPhone/Distribution App Store/MYAPP.app" /Developer/MonoTouch/usr/bin/arm-darwin-mono-sgen --llvm --aot=mtriple=armv7-darwin,ntrampolines=2048,nimt-trampolines=512,full,static,asmonly,direct-icalls,nodebug,llvm-path=/Developer/MonoTouch/LLVM/bin/,outfile=/var/folders/tb/jzymw5gj3kx38v3qfnxz9m4r0000gn/T/tmp66a950.tmp/MYAPPMobileIOS.dll.7.s "/MYAPP/bin/iPhone/Distribution App Store/MYAPP.app/MYAPPMobileIOS.dll"
Assertion failed: (S1->getType() == S2->getType() && "Cannot create binary operator with two operands of differing type!"), function Create, file /Developer/MonoTouch/Source/llvm/lib/VMCore/Instructions.cpp, line 1659.

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc -gdwarf-2 -miphoneos-version-min=5.0 -arch armv7  -std=c99 -I/Developer/MonoTouch/SDKs/MonoTouch.iphoneos.sdk/usr/include -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.1.sdk -c /var/folders/tb/jzymw5gj3kx38v3qfnxz9m4r0000gn/T/tmp66a950.tmp/MYAPP.exe.7.s -o /var/folders/tb/jzymw5gj3kx38v3qfnxz9m4r0000gn/T/tmp66a950.tmp/MYAPP.exe.7.o
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc -gdwarf-2 -miphoneos-version-min=5.0 -arch armv7  -std=c99 -I/Developer/MonoTouch/SDKs/MonoTouch.iphoneos.sdk/usr/include -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.1.sdk -c /var/folders/tb/jzymw5gj3kx38v3qfnxz9m4r0000gn/T/tmp66a950.tmp/zxingMonoTouch.dll.7.s -o /var/folders/tb/jzymw5gj3kx38v3qfnxz9m4r0000gn/T/tmp66a950.tmp/zxingMonoTouch.dll.7.o
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc -gdwarf-2 -miphoneos-version-min=5.0 -arch armv7  -std=c99 -I/Developer/MonoTouch/SDKs/MonoTouch.iphoneos.sdk/usr/include -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.1.sdk -c /var/folders/tb/jzymw5gj3kx38v3qfnxz9m4r0000gn/T/tmp66a950.tmp/System.Core.dll.7.s -o /var/folders/tb/jzymw5gj3kx38v3qfnxz9m4r0000gn/T/tmp66a950.tmp/System.Core.dll.7.o
error MT3001: Could not AOT the assembly '/MYAPP/bin/iPhone/Distribution App Store/MYAPPMobileIOS.dll'

---------------------- Done ----------------------

Build: 1 error, 236 warnings
Comment 1 Sebastien Pouliot 2012-08-03 09:36:02 UTC
Can you attach the `/MYAPP/bin/iPhone/Distribution App
Store/MYAPPMobileIOS.dll` file to this bug report ? (you can mark the attachment to private).
Thanks!
Comment 3 Sebastien Pouliot 2012-08-03 09:39:01 UTC
removing NEEDINFO status
Comment 4 Zoltan Varga 2012-08-03 10:01:00 UTC
Fixed in mobile-master by 761921fdcea7758f90677242e3ca5c0c73fa7dcf.
Comment 5 Paul DB 2012-08-03 19:22:40 UTC
Awesome, thanks.  When will the fix be available for my use?
Comment 6 Sebastien Pouliot 2012-08-04 10:05:57 UTC
master bumped to include the fix in 3c4e8bd922531abd22b3a357df3fbf97bc524331
The next beta version will include this (should be 5.3.6) unless regressions are found.