Hello,
We want to compile our app to armv7 (for release) but mtouch produces an error 
"mtouch exited with code 1". I have a "-v" in the Additional mtouch arguments 
field and the Debug Output does not seem to show any output that might indicate 
what the error is. Does anyone know how to get more details from the build that 
might show the cause of this error?

Other info:
- MonoTouch 5.2.5, Mono 2.10.8, MonoDevelop 2.8.6.5, Xcode 4.2, iPhone SDK 5.0
- our app is made up of a C#/MonoTouch front-end and a bunch of C++ libraries 
(compiled with Xcode) using P/Invoke's
- the "Use LLVM Optimizing Compiler" is checked and Supported Architecture is 
set to ARMv7; use Thumb-2 is unchecked
- when we compile the C++ libraries to armv6 and build our C# solution with 
armv6 (LLVM is off) for Release or Debug, the app compiles and runs. But 
building armv6 produces the "executable is missing a required architecture : 
armv7" warning that I'm trying to fix. I hear Apple won't let us release with 
only armv6.
- the last block of lines before the error:
--------------------------------------------------------
Mono Ahead of Time compiler - compiling assembly 
/Users/conway/Source/canawupas/application/iOS/Main/bin/iPhone/Release/Main.app/System.Xml.dll
Executing opt: /Developer/MonoTouch/LLVM/bin/opt -f -simplifycfg -domtree 
-domfrontier -scalarrepl -instcombine -simplifycfg -domtree -domfrontier 
-scalarrepl -simplify-libcalls -instcombine -simplifycfg -instcombine 
-simplifycfg -reassociate -domtree -loops -loopsimplify -domfrontier 
-loopsimplify -lcssa -loop-rotate -licm -lcssa -loop-unswitch -instcombine 
-scalar-evolution -loopsimplify -lcssa -iv-users -indvars -loop-deletion 
-loopsimplify -lcssa -loop-unroll -instcombine -memdep -gvn -memdep -memcpyopt 
-sccp -instcombine -domtree -memdep -dse -adce -simplifycfg -preverify -domtree 
-verify -o 
/var/folders/17/5ymtkzhd4yvd02z554gct1j80000gp/T/tmp36e9d4f4.tmp/System.Xml.dll.7.s.opt.bc
 
/var/folders/17/5ymtkzhd4yvd02z554gct1j80000gp/T/tmp36e9d4f4.tmp/System.Xml.dll.7.s.bc
Executing llc: /Developer/MonoTouch/LLVM/bin/llc -mattr=+v6 -asm-verbose=false 
-mtriple=armv7-darwin -relocation-model=static -unwind-tables 
-disable-gnu-eh-frame -enable-mono-eh-frame -o 
/var/folders/17/5ymtkzhd4yvd02z554gct1j80000gp/T/tmp36e9d4f4.tmp/System.Xml.dll.7.s
 
/var/folders/17/5ymtkzhd4yvd02z554gct1j80000gp/T/tmp36e9d4f4.tmp/System.Xml.dll.7.s.opt.bc
Code: 156208 Info: 26983 Ex Info: 16852 Unwind Info: 2744 Class Info: 25076 
PLT: 2250 GOT Info: 25350 GOT: 19080 Offsets: 22163
Output file: 
'/var/folders/17/5ymtkzhd4yvd02z554gct1j80000gp/T/tmp36e9d4f4.tmp/System.Xml.dll.7.s'.
Linking symbol: '_mono_aot_module_System_Xml_info'.
Compiled 4612 out of 4612 methods (100%)
Methods compiled with LLVM: 4459 (96%)
Methods without GOT slots: 2813 (60%)
Direct calls: 435 (46%)
JIT time: 1776 ms, Generation time: 15795 ms, Assembly+Link time: 0 ms.

mtouch exited with code 1
-----------------------------------------------------------
Thanks!
Conway Wieler
Librestream

_______________________________________________
MonoTouch mailing list
[email protected]
http://lists.ximian.com/mailman/listinfo/monotouch

Reply via email to