[Mono-dev] Cross-compiling 32-bit mono on AMD64 machine on Linux

james.bird at realtimeworlds.com james.bird at realtimeworlds.com
Fri Oct 3 13:36:12 EDT 2008

Before I begin, I must say that I am quite a novice when it comes to
Linux, so I could quite possibly have made a trivial mistake somewhere.


My machine is running the 64-bit version of Ubuntu (installed using
Wubi). However, I would like to run the latest release candidate of Mono
2.0 under 32-bit as the programs that I am running are not compatible
with 64-bit Mono.


I have obtained the sources and managed to compile 64-bit without any
problems by just running the following commands:




make install


When I run "mono -V", it says that I am running on amd64 architecture.


So I assume the way I would run my programs under 32-bit is by cross
compiling for x86. To do this, I first try running the 'configure'
command with the following syntax:


./configure --host=i386-pc-linux --build=x86_64-pc-linux


However, this fails to complete successfully, and produces the following
output (I've attached the 'config.log'):


Checking for preceeding underscore in symbols... configure: error:
cannot run test program while cross compiling


I also tried running the following command:


                ./configure --target=i386-pc-linux


This was successful, and I managed to compile and install. However, when
I run mono it still says I am running under amd64.


Any help would be greatly appreciated,




James Bird.



This message and any attachments contain privileged and confidential information intended for the use of the addressee named above. If you are not the intended recipient of this message, you are hereby notified that any use, dissemination, distribution or reproduction of this message is prohibited. Please note that we cannot guarantee that this message or any attachment is virus free or that it has not been intercepted and amended. The views of the author may not necessarily reflect those of Realtime Worlds Ltd.


Realtime Worlds Ltd is registered in Scotland, number 225628. Registered Office: 152 West Marketgait, Dundee, DD1 1NJ.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20081003/a523e30a/attachment-0001.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: config.zip
Type: application/x-zip-compressed
Size: 14638 bytes
Desc: config.zip
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20081003/a523e30a/attachment-0001.bin 

More information about the Mono-devel-list mailing list