[Mono-dev] cross compiling mono in OE for ARM

Cliff Brake cliff.brake at gmail.com
Tue Jul 10 16:45:14 EDT 2007

On 7/10/07, Paolo Molaro <lupus at ximian.com> wrote:
> On 07/10/07 Cliff Brake wrote:

> > I'm working on the mono recipes in OpenEmbedded (used for OpenMoko
> > phone) for ARM.  Supposedly, this recipe works for MIPS, but on ARM I
> > get the following:
> >
> > root at compulab-pxa270:~$ mono mono_test.exe
> > Mono test application
> > End of program
> >
> > Unhandled Exception: System.TypeInitializationException: An exception
> > was thrown by the type initializer for System.Runtime.Remoting.Conte
> > xts.Context ---> System.ExecutionEngineException: SIGILL
> This typically means an old ABI compiled mono. The configure output
> about the fp format would be useful here.

configure:37618: checking which FPU to use
configure:37639: arm-angstrom-linux-gcc -march=armv5te -mtune=xscale
-c -isystem/build/xxx/rep3/oe/compulab-pxa270/tmp/staging/arm-angstrom-linux/include
-fexpensive-optimizations -fomit-frame-pointer -frename-registers -Os
-fno-strict-aliasing -Wdeclaration-after-statement -g -Wall -Wunused
-Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes
-Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wno-cast-qual
-Wcast-align -Wwrite-strings
conftest.c >&5
conftest.c:145: warning: function declaration isn't a prototype
configure:37645: $? = 0
configure:37649: test -z
			 || test ! -s conftest.err
configure:37652: $? = 0
configure:37655: test -s conftest.o
configure:37658: $? = 0
configure:37717: result: FPA

Full log: ftp://bec-systems.com/pub/mono/oabi/config.log

> Doesn't openmoko use the EABI? Could you try the mono binary compiled
> for the nokia n770/n800?

I think openmoko currently uses oabi (I'm not currently build for
openmoko target), but OE can easily build either so hopefully it will
switch at some point.  I'll rebuild my toolchain/distro for EABI, and
post the results.  I'll also try the n770 binary.

Thanks for the pointers.


Cliff Brake

More information about the Mono-devel-list mailing list