[Mono-dev] Problems cross compiling Mono itself for ARM with uClibc

Andreas Färber andreas.faerber at web.de
Thu Mar 13 17:09:01 EDT 2008

Am 13.03.2008 um 21:53 schrieb freaky001 at gmx.net:

> Hello,
> I'm trying to cross compile the mono package 1.2.6 with my arm-linux- 
> gcc-4.1.2 shipped with my development board synertronixx scb9520  
> with a preinstalled Linux RT 2.6.18 Kernel. I'm unsuccessfully  
> trying this job for 1 month.
> My host platform is a Fedora 8 i386 machine. I copied the cross  
> compiler suite to /usr/local and set the environment variables, as  
> you can see below:
> # env | grep PATH
> PATH=/usr/kerberos/sbin:/usr/kerberos/bin:/usr/lib/ccache:/usr/local/ 
> sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/ 
> gcc-4.1.2-uClibc-0.9.29-xscale/bin:/root/bin
> Then I unpacked the mono package to /usr/local and then I tried to  
> configure it with the following command:
> CC=arm-linux-gcc ./configure --prefix=/urs --target=arm-linux --with- 
> glib=embedded --with-gc=boehm --with-static_mono=yes --disable-mcs- 
> build --enable-static
> All what I get as output are the following lines:
> [root at localhost mono-1.2.6]# CC=arm-linux-gcc ./configure --prefix=/ 
> urs --target=arm-linux --with-glib=embedded --with-gc=boehm --with- 
> static_mono=yes --disable-mcs-build --enable-static
> checking build system type... i686-pc-linux-gnu
> checking host system type... i686-pc-linux-gnu
> checking target system type... arm-unknown-linux-gnu
> checking for a BSD-compatible install... /usr/bin/install -c
> checking whether build environment is sane... yes
> checking for a thread-safe mkdir -p... /bin/mkdir -p
> checking for gawk... gawk
> checking whether make sets $(MAKE)... yes
> checking how to create a ustar tar archive... gnutar
> checking whether to enable maintainer-specific portions of  
> Makefiles... no
> checking whether ln -s works... yes
> ./configure: line 2844: ./libtool: No such file or directory
> checking host platform characteristics... ok
> checking for gcc... arm-linux-gcc
> checking for gcc... (cached) arm-linux-gcc
> checking for C compiler default output file name...
> configure: error: C compiler cannot create executables
> See `config.log' for more details.
> Here is the config.log:
> =======================

> configure:3491: checking for C compiler version
> configure:3498: arm-linux-gcc --version >&5
> ./configure: line 3499: /usr/local/gcc-4.1.2-uClibc-0.9.29-xscale/ 
> bin/arm-linux-gcc: cannot execute binary file
> configure:3501: $? = 126

That's apparently a problem with your compiler, not with Mono  


More information about the Mono-devel-list mailing list