Cross compilation bug



Hi all,

I'm running into an issue with cross-compilation. It appears that one of the checks configure runs is to build and run a small conftest program to test for glib. The program compiles without issue, however it doesn't run. Obviously, in a cross-compilation case, it will not run.

Error message:

*** Could not run GLIB test program, checking why...
*** The test program compiled, but did not run. This usually means
*** that the run-time linker is not finding GLIB or finding the wrong
*** version of GLIB. If it is not finding GLIB, you'll need to set your
*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point
*** to the installed location  Also, make sure you have run ldconfig if that
*** is required on your system

Configure log (built this tool outside of configure to verify the command does indeed build the tool without issue):
configure:12169: arm-linux-gnueabi-gcc -o conftest -I/vagrant/prebuild/third-party/armv6k/bzip2/include -I/vagrant/prebuild/third-party/armv6k/libffi/include -I/vagrant/prebuild/third-party/armv6k/libsepol/include -I/vagrant/prebuild/third-party/armv6k/libselinux/include -I/vagrant/prebuild/third-party/armv6k/ncurses/include -I/vagrant/prebuild/third-party/armv6k/pcre/include -I/vagrant/prebuild/third-party/armv6k/orc/include/orc-0.4 -I/vagrant/prebuild/third-party/armv6k/readline/include -I/vagrant/prebuild/third-party/armv6k/zlib/include -I/vagrant/prebuild/third-party/armv6k/glib2/include/glib-2.0   conftest.c -L/vagrant/prebuild/third-party/armv6k/bzip2/usr/lib -L/vagrant/prebuild/third-party/armv6k/libffi/usr/lib -L/vagrant/prebuild/third-party/armv6k/libselinux/usr/lib -L/vagrant/prebuild/third-party/armv6k/libsepol/usr/lib -L/vagrant/prebuild/third-party/armv6k/ncurses/usr/lib -L/vagrant/prebuild/third-party/armv6k/pcre/usr/lib -L/vagrant/prebuild/third-party/armv6k/orc/usr/lib -L/vagrant/prebuild/third-party/armv6k/readline/usr/lib -L/vagrant/prebuild/third-party/armv6k/zlib/usr/lib -lbz2 -lffi -lreadline -lhistory -lcurses -lform -lformw -lmenu -lmenuw -lncurses -lncursesw -lpanel -lpanelw -ltinfo -lpcre -lpcreposix -lpcrecpp -lorc-0.4 -lsepol -lselinux -lz -L/vagrant/prebuild/third-party/armv6k/glib2/usr/lib -lgio-2.0 -lglib-2.0 -lgmodule-2.0 -lgobject-2.0 -lgthread-2.0 >&5
configure:12169: $? = 0

Has anyone else run into this issue or know of a fix? Am I completely off base?

Thanks,
Chris


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]