http://bugzilla.novell.com/show_bug.cgi?id=552982
Summary: Registrar fails during build with the RedLaser library Classification: Mono Product: MonoTouch Version: unspecified Platform: 32bit OS/Version: Mac OS X 10.6 Status: NEW Severity: Normal Priority: P5 - None Component: Tools AssignedTo: gnor...@novell.com ReportedBy: ch...@insphire.com QAContact: mono-bugs@lists.ximian.com Found By: --- Created an attachment (id=325836) --> (http://bugzilla.novell.com/attachment.cgi?id=325836) MonoDevelop Solution to re-create issue User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2b1) Gecko/20091029 Firefox/3.6b1 I am using a btouch generated library for RedLaser (from http://code.google.com/p/btouch-library/). When building for device the build process fails with the message; Unhandled Exception: System.InvalidOperationException: Comparison threw an exception. ---> System.IO.FileNotFoundException: Could not resolve: mscorlib, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e This error only occurs when a class in the project inherits from RedLaser.RealtimeOverlayDelegate. Removing the class results in a good build. The attached MonoDevelop solution re-creates the issue. Reproducible: Always Steps to Reproduce: 1. Create a new MonoTouch app 2. Add RedLaser reference 3. Create a new class that inherits from RedLaser.RealtimeOverlayDelegate 4. Build Actual Results: Build fails with; Building: RegistrarFail (Release|iPhone) Building Solution RegistrarFail Building: RegistrarFail (Release|iPhone) Performing main compilation... Updating CodeBehind files /Developer/MonoTouch/usr/bin/smcs /noconfig "/out:/Users/chris.branson/Projects/RegistrarFail/RegistrarFail/bin/iPhone/Release/RegistrarFail.exe" "/r:System.dll" "/r:System.Xml.dll" "/r:System.Core.dll" "/r:monotouch.dll" "/r:/Users/chris.branson/Projects/RegistrarFail/RegistrarFail/Lib/RedLaser.dll" /nologo /warn:4 /optimize- /codepage:utf8 /t:exe "/Users/chris.branson/Projects/RegistrarFail/RegistrarFail/AppController.cs" "/Users/chris.branson/Projects/RegistrarFail/RegistrarFail/Main.cs" "/Users/chris.branson/Projects/RegistrarFail/RegistrarFail/BarcodeOverlayController.cs" Build complete -- 0 errors, 0 warnings Compiling to native code /Developer/MonoTouch/usr/bin/mtouch -v --nomanifest --nosign -dev "/Users/chris.branson/Projects/RegistrarFail/RegistrarFail/bin/iPhone/Release/RegistrarFail.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" -r="/Users/chris.branson/Projects/RegistrarFail/RegistrarFail/Lib/RedLaser.dll" -linksdkonly -gcc_flags "-framework QuartzCore -L/Users/chris.branson/Projects/RegistrarFail/RegistrarFail/Lib -lRedLaserSDK -all_load -nolink" "/Users/chris.branson/Projects/RegistrarFail/RegistrarFail/bin/iPhone/Release/RegistrarFail.exe" Framework is: /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.0.sdk Copying /Users/chris.branson/Projects/RegistrarFail/RegistrarFail/bin/iPhone/Release/RegistrarFail.exe to /Users/chris.branson/Projects/RegistrarFail/RegistrarFail/bin/iPhone/Release/RegistrarFail.app/RegistrarFail.exe Copying /Developer/MonoTouch/usr/lib/mono/2.1/mscorlib.dll to /Users/chris.branson/Projects/RegistrarFail/RegistrarFail/bin/iPhone/Release/RegistrarFail.app/mscorlib.dll Copying /Developer/MonoTouch/usr/lib/mono/2.1/monotouch.dll to /Users/chris.branson/Projects/RegistrarFail/RegistrarFail/bin/iPhone/Release/RegistrarFail.app/monotouch.dll Copying /Developer/MonoTouch/usr/lib/mono/2.1/System.dll to /Users/chris.branson/Projects/RegistrarFail/RegistrarFail/bin/iPhone/Release/RegistrarFail.app/System.dll Copying /Developer/MonoTouch/usr/lib/mono/2.1/Mono.Security.dll to /Users/chris.branson/Projects/RegistrarFail/RegistrarFail/bin/iPhone/Release/RegistrarFail.app/Mono.Security.dll Copying /Users/chris.branson/Projects/RegistrarFail/RegistrarFail/bin/iPhone/Release/RedLaser.dll to /Users/chris.branson/Projects/RegistrarFail/RegistrarFail/bin/iPhone/Release/RegistrarFail.app/RedLaser.dll Linking SDK only for assembly /Users/chris.branson/Projects/RegistrarFail/RegistrarFail/bin/iPhone/Release/RegistrarFail.exe into /Users/chris.branson/Projects/RegistrarFail/RegistrarFail/bin/iPhone/Release/RegistrarFail.app MONO_PATH=/Users/chris.branson/Projects/RegistrarFail/RegistrarFail/bin/iPhone/Release/RegistrarFail.app /Developer/MonoTouch/usr/bin/arm-darwin-mono --aot=full,static,asmonly,nodebug,outfile=/var/folders/zZ/zZd0tpNxHB8Gq9xRKbr7tLtOEiQ/-Tmp-/tmp450bc175.tmp/monotouch.dll.s /Users/chris.branson/Projects/RegistrarFail/RegistrarFail/bin/iPhone/Release/RegistrarFail.app/monotouch.dll Mono Ahead of Time compiler - compiling assembly /Users/chris.branson/Projects/RegistrarFail/RegistrarFail/bin/iPhone/Release/RegistrarFail.app/monotouch.dll Code: 406776 Info: 16994 Ex Info: 10663 Unwind Info: 2950 Class Info: 9986 PLT: 728 GOT Info: 18837 GOT Info Offsets: 12428 GOT: 12432 Offsets: 26364 Output file: '/var/folders/zZ/zZd0tpNxHB8Gq9xRKbr7tLtOEiQ/-Tmp-/tmp450bc175.tmp/monotouch.dll.s'. Linking symbol: '_mono_aot_module_monotouch_info'. Compiled 1933 out of 1933 methods (100%) Methods without GOT slots: 394 (20%) Direct calls: 1303 (27%) JIT time: 199 ms, Generation time: 148 ms, Assembly+Link time: 0 ms. MONO_PATH=/Users/chris.branson/Projects/RegistrarFail/RegistrarFail/bin/iPhone/Release/RegistrarFail.app /Developer/MonoTouch/usr/bin/arm-darwin-mono --aot=full,static,asmonly,nodebug,outfile=/var/folders/zZ/zZd0tpNxHB8Gq9xRKbr7tLtOEiQ/-Tmp-/tmp450bc175.tmp/RedLaser.dll.s /Users/chris.branson/Projects/RegistrarFail/RegistrarFail/bin/iPhone/Release/RegistrarFail.app/RedLaser.dll Mono Ahead of Time compiler - compiling assembly /Users/chris.branson/Projects/RegistrarFail/RegistrarFail/bin/iPhone/Release/RegistrarFail.app/RedLaser.dll Code: 6568 Info: 229 Ex Info: 186 Unwind Info: 339 Class Info: 634 PLT: 40 GOT Info: 545 GOT Info Offsets: 348 GOT: 352 Offsets: 468 Output file: '/var/folders/zZ/zZd0tpNxHB8Gq9xRKbr7tLtOEiQ/-Tmp-/tmp450bc175.tmp/RedLaser.dll.s'. Linking symbol: '_mono_aot_module_RedLaser_info'. Compiled 38 out of 38 methods (100%) Methods without GOT slots: 8 (21%) Direct calls: 0 (100%) JIT time: 10 ms, Generation time: 11 ms, Assembly+Link time: 0 ms. MONO_PATH=/Users/chris.branson/Projects/RegistrarFail/RegistrarFail/bin/iPhone/Release/RegistrarFail.app /Developer/MonoTouch/usr/bin/arm-darwin-mono --aot=full,static,asmonly,nodebug,outfile=/var/folders/zZ/zZd0tpNxHB8Gq9xRKbr7tLtOEiQ/-Tmp-/tmp450bc175.tmp/System.dll.s /Users/chris.branson/Projects/RegistrarFail/RegistrarFail/bin/iPhone/Release/RegistrarFail.app/System.dll Mono Ahead of Time compiler - compiling assembly /Users/chris.branson/Projects/RegistrarFail/RegistrarFail/bin/iPhone/Release/RegistrarFail.app/System.dll Code: 219500 Info: 4973 Ex Info: 6021 Unwind Info: 3179 Class Info: 5740 PLT: 544 GOT Info: 6289 GOT Info Offsets: 4060 GOT: 4064 Offsets: 14184 Output file: '/var/folders/zZ/zZd0tpNxHB8Gq9xRKbr7tLtOEiQ/-Tmp-/tmp450bc175.tmp/System.dll.s'. Linking symbol: '_mono_aot_module_System_info'. Compiled 1073 out of 1073 methods (100%) Methods without GOT slots: 620 (57%) Direct calls: 520 (44%) JIT time: 101 ms, Generation time: 78 ms, Assembly+Link time: 0 ms. MONO_PATH=/Users/chris.branson/Projects/RegistrarFail/RegistrarFail/bin/iPhone/Release/RegistrarFail.app /Developer/MonoTouch/usr/bin/arm-darwin-mono --aot=full,static,asmonly,nodebug,outfile=/var/folders/zZ/zZd0tpNxHB8Gq9xRKbr7tLtOEiQ/-Tmp-/tmp450bc175.tmp/RegistrarFail.exe.s /Users/chris.branson/Projects/RegistrarFail/RegistrarFail/bin/iPhone/Release/RegistrarFail.app/RegistrarFail.exe Mono Ahead of Time compiler - compiling assembly /Users/chris.branson/Projects/RegistrarFail/RegistrarFail/bin/iPhone/Release/RegistrarFail.app/RegistrarFail.exe Code: 380 Info: 14 Ex Info: 35 Unwind Info: 76 Class Info: 435 PLT: 10 GOT Info: 171 GOT Info Offsets: 52 GOT: 56 Offsets: 84 Output file: '/var/folders/zZ/zZd0tpNxHB8Gq9xRKbr7tLtOEiQ/-Tmp-/tmp450bc175.tmp/RegistrarFail.exe.s'. Linking symbol: '_mono_aot_module_RegistrarFail_info'. Compiled 6 out of 6 methods (100%) Methods without GOT slots: 4 (66%) Direct calls: 0 (100%) JIT time: 0 ms, Generation time: 7 ms, Assembly+Link time: 0 ms. MONO_PATH=/Users/chris.branson/Projects/RegistrarFail/RegistrarFail/bin/iPhone/Release/RegistrarFail.app /Developer/MonoTouch/usr/bin/arm-darwin-mono --aot=full,static,asmonly,nodebug,outfile=/var/folders/zZ/zZd0tpNxHB8Gq9xRKbr7tLtOEiQ/-Tmp-/tmp450bc175.tmp/mscorlib.dll.s /Users/chris.branson/Projects/RegistrarFail/RegistrarFail/bin/iPhone/Release/RegistrarFail.app/mscorlib.dll Mono Ahead of Time compiler - compiling assembly /Users/chris.branson/Projects/RegistrarFail/RegistrarFail/bin/iPhone/Release/RegistrarFail.app/mscorlib.dll Code: 935136 Info: 24530 Ex Info: 35029 Unwind Info: 4929 Class Info: 22256 PLT: 1808 GOT Info: 45846 GOT Info Offsets: 15372 GOT: 32272 Offsets: 73368 Output file: '/var/folders/zZ/zZd0tpNxHB8Gq9xRKbr7tLtOEiQ/-Tmp-/tmp450bc175.tmp/mscorlib.dll.s'. Linking symbol: '_mono_aot_module_mscorlib_info'. Compiled 5431 out of 5431 methods (100%) Methods without GOT slots: 3621 (66%) Direct calls: 3529 (50%) JIT time: 405 ms, Generation time: 370 ms, Assembly+Link time: 82 ms. Generated /var/folders/zZ/zZd0tpNxHB8Gq9xRKbr7tLtOEiQ/-Tmp-/tmp450bc175.tmp/main.m /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc-4.2 -arch armv6 -miphoneos-version-min=3.0 -gdwarf-2 -std=c99 -D__IPHONE_OS_VERSION_MIN_REQUIRED=30000 -I/Developer/MonoTouch/SDKs/MonoTouch1.0.iphoneos.sdk/usr/include -isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.0.sdk -c /var/folders/zZ/zZd0tpNxHB8Gq9xRKbr7tLtOEiQ/-Tmp-/tmp450bc175.tmp/monotouch.dll.s -o /var/folders/zZ/zZd0tpNxHB8Gq9xRKbr7tLtOEiQ/-Tmp-/tmp450bc175.tmp/monotouch.dll.o /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc-4.2 -arch armv6 -miphoneos-version-min=3.0 -gdwarf-2 -std=c99 -D__IPHONE_OS_VERSION_MIN_REQUIRED=30000 -I/Developer/MonoTouch/SDKs/MonoTouch1.0.iphoneos.sdk/usr/include -isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.0.sdk -c /var/folders/zZ/zZd0tpNxHB8Gq9xRKbr7tLtOEiQ/-Tmp-/tmp450bc175.tmp/RedLaser.dll.s -o /var/folders/zZ/zZd0tpNxHB8Gq9xRKbr7tLtOEiQ/-Tmp-/tmp450bc175.tmp/RedLaser.dll.o /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc-4.2 -arch armv6 -miphoneos-version-min=3.0 -gdwarf-2 -std=c99 -D__IPHONE_OS_VERSION_MIN_REQUIRED=30000 -I/Developer/MonoTouch/SDKs/MonoTouch1.0.iphoneos.sdk/usr/include -isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.0.sdk -c /var/folders/zZ/zZd0tpNxHB8Gq9xRKbr7tLtOEiQ/-Tmp-/tmp450bc175.tmp/System.dll.s -o /var/folders/zZ/zZd0tpNxHB8Gq9xRKbr7tLtOEiQ/-Tmp-/tmp450bc175.tmp/System.dll.o /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc-4.2 -arch armv6 -miphoneos-version-min=3.0 -gdwarf-2 -std=c99 -D__IPHONE_OS_VERSION_MIN_REQUIRED=30000 -I/Developer/MonoTouch/SDKs/MonoTouch1.0.iphoneos.sdk/usr/include -isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.0.sdk -c /var/folders/zZ/zZd0tpNxHB8Gq9xRKbr7tLtOEiQ/-Tmp-/tmp450bc175.tmp/RegistrarFail.exe.s -o /var/folders/zZ/zZd0tpNxHB8Gq9xRKbr7tLtOEiQ/-Tmp-/tmp450bc175.tmp/RegistrarFail.exe.o /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc-4.2 -arch armv6 -miphoneos-version-min=3.0 -gdwarf-2 -std=c99 -D__IPHONE_OS_VERSION_MIN_REQUIRED=30000 -I/Developer/MonoTouch/SDKs/MonoTouch1.0.iphoneos.sdk/usr/include -isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.0.sdk -c /var/folders/zZ/zZd0tpNxHB8Gq9xRKbr7tLtOEiQ/-Tmp-/tmp450bc175.tmp/mscorlib.dll.s -o /var/folders/zZ/zZd0tpNxHB8Gq9xRKbr7tLtOEiQ/-Tmp-/tmp450bc175.tmp/mscorlib.dll.o Unhandled Exception: System.InvalidOperationException: Comparison threw an exception. ---> System.IO.FileNotFoundException: Could not resolve: mscorlib, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e at Mono.Cecil.BaseAssemblyResolver.Resolve (Mono.Cecil.AssemblyNameReference name) [0x00000] in <filename unknown>:0 at Mono.Cecil.DefaultAssemblyResolver.Resolve (Mono.Cecil.AssemblyNameReference name) [0x00000] in <filename unknown>:0 at Mono.Cecil.MetadataResolver.Resolve (Mono.Cecil.TypeReference type) [0x00000] in <filename unknown>:0 at Mono.Cecil.TypeReference.Resolve () [0x00000] in <filename unknown>:0 at MonoTouch.Registrar.TypeSystemDescriptor.Depth (Mono.Cecil.TypeDefinition type) [0x00000] in <filename unknown>:0 at MonoTouch.Registrar.TypeSystemDescriptor.<Describe>m__25 (Pair`2 x, Pair`2 y) [0x00000] in <filename unknown>:0 at (wrapper delegate-invoke) System.Comparison`1<MonoTouch.Registrar.Pair`2<MonoTouch.Registrar.Class, Mono.Cecil.TypeDefinition>>:invoke_int__this___Pair`2<Class, TypeDefinition>_Pair`2<Class, TypeDefinition> (MonoTouch.Registrar.Pair`2<MonoTouch.Registrar.Class, Mono.Cecil.TypeDefinition>,MonoTouch.Registrar.Pair`2<MonoTouch.Registrar.Class, Mono.Cecil.TypeDefinition>) at System.Array.qsort[Pair`2] (MonoTouch.Registrar.Pair`2[] array, Int32 low0, Int32 high0, System.Comparison`1 comparison) [0x00000] in <filename unknown>:0 at System.Array.Sort[Pair`2] (MonoTouch.Registrar.Pair`2[] array, Int32 length, System.Comparison`1 comparison) [0x00000] in <filename unknown>:0 --- End of inner exception stack trace --- at System.Array.Sort[Pair`2] (MonoTouch.Registrar.Pair`2[] array, Int32 length, System.Comparison`1 comparison) [0x00000] in <filename unknown>:0 at System.Collections.Generic.List`1[MonoTouch.Registrar.Pair`2[MonoTouch.Registrar.Class,Mono.Cecil.TypeDefinition]].Sort (System.Comparison`1 comparison) [0x00000] in <filename unknown>:0 at MonoTouch.Registrar.TypeSystemDescriptor.Describe (IEnumerable`1 assemblies) [0x00000] in <filename unknown>:0 at Registrar.Generate (System.Collections.Generic.List`1 list) [0x00000] in <filename unknown>:0 at MTouch.CompileToNative (System.String user_gcc_flags, System.Collections.Generic.List`1 assemblies) [0x00000] in <filename unknown>:0 at MTouch.Main (System.String[] args) [0x00000] in <filename unknown>:0 ---------------------- Done ---------------------- Build: 1 error, 0 warnings Expected Results: Successful build Filing this bug report as requested by Geoff Norton (http://forums.monotouch.net/Forums/Thread.aspx?thread=106&mid=6&pageid=1&ItemID=2&pagenumber=1#post313) -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug. _______________________________________________ mono-bugs maillist - mono-bugs@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-bugs