Bug 12805 - [6.2] llvm + clang doesn't compile
Summary: [6.2] llvm + clang doesn't compile
Alias: None
Product: iOS
Classification: Xamarin
Component: General ()
Version: 6.2.x
Hardware: PC Mac OS
: --- normal
Target Milestone: Untriaged
Assignee: Zoltan Varga
Depends on:
Reported: 2013-06-21 05:04 UTC by Rolf Bjarne Kvinge [MSFT]
Modified: 2013-06-24 19:09 UTC (History)
2 users (show)

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:

Description Rolf Bjarne Kvinge [MSFT] 2013-06-21 05:04:49 UTC

* Install latest Xamarin.iOS 6.2
* Create a new project (iPhone: Master-Detail Application for instance)..
* Select device configuration.
* Enable llvm.
* Add this in the additional mtouch arguments: "--compiler:clang"
* Compile.

/var/folders/9k/q4s_07m94w166xt06hx5kcg40000gn/T/tmp2be4c462.tmp/System.dll.armv7.s:733:19: error: non-local symbol required in directive
 .indirect_symbol L_mono_aot_personality
Process exited with code 1, command:
/Applications/Xcode5-DP.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang  -miphoneos-version-min=3.1 -arch armv7  -std=c99 -I/Developer/MonoTouch/SDKs/MonoTouch.iphoneos.sdk/usr/include -isysroot /Applications/Xcode5-DP.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk -x assembler-with-cpp -c /var/folders/9k/q4s_07m94w166xt06hx5kcg40000gn/T/tmp2be4c462.tmp/System.Core.dll.armv7.s -o /var/folders/9k/q4s_07m94w166xt06hx5kcg40000gn/T/tmp2be4c462.tmp/System.Core.dll.armv7.o
/var/folders/9k/q4s_07m94w166xt06hx5kcg40000gn/T/tmp2be4c462.tmp/System.Core.dll.armv7.s:401:14: error: invalid operand for instruction
 cmp r5, #2, 2
/var/folders/9k/q4s_07m94w166xt06hx5kcg40000gn/T/tmp2be4c462.tmp/System.Core.dll.armv7.s:858:18: error: invalid operand for instruction
 and r0, r0, #2, 2

Comment 1 Zoltan Varga 2013-06-21 11:44:35 UTC
Those instructions are generated by llvm, so it looks line newer llvm can't assemble the output of older llvm.
Comment 2 Zoltan Varga 2013-06-24 19:09:07 UTC
Should be fixed.