[Mono-dev] Cross compilation issue

autif khan autif.mlist at gmail.com
Thu Jan 19 20:49:29 UTC 2012

I am trying to cross compile mono with success. However, there is a
step that I am not able to figure out.

The steps are as follows:

1) Compile mono for the host system - to save the mcs for later use
2) Cross Compile mono with --disable-mcs-build
3) Copy mcs directory from 1 into 2
4) Profit

I am having problems ins step 2. To elaborate:

2.1) ./configure --disable-mcs-build
2.2) rm libtool
2.3) cp /path/to/cross/libtool .
2.4) make

This works just fine ... except:

When the compilation reaches mono/mini directory, I fail

../../doltlibtool   --mode=compile i586-poky-linux-gcc  -m32
-march=core2 -msse3 -mtune=generic -mfpmath=sse -c -o
libtool: compile: unable to infer tagged configuration
libtool: compile: specify a tag with `--tag'
make[4]: *** [mdb-debug-info32.lo] Error 1
make[4]: Leaving directory

If I manually go into the mono/mini directory and execute the following command:

../../doltlibtool   --mode=compile i586-poky-linux-gcc  -m32
-march=core2 -msse3 -mtune=generic -mfpmath=sse -c -o
../../../../../xumono/mono-2.6.3/mono/mini/mdb-debug-info32.s --tag=CC

it compiles just fine. If I go back to the build directory and re-run
make, also everything compiles just fine and the build completes.

I am using mono version 2.6.3 (for a number of reasons, does
not even begin to compile because of toolchain issues being the

My guess is that --tag=CC is missing somewhere in Makefile.am or
Makefile.in in mono/mini - If someone can point me to it, I would be



More information about the Mono-devel-list mailing list