dev-libs/mpfr fails to cross-compile: "/usr/lib/libgmp.so: could not read symbols: File in wrong format"
Bug #338065 reported by
Jacob Godserv
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Gentoo for Pandora |
Won't Fix
|
Undecided
|
Unassigned | ||
Gentoo Linux |
Won't Fix
|
Medium
|
Bug Description
The error message is quite simple:
/usr/lib/libgmp.so: could not read symbols: File in wrong format
The issue is the autoconf tool incorrectly configures mpfr for cross-compiling, and so it fails when it tries to link against a host library. The fix is not to patch mpfr, but autoconf itself. Yuck.
Changed in gentoo: | |
status: | Fix Released → Won't Fix |
Changed in gentoo: | |
importance: | Unknown → Medium |
To post a comment you must log in.
arm-softfloat- linux-gnu- ld attempts to link to the i686 elf shared object, libgmp.so.3.4.1, located in /usr/lib before trying to link to the arm shared object located in the default search path, /usr/arm- softfloat- linux-gnu/ usr/lib.
If a new ebuild is created passing in the arguments --with- gmp-lib= /usr/arm- softfloat- linux-gnu/ usr/lib and --with- gmp-include= /usrarm- softfloat- linux-gnu/ usr/include, then the configure script complains that the c compiler cannot create executables.
======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= === CONFIGROOT= /root/tmp ROOT=/root/tmp emerge --info: ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= === linux/arm/ 2007.0, gcc-4.1.1, glibc-2.5-r4, 2.6.21.6 i686) ======= ======= ======= ======= ======= ======= ======= ======= == pycrypto: 2.0.1-r6 baselayout: 1.12.9 gcc-config: 1.3.16 KEYWORDS= "arm" "i686-pc- linux-gnu" arm-softfloat- linux-gnu" PROTECT= "/etc" PROTECT_ MASK="/ etc/env. d /etc/gconf /etc/revdep-rebuild /etc/terminfo" "arm-softfloat- linux-gnu" "/root/ tmp/usr/ portage/ distfiles" DEFAULT_ OPTS="- k" distfiles. gentoo. org http:// distro. ibiblio. org/pub/ linux/distribut ions/gentoo" "/root/ tmp/var/ tmp/binpkgs" RSYNC_OPTS= "--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude= /distfiles --exclude=/local --exclude=/packages --filter= H_**/files/ digest- *" TMPDIR= "/root/ tmp/var/ tmp" "/root/ tmp/usr/ portage" OVERLAY= "/root/ tmp/usr/ local/portage" //rsync. gentoo. org/gentoo- portage" "keyboard mouse evdev" KERNEL="linux" USERLAND="GNU" COMPRESS_ FLAGS, PORTAGE_ RSYNC_EXTRA_ OPTS ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ===
output of PORTAGE_
=======
Portage 2.1.2.12 (default-
=======
System uname: 2.6.21.6 i686 Pentium II (Klamath)
Gentoo Base System release 1.12.9
Timestamp of tree: Mon, 10 Sep 2007 19:00:01 +0000
app-shells/bash: 3.1_p17
dev-lang/python: 2.4.3-r4
dev-python/
sys-apps/
sys-apps/sandbox: 1.2.17
sys-devel/autoconf: 2.61
sys-devel/automake: 1.10
sys-devel/binutils: 2.17
sys-devel/
sys-devel/libtool: 1.5.22
virtual/os-headers: 2.6.21
ACCEPT_
CBUILD=
CFLAGS="-Os -pipe -mtune=arm920t"
CHOST="
CONFIG_
CONFIG_
CTARGET=
CXXFLAGS="-Os -pipe -mtune=arm920t"
DISTDIR=
EMERGE_
FEATURES="buildpkg distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://
MAKEOPTS="-j2"
PKGDIR=
PORTAGE_
PORTAGE_
PORTDIR=
PORTDIR_
SYNC="rsync:
USE="arm berkdb bzip2 crypt ncurses nptl nptlonly pcre python readline ssl tcpd zlib" ELIBC="glibc" INPUT_DEVICES=
Unset: INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_
=======
======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= === var/tmp/ portage/ dev-libs/ mpfr-2. 2.1_p5/ temp/build. log will follow in an attachment ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ===
output of /root/tmp/
=======
Reproducible: Always
Steps to Reproduce: linux-gnu CONFIGROOT= /root/tmp ROOT=/root/tmp emerge -av gcc
1. create a cross-toolchain for arm-softfloat-
2. emerge baselayout int /root/tmp
3. USE="fortran gcj mudflap -nls" PORTAGE_
Actual Results:
/usr/lib/libgmp.so: could not read symbo...