[yocto] Trying to cross compile Mono - glib link error

autif khan autif.mlist at gmail.com
Thu Nov 10 18:43:35 PST 2011


I followed the instructions and installed the ADT from the 1.1 tarball
as outlined in documentation. And tested a few simple GTK apps.
Everything worked well.

After that I am trying to cross compile mono and I am getting the
following error:

LD	test-glib
libtool: link: warning: library
`/opt/poky/1.1/sysroots/i586-poky-linux/usr/lib/libgmodule-2.0.la' was
moved.
libtool: link: cannot find the library `=/usr/lib/libglib-2.0.la' or
unhandled argument `=/usr/lib/libglib-2.0.la'
make[4]: *** [test-glib] Error 1
make[4]: Leaving directory
`/home/autif/data/dev/projects/yocto/mono-2.10.6/eglib/test'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory
`/home/autif/data/dev/projects/yocto/mono-2.10.6/eglib'
make[2]: *** [all] Error 2
make[2]: Leaving directory
`/home/autif/data/dev/projects/yocto/mono-2.10.6/eglib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/autif/data/dev/projects/yocto/mono-2.10.6'
make: *** [all] Error 2

compiler flags seem to look fine

autif at hp8440w:~/data/dev/projects/yocto/mono-2.10.6$ set | grep LD
BUILDDIR=/home/autif/data/dev/projects/yocto/poky-edison-6.0/build
LDFLAGS='  --sysroot=/opt/poky/1.1/sysroots/i586-poky-linux'
OLDPWD=/home/autif/data/dev/projects/yocto

autif at hp8440w:~/data/dev/projects/yocto/mono-2.10.6$ set | grep CPP
CPPFLAGS=' -m32   -march=i586 --sysroot=/opt/poky/1.1/sysroots/i586-poky-linux'

autif at hp8440w:~/data/dev/projects/yocto/mono-2.10.6$ set | grep CXX
CXX=i586-poky-linux-g++
CXXFLAGS=' -m32   -march=i586 --sysroot=/opt/poky/1.1/sysroots/i586-poky-linux'

autif at hp8440w:~/data/dev/projects/yocto/mono-2.10.6$ set | grep FLAGS
CFLAGS=' -m32   -march=i586 --sysroot=/opt/poky/1.1/sysroots/i586-poky-linux'
CONFIGURE_FLAGS='--target=i586-poky-linux --host=i586-poky-linux
--build=x86_64-linux
--with-libtool-sysroot=/opt/poky/1.1/sysroots/i586-poky-linux'
CPPFLAGS=' -m32   -march=i586 --sysroot=/opt/poky/1.1/sysroots/i586-poky-linux'
CXXFLAGS=' -m32   -march=i586 --sysroot=/opt/poky/1.1/sysroots/i586-poky-linux'
LDFLAGS='  --sysroot=/opt/poky/1.1/sysroots/i586-poky-linux'

Please advise.

Thanks!

Autif



More information about the yocto mailing list