[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\" 
-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 
  -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:
#error configure failed to discover size of unix socket path

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

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