This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libgomp/36442] libgomp/libssp/libmudflap builds fail when using --with-build-sysroot
- From: "ulfs at dof dot se" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 6 Jul 2008 00:26:22 -0000
- Subject: [Bug libgomp/36442] libgomp/libssp/libmudflap builds fail when using --with-build-sysroot
- References: <bug-36442-4663@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from ulfs at dof dot se 2008-07-06 00:26 -------
I see indications in gcc-4.2.2 compiled by the buildroot system at
buildroot.uclibc.org.
Files are compiled with "--sysroot=$(STAGING_DIR)" where
STAGING_DIR=/home/ulf/projects/Buildroot/20080704/buildroot-ngw100-expanded/build_avr32/staging_dir/
When cross-compiling the libgtk2 package, the linker
tries to link with libtiff which should be located
at $(STAGING_DIR)/usr/lib/libtiff.so, but it ignores
--sysroot=$(STAGING_DIR) and instead uses the
host /usr/lib.
It bombs already on a similar problem with /usr/lib/libpng12,
but I found a manual workaround.
/home/ulf/projects/Buildroot/20080704/buildroot-ngw100-expanded/build_avr32/staging_dir/usr/bin/avr32-linux-uclibc-gcc
-Os
-I/home/ulf/projects/Buildroot/20080704/buildroot-ngw100-expanded/build_avr32/staging_dir/usr/include
-I/home/ulf/projects/Buildroot/20080704/buildroot-ngw100-expanded/build_avr32/staging_dir/include
--sysroot=/home/ulf/projects/Buildroot/20080704/buildroot-ngw100-expanded/build_avr32/staging_dir/
-isysroot
/home/ulf/projects/Buildroot/20080704/buildroot-ngw100-expanded/build_avr32/staging_dir
-msoft-float -shared .libs/io-tiff.o -Wl,--rpath
-Wl,/home/ulf/projects/Buildroot/20080704/buildroot-ngw100-expanded/build_avr32/libgtk2-2.12.6/gdk-pixbuf/.libs
/usr/lib/libtiff.so ./.libs/libgdk_pixbuf-2.0.so -lgmodule-2.0 -ldl
-lgobject-2.0 -lglib-2.0 -lintl -lm -msoft-float -Wl,-soname
-Wl,libpixbufloader-tiff.so -o .libs/libpixbufloader-tiff.so
/usr/lib/libtiff.so: could not read symbols: File in wrong format
The error message is because the AVR32 cross-compiled files
should not be linked with the x86 compiled libtiff.so
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36442