I am attempting to convert some of my .Net libraries to run in Monotouch, but
on the very first project I am attempting to convert, I have run into a
crashed compiler message. 

If I could figure out which file, class, or method that it is crashing on, I
should be able to fix, remove, or otherwise workaround the issue. Is there
any way at all to find this information?

Here is most of the content from the Build Output window (I stripped the
actual cs file names since there were quite a few and all but the first two
lines of the stack trace):

Performing main compilation...
/Developer/MonoTouch/usr/bin/smcs /noconfig
"/out:/Users/Karl/Projects/CTIMono/Common/SystemFramework/bin/iPhoneSimulator/Debug/CTI.Common.SystemFramework.Mono.dll"
"/r:/Developer/MonoTouch/usr/lib/mono/2.1/System.Data.dll"
"/r:/Developer/MonoTouch/usr/lib/mono/2.1/System.Runtime.Serialization.dll"
"/r:/Developer/MonoTouch/usr/lib/mono/2.1/mscorlib.dll"
"/r:/Developer/MonoTouch/usr/lib/mono/2.1/System.Xml.dll"
"/r:/Developer/MonoTouch/usr/lib/mono/2.1/monotouch.dll"
"/r:/Developer/MonoTouch/usr/lib/mono/2.1/System.dll"
"/r:/Developer/MonoTouch/usr/lib/mono/2.1/System.Core.dll" /nologo /warn:1
/debug:+ /debug:full /optimize- /codepage:utf8 "/define:DEBUG;Mono" 
/t:library 
[[file names removed here]]
we can't encode valuetypes, we should have never reached this line

Stacktrace:

  at (wrapper managed-to-native)
System.Reflection.Emit.TypeBuilder.create_runtime_class
(System.Reflection.Emit.TypeBuilder,System.Reflection.Emit.TypeBuilder)
<0xffffffff>
  at System.Reflection.Emit.TypeBuilder.CreateType () <0x003a3>
  at Mono.CSharp.TypeContainer.CloseType () <0x0019b>
  at Mono.CSharp.ModuleContainer.CloseType () <0x00080>
  at Mono.CSharp.Driver.Compile () <0x0047c>
  at Mono.CSharp.Driver.Main (string[]) <0x000ab>
  at (wrapper runtime-invoke) <Module>.runtime_invoke_int_object
(object,intptr,intptr,intptr) <0xffffffff>

Native stacktrace:

        0   mono                                0x000d533a 0x0 + 873274
        1   mono                                0x001385ba 0x0 + 1279418

Debug info from gdb:

/tmp/mono-gdb-commands.41xvFf:1: Error in sourced command file:
unable to debug self

=================================================================
Got a SIGABRT while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries 
used by your application.
=================================================================

/Developer/MonoTouch/usr/bin/smcs: line 2:   462 Abort trap             
MONO_PATH=/Developer/MonoTouch/usr/lib/mono/2.1
/Developer/MonoTouch/usr/bin/mono
/Developer/MonoTouch/usr/lib/mono/2.1/smcs.exe "$@"


Stacktrace:

  at (wrapper managed-to-native)
System.Reflection.Emit.TypeBuilder.create_runtime_class
(System.Reflection.Emit.TypeBuilder,System.Reflection.Emit.TypeBuilder)
<0xffffffff>
  at System.Reflection.Emit.TypeBuilder.CreateType () <0x003a3>
  at Mono.CSharp.TypeContainer.CloseType () <0x0019b>
  at Mono.CSharp.ModuleContainer.CloseType () <0x00080>
  at Mono.CSharp.Driver.Compile () <0x0047c>
  at Mono.CSharp.Driver.Main (string[]) <0x000ab>
  at (wrapper runtime-invoke) <Module>.runtime_invoke_int_object
(object,intptr,intptr,intptr) <0xffffffff>

Native stacktrace:

        0   mono                                0x000d533a 0x0 + 873274
        1   mono                                0x001385ba 0x0 + 1279418

Debug info from gdb:

/tmp/mono-gdb-commands.41xvFf:1: Error in sourced command file:
unable to debug self

=================================================================
Got a SIGABRT while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries 
used by your application.
=================================================================

/Developer/MonoTouch/usr/bin/smcs: line 2:   462 Abort trap             
MONO_PATH=/Developer/MonoTouch/usr/lib/mono/2.1
/Developer/MonoTouch/usr/bin/mono
/Developer/MonoTouch/usr/lib/mono/2.1/smcs.exe "$@"
Build complete -- 1 error, 0 warnings

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

Build: 1 error, 0 warnings


--
View this message in context: 
http://monotouch.2284126.n4.nabble.com/The-compiler-appears-to-have-crashed-tp3788615p3788615.html
Sent from the MonoTouch mailing list archive at Nabble.com.
_______________________________________________
MonoTouch mailing list
[email protected]
http://lists.ximian.com/mailman/listinfo/monotouch

Reply via email to