[Mono-list] Compile mono 1.9.1 for arm linux

Chen, Michael (Dongliang) micchen2 at cisco.com
Thu Jul 24 11:52:26 EDT 2008

With --target=arm-linux, it does compile without any errors. It also
generates all of the arm-linux-* files in the installed.../bin/
But when I check the file information, it's still i386 format:

file arm-linux-mono
arm-linux-mono: ELF 32-bit LSB executable, Intel 80386, version 1
(SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.9, not

I am kind of lost now.


-----Original Message-----
From: Tim [mailto:timcussins at eml.cc] 
Sent: Thursday, July 24, 2008 11:26 AM
To: Chen, Michael (Dongliang)
Cc: mono-list
Subject: RE: [Mono-list] Compile mono 1.9.1 for arm linux

Hi Michael,

On Thu, 2008-07-24 at 10:52 -0400, Chen, Michael (Dongliang) wrote:
> All I'd like to do is to compile mono for arm linux. 

Noted ;)

> Any suggestions? Or
> an easy way to achieve that?

I just realised - you'll want to use


instead of


Although there may still be a problem, and this applies to
cross-compilation using autotools. autoconf attempts to build and _run_
some executables as part of the configuration process. If those binaries
are ARM, then your machine will complain (ISA wakarimasen).

The scratchbox project sidesteps this by using qemu-arm to run the small
binaries that autoconf generates = autoconf none-the-wiser = ready to

For your target, you'll need linux running first. If it is, then you've
probably got an SDK for your embedded system. If you do, find the
instructions for cross-compiling and go for it.

Hope this has helped a bit - cross-compilation can be a rough ride
sometimes, hence the number of projects dedicated to easing the pain :)

> Thanks,
> Dongliang


     - - - - -                              Cisco                            - - - - -         
This e-mail and any attachments may contain information which is confidential, 
proprietary, privileged or otherwise protected by law. The information is solely 
intended for the named addressee (or a person responsible for delivering it to 
the addressee). If you are not the intended recipient of this message, you are 
not authorized to read, print, retain, copy or disseminate this message or any 
part of it. If you have received this e-mail in error, please notify the sender 
immediately by return e-mail and delete it from your computer.

More information about the Mono-list mailing list