[Mono-dev] Problem With Cross Compiling For ARM

Barry Bennett bbennett at filss.com
Fri Dec 15 16:27:42 EST 2006


I am attempting to cross compile MONO for an ARM processor.  Based on 
help from some other members and postings I have found on other 
forums, the suggested configuration settings I am using are:

./configure --build=i686-pc-linux --host=arm-unknown-linux-gnu 
--target=arm-unknown-linux-gnu --disable-FEATURE --with-tls=pthread

The configuration process seems to work fine, but the make fails 
while compiling one of the files.  Here is a bit of the output from 
the make operation:

  arm-unknown-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../.. -pthread 
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include 
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include 
-I../../libgc/include -DMONO_BINDIR=\"/home/barry/temp/mono/bin\" 
-I../.. -DGC_LINUX_THREADS -D_GNU_SOURCE -D_REENTRANT -DUSE_MMAP 
-DUSE_MUNMAP -DARM_FPU_FPA -DNO_UNALIGNED_ACCESS -g -O2 
-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 -MT collection.lo -MD -MP -MF 
.deps/collection.Tpo
  -c collection.c  -fPIC -DPIC -o .libs/collection.o
In file included from ../../mono/io-layer/shared.h:13,
                  from ../../mono/io-layer/collection.h:20,
                  from collection.c:18:
../../mono/io-layer/wapi-private.h:21:2: #error configure failed to 
discover size of unix socket path
make[3]: *** [collection.lo] Error 1

In the wapi-private.h file referenced in the listing output, the 
following lines appear:
#if MONO_SIZEOF_SUNPATH==0
#error configure failed to discover size of unix socket path
#endif

I noticed that in the configure script the following lines appear:
if test "$cross_compiling" = yes; then
cv_mono_sizeof_sunpath=0

Since I am cross compiling it seems that the MONO_SIZEOF_SUNPATH 
variable will be set to 0, but this will of course cause the error 
that I get at compilation time.  Anyone have any ideas on how to 
resolve this issue?




More information about the Mono-devel-list mailing list