Bug 3820 - Compiler crashes with latest version
Summary: Compiler crashes with latest version
Status: RESOLVED DUPLICATE of bug 3559
Alias: None
Product: iOS
Classification: Xamarin
Component: XI runtime ()
Version: 5.2
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: Untriaged
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2012-03-09 04:11 UTC by Michael Fürst
Modified: 2012-03-09 08:40 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 3559

Description Michael Fürst 2012-03-09 04:11:22 UTC
We have a iPad project that build fine until the latest release of MonoTouch. 
Now evertime we try to build a "Release" the compiler crashes:

Compiling to native code
/Developer/MonoTouch/usr/bin/mtouch -sdkroot "/Applications/Xcode.app/Contents/Developer" -v --nomanifest --nosign -dev "/Users/mf/Projects/BCSD.WstAppHD/WstAppHD/bin/iPhone/Release/WstAppHD.app" -r "/Developer/MonoTouch/usr/lib/mono/2.1/System.dll" -r "/Developer/MonoTouch/usr/lib/mono/2.1/System.Xml.dll" -r "/Developer/MonoTouch/usr/lib/mono/2.1/System.Core.dll" -r "/Developer/MonoTouch/usr/lib/mono/2.1/monotouch.dll" -linksdkonly -sdk "5.1" -targetver "4.2" "/Users/mf/Projects/BCSD.WstAppHD/WstAppHD/bin/iPhone/Release/WstAppHD.exe"
MonoTouch version 5.2.5 using framework: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.1.sdk
Copied /Users/mf/Projects/BCSD.WstAppHD/WstAppHD/bin/iPhone/Release/WstAppHD.exe to /Users/mf/Projects/BCSD.WstAppHD/WstAppHD/bin/iPhone/Release/WstAppHD.app/WstAppHD.exe
Copied /Developer/MonoTouch/usr/lib/mono/2.1/mscorlib.dll to /Users/mf/Projects/BCSD.WstAppHD/WstAppHD/bin/iPhone/Release/WstAppHD.app/mscorlib.dll
Copied /Developer/MonoTouch/usr/lib/mono/2.1/System.dll to /Users/mf/Projects/BCSD.WstAppHD/WstAppHD/bin/iPhone/Release/WstAppHD.app/System.dll
Copied /Developer/MonoTouch/usr/lib/mono/2.1/Mono.Security.dll to /Users/mf/Projects/BCSD.WstAppHD/WstAppHD/bin/iPhone/Release/WstAppHD.app/Mono.Security.dll
Copied /Developer/MonoTouch/usr/lib/mono/2.1/System.Core.dll to /Users/mf/Projects/BCSD.WstAppHD/WstAppHD/bin/iPhone/Release/WstAppHD.app/System.Core.dll
Copied /Developer/MonoTouch/usr/lib/mono/2.1/System.Xml.dll to /Users/mf/Projects/BCSD.WstAppHD/WstAppHD/bin/iPhone/Release/WstAppHD.app/System.Xml.dll
Copied /Developer/MonoTouch/usr/lib/mono/2.1/monotouch.dll to /Users/mf/Projects/BCSD.WstAppHD/WstAppHD/bin/iPhone/Release/WstAppHD.app/monotouch.dll
Linking SDK only for assembly /Users/mf/Projects/BCSD.WstAppHD/WstAppHD/bin/iPhone/Release/WstAppHD.exe into /Users/mf/Projects/BCSD.WstAppHD/WstAppHD/bin/iPhone/Release/WstAppHD.app
MONO_PATH=/Users/mf/Projects/BCSD.WstAppHD/WstAppHD/bin/iPhone/Release/WstAppHD.app /Developer/MonoTouch/usr/bin/arm-darwin-mono --aot=mtriple=armv6-darwin,full,static,asmonly,nodebug,outfile=/var/folders/r3/zms38yws3yv2gffhh9mkvsx40000gp/T/tmp44afcfeb.tmp/System.dll.6.s "/Users/mf/Projects/BCSD.WstAppHD/WstAppHD/bin/iPhone/Release/WstAppHD.app/System.dll"
MONO_PATH=/Users/mf/Projects/BCSD.WstAppHD/WstAppHD/bin/iPhone/Release/WstAppHD.app /Developer/MonoTouch/usr/bin/arm-darwin-mono --aot=mtriple=armv6-darwin,full,static,asmonly,nodebug,outfile=/var/folders/r3/zms38yws3yv2gffhh9mkvsx40000gp/T/tmp44afcfeb.tmp/Mono.Security.dll.6.s "/Users/mf/Projects/BCSD.WstAppHD/WstAppHD/bin/iPhone/Release/WstAppHD.app/Mono.Security.dll"
MONO_PATH=/Users/mf/Projects/BCSD.WstAppHD/WstAppHD/bin/iPhone/Release/WstAppHD.app /Developer/MonoTouch/usr/bin/arm-darwin-mono --aot=mtriple=armv6-darwin,full,static,asmonly,nodebug,outfile=/var/folders/r3/zms38yws3yv2gffhh9mkvsx40000gp/T/tmp44afcfeb.tmp/monotouch.dll.6.s "/Users/mf/Projects/BCSD.WstAppHD/WstAppHD/bin/iPhone/Release/WstAppHD.app/monotouch.dll"
MONO_PATH=/Users/mf/Projects/BCSD.WstAppHD/WstAppHD/bin/iPhone/Release/WstAppHD.app /Developer/MonoTouch/usr/bin/arm-darwin-mono --aot=mtriple=armv6-darwin,full,static,asmonly,nodebug,outfile=/var/folders/r3/zms38yws3yv2gffhh9mkvsx40000gp/T/tmp44afcfeb.tmp/WstAppHD.exe.6.s "/Users/mf/Projects/BCSD.WstAppHD/WstAppHD/bin/iPhone/Release/WstAppHD.app/WstAppHD.exe"
MONO_PATH=/Users/mf/Projects/BCSD.WstAppHD/WstAppHD/bin/iPhone/Release/WstAppHD.app /Developer/MonoTouch/usr/bin/arm-darwin-mono --aot=mtriple=armv6-darwin,full,static,asmonly,nodebug,outfile=/var/folders/r3/zms38yws3yv2gffhh9mkvsx40000gp/T/tmp44afcfeb.tmp/System.Core.dll.6.s "/Users/mf/Projects/BCSD.WstAppHD/WstAppHD/bin/iPhone/Release/WstAppHD.app/System.Core.dll"
MONO_PATH=/Users/mf/Projects/BCSD.WstAppHD/WstAppHD/bin/iPhone/Release/WstAppHD.app /Developer/MonoTouch/usr/bin/arm-darwin-mono --aot=mtriple=armv6-darwin,full,static,asmonly,nodebug,outfile=/var/folders/r3/zms38yws3yv2gffhh9mkvsx40000gp/T/tmp44afcfeb.tmp/mscorlib.dll.6.s "/Users/mf/Projects/BCSD.WstAppHD/WstAppHD/bin/iPhone/Release/WstAppHD.app/mscorlib.dll"
MONO_PATH=/Users/mf/Projects/BCSD.WstAppHD/WstAppHD/bin/iPhone/Release/WstAppHD.app /Developer/MonoTouch/usr/bin/arm-darwin-mono --aot=mtriple=armv6-darwin,full,static,asmonly,nodebug,outfile=/var/folders/r3/zms38yws3yv2gffhh9mkvsx40000gp/T/tmp44afcfeb.tmp/System.Xml.dll.6.s "/Users/mf/Projects/BCSD.WstAppHD/WstAppHD/bin/iPhone/Release/WstAppHD.app/System.Xml.dll"
Generated /var/folders/r3/zms38yws3yv2gffhh9mkvsx40000gp/T/tmp44afcfeb.tmp/main.m
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc -gdwarf-2 -miphoneos-version-min=4.2 -arch armv6  -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/r3/zms38yws3yv2gffhh9mkvsx40000gp/T/tmp44afcfeb.tmp/System.Xml.dll.6.s -o /var/folders/r3/zms38yws3yv2gffhh9mkvsx40000gp/T/tmp44afcfeb.tmp/System.Xml.dll.6.o   
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc -gdwarf-2 -miphoneos-version-min=4.2 -arch armv6  -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/r3/zms38yws3yv2gffhh9mkvsx40000gp/T/tmp44afcfeb.tmp/monotouch.dll.6.s -o /var/folders/r3/zms38yws3yv2gffhh9mkvsx40000gp/T/tmp44afcfeb.tmp/monotouch.dll.6.o   
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc -gdwarf-2 -miphoneos-version-min=4.2 -arch armv6  -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/r3/zms38yws3yv2gffhh9mkvsx40000gp/T/tmp44afcfeb.tmp/Mono.Security.dll.6.s -o /var/folders/r3/zms38yws3yv2gffhh9mkvsx40000gp/T/tmp44afcfeb.tmp/Mono.Security.dll.6.o   
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc -gdwarf-2 -miphoneos-version-min=4.2 -arch armv6  -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/r3/zms38yws3yv2gffhh9mkvsx40000gp/T/tmp44afcfeb.tmp/mscorlib.dll.6.s -o /var/folders/r3/zms38yws3yv2gffhh9mkvsx40000gp/T/tmp44afcfeb.tmp/mscorlib.dll.6.o   
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc -gdwarf-2 -miphoneos-version-min=4.2 -arch armv6  -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/r3/zms38yws3yv2gffhh9mkvsx40000gp/T/tmp44afcfeb.tmp/System.dll.6.s -o /var/folders/r3/zms38yws3yv2gffhh9mkvsx40000gp/T/tmp44afcfeb.tmp/System.dll.6.o   
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc -gdwarf-2 -miphoneos-version-min=4.2 -arch armv6  -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/r3/zms38yws3yv2gffhh9mkvsx40000gp/T/tmp44afcfeb.tmp/System.Core.dll.6.s -o /var/folders/r3/zms38yws3yv2gffhh9mkvsx40000gp/T/tmp44afcfeb.tmp/System.Core.dll.6.o   
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc -gdwarf-2 -miphoneos-version-min=4.2 -arch armv6  -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/r3/zms38yws3yv2gffhh9mkvsx40000gp/T/tmp44afcfeb.tmp/WstAppHD.exe.6.s -o /var/folders/r3/zms38yws3yv2gffhh9mkvsx40000gp/T/tmp44afcfeb.tmp/WstAppHD.exe.6.o   
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc -gdwarf-2 -miphoneos-version-min=4.2 -arch armv6  -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/r3/zms38yws3yv2gffhh9mkvsx40000gp/T/tmp44afcfeb.tmp/registrar.m -o /var/folders/r3/zms38yws3yv2gffhh9mkvsx40000gp/T/tmp44afcfeb.tmp/registrar.6.o   
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc -gdwarf-2 -miphoneos-version-min=4.2 -arch armv6  -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/r3/zms38yws3yv2gffhh9mkvsx40000gp/T/tmp44afcfeb.tmp/main.m -o /var/folders/r3/zms38yws3yv2gffhh9mkvsx40000gp/T/tmp44afcfeb.tmp/main.6.o   
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc -gdwarf-2 -miphoneos-version-min=4.2 -arch armv6  -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.1.sdk /var/folders/r3/zms38yws3yv2gffhh9mkvsx40000gp/T/tmp44afcfeb.tmp/monotouch.dll.6.o  /var/folders/r3/zms38yws3yv2gffhh9mkvsx40000gp/T/tmp44afcfeb.tmp/System.Xml.dll.6.o  /var/folders/r3/zms38yws3yv2gffhh9mkvsx40000gp/T/tmp44afcfeb.tmp/Mono.Security.dll.6.o  /var/folders/r3/zms38yws3yv2gffhh9mkvsx40000gp/T/tmp44afcfeb.tmp/System.dll.6.o  /var/folders/r3/zms38yws3yv2gffhh9mkvsx40000gp/T/tmp44afcfeb.tmp/mscorlib.dll.6.o  /var/folders/r3/zms38yws3yv2gffhh9mkvsx40000gp/T/tmp44afcfeb.tmp/System.Core.dll.6.o  /var/folders/r3/zms38yws3yv2gffhh9mkvsx40000gp/T/tmp44afcfeb.tmp/WstAppHD.exe.6.o  /var/folders/r3/zms38yws3yv2gffhh9mkvsx40000gp/T/tmp44afcfeb.tmp/registrar.6.o /var/folders/r3/zms38yws3yv2gffhh9mkvsx40000gp/T/tmp44afcfeb.tmp/main.6.o -o /var/folders/r3/zms38yws3yv2gffhh9mkvsx40000gp/T/tmp44afcfeb.tmp/WstAppHD -framework CFNetwork -framework Foundation -framework MessageUI -framework UIKit -framework QuartzCore -framework CoreFoundation -framework CoreLocation -framework CoreGraphics -framework MediaPlayer -lz -u _mono_pmip -u _CreateZStream -u _CloseZStream -u _Flush -u _ReadZStream -u _WriteZStream -liconv -lmono-2.0 -lmonotouch -L/Developer/MonoTouch/SDKs/MonoTouch.iphoneos.sdk/usr/lib -dead_strip
/usr/bin/dsymutil "/Users/mf/Projects/BCSD.WstAppHD/WstAppHD/bin/iPhone/Release/WstAppHD.app/WstAppHD" -o "/Users/mf/Projects/BCSD.WstAppHD/WstAppHD/bin/iPhone/Release/WstAppHD.app.dSYM"
/usr/bin/strip -s "/var/folders/r3/zms38yws3yv2gffhh9mkvsx40000gp/T/tmp44afcfeb.tmp/symbol-file" "/Users/mf/Projects/BCSD.WstAppHD/WstAppHD/bin/iPhone/Release/WstAppHD.app/WstAppHD"
error MT0000: Unexpected error - Please fill a bug report at http://bugzilla.xamarin.com
System.ComponentModel.Win32Exception: ApplicationName='/usr/bin/strip', CommandLine='-s "/var/folders/r3/zms38yws3yv2gffhh9mkvsx40000gp/T/tmp44afcfeb.tmp/symbol-file" "/Users/mf/Projects/BCSD.WstAppHD/WstAppHD/bin/iPhone/Release/WstAppHD.app/WstAppHD"', CurrentDirectory=''
  at System.Diagnostics.Process.Start_noshell (System.Diagnostics.ProcessStartInfo startInfo, System.Diagnostics.Process process) [0x00000] in <filename unknown>:0 
  at System.Diagnostics.Process.Start_common (System.Diagnostics.ProcessStartInfo startInfo, System.Diagnostics.Process process) [0x00000] in <filename unknown>:0 
  at System.Diagnostics.Process.Start (System.Diagnostics.ProcessStartInfo startInfo) [0x00000] in <filename unknown>:0 
  at MTouch.RunCommand (System.String path, System.String args, System.String[] env) [0x00000] in <filename unknown>:0 
  at MTouch.RunCommand (System.String path, System.String args) [0x00000] in <filename unknown>:0 
  at MTouch.Main2 (System.String[] args) [0x00000] in <filename unknown>:0 
  at MTouch.Main (System.String[] args) [0x00000] in <filename unknown>:0 

It only happens when we compile a release build for the device. It works when building for the device in debug mode and it works when builidng for the emulator.
Comment 1 Sebastien Pouliot 2012-03-09 08:20:08 UTC
see comment #3 of bug #3559.

i.e. Xcode 4.3[.1] was installed and Xcode 4.2 was removed (or never installed). You need to install the optional "Command Line Tools" to get a complete installation.

*** This bug has been marked as a duplicate of bug 3559 ***
Comment 2 Michael Fürst 2012-03-09 08:35:03 UTC
Thanks for the fast help! Sorry I didn't find the other reference for this problem. I assume this is something for the FAQs ;-)
Comment 3 Sebastien Pouliot 2012-03-09 08:40:04 UTC
no problem :)
I'm c.c. Chris for the FAQ entry