Error in cross-compiling mono for hand

I am trying to cross-compile mono for arm architecture using scratchbox2 on Ubuntu 12.04 LTS operating system, but was unable to do so.

The whole process I have done is given below

and. Setting up scratchbox2

  • Clone a repository from scratch:

    $ git clone git://gitorious.org/scratchbox2/scratchbox2.git
    
          

  • To build and install SB2:

    $ cd scratchbox2
    $ dpkg-buildpackage -rfakeroot
    $ cd ..
    $ sudo dpkg -i libsb2*deb scratchbox2*deb
    
          

Status: successful

B. Configuring qemu

  • Clone qemu repository

    git clone git://git.qemu.org/qemu.git
    
          

  • To build and install qemu

    $ cd qemu $. / configure --prefix = $ HOME / sb2 --target-list = arm-linux-user $ make && & install $ cd ..

Status: successful

C. Setting up the hand tool chain

  • Getting the tool chain for hands

    $ wget https://sourcery.mentor.com/sgpp/lite/arm/portal/package8739/public/arm-none-linux-gnueabi/arm-2011.03-41-arm-none-linux-gnueabi-i686-pc-linux-gnu.tar.bz2
    
    $ tar xjvf arm-2011.03-41-arm-none-linux-gnueabi-i686-pc-linux-gnu.tar.bz2
    
          

  • Creating a working target configuration.

    $ cp -a arm-2011.03/arm-none-linux-gnueabi/libc/{lib,etc,usr} .
    $ sb2-init ARM9 arm-2011.03/bin/arm-none-linux-gnueabi-gcc    [ ARM9-> name of target]
    
          

Status: successful

E. Cross-compiling mono

   $ sb2

   [SB2 simple arm9] root@Vostro-460 $ cd Desktop/mono-2.10.8.1
   [SB2 simple arm9] root@Vostro-460 mono-2.10.8.1 $ ./configure --disable-mcs-build
   [SB2 simple arm9] root@Vostro-460 mono-2.10.8.1 $ make

      

Status: failed

Mistake:

/usr/local/lib/libgmodule-2.0.so: could not read symbols: File in wrong format
collect2: ld returned 1 exit status
make[4]: *** [test-glib] Error 1
make[4]: Leaving directory `/home/ushus/Desktop/mono-2.10.8.1/eglib/test'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/ushus/Desktop/mono-2.10.8.1/eglib'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/ushus/Desktop/mono-2.10.8.1/eglib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/ushus/Desktop/mono-2.10.8.1'
make: *** [all] Error 2

      

I am stuck at this step. Any idea how to resolve this error?

+3


source to share





All Articles