Using crossdev on x86_64 to build a ppc 750. mpfr (any version) fails to compile since it sees libgmp versions of another architecture. Reproducible: Always Steps to Reproduce: 1. install crossdev 2. crossdev init for powerpc-unknown-linux-uclibc 3. build toolchain, etc. and other misc packages with goal of having @system there 4. emerge-powerpc-unknown-linux-uclibc -va mpfr [ebuild N ] dev-libs/mpfr-3.0.0 to /usr/powerpc-unknown-linux-uclibc/ 0 kB 5. compile fails with file (libgmp.so) is the wrong format Actual Results: This appears to be seeing the libgmp.so (linked to usr/lib/libgmp.so.10.0.1) for the host system since it's reporting the file is in the wrong format. (host is x86_64 and crossdev is for ppc32) /usr/lib/libgmp.so: could not read symbols: File in wrong format collect2: ld returned 1 exit status. Expected Results: normal compile, install into crossdev target path Here is my emerge info when run from crossdev. Some of the info is showing things installed on my host system, not the crossdev environment (not even all of @system is built yet there) Portage 2.2_rc67 (uclibc/ppc, gcc-4.4.4, uclibc-0.9.30.1-r1, 2.6.34-rc3-12-april-2010 x86_64) ================================================================= System uname: Linux-2.6.34-rc3-12-april-2010-x86_64-Intel-R-_Core-TM-2_CPU_6700_@_2.66GHz-with-gentoo-2.0.1 Timestamp of tree: Fri, 30 Jul 2010 05:30:18 +0000 ccache version 2.4 [disabled] app-shells/bash: 4.1_p7 dev-java/java-config: 2.1.11 dev-lang/python: 2.4.4-r15, 2.5.4-r2, 2.6.5-r3, 3.1.2-r4 dev-util/ccache: 2.4-r8 dev-util/cmake: 2.8.1-r2 sys-apps/baselayout: 2.0.1 sys-apps/openrc: 0.6.1-r1 sys-apps/sandbox: 2.2 sys-devel/autoconf: 2.13, 2.65-r1 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r3, 1.10.3, 1.11.1 sys-devel/binutils: 2.20.1-r1 sys-devel/gcc: 4.4.4-r1 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.2.10 virtual/os-headers: 2.6.34 ACCEPT_KEYWORDS="ppc ~ppc" ACCEPT_LICENSE="* -@EULA" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-Os -pipe -mcpu=750 -I/usr/powerpc-unknown-linux-uclibc/usr/include/ -I/usr/powerpc-unknown-linux-uclibc/include/" CHOST="powerpc-unknown-linux-uclibc" CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config /var/lib/hsqldb" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo" CXXFLAGS="-Os -pipe -mcpu=750 -I/usr/powerpc-unknown-linux-uclibc/usr/include/ -I/usr/powerpc-unknown-linux-uclibc/include/" DISTDIR="/usr/portage/distfiles" FEATURES="assume-digests autoconfig distlocks fixpackages news nodoc noinfo noman parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch" GENTOO_MIRRORS="http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo" LDFLAGS="-L/usr/powerpc-unknown-linux-uclibc/lib -L/usr/powerpc-unknown-linux-uclibc/usr/lib" MAKEOPTS="-j2" PKGDIR="/usr/powerpc-unknown-linux-uclibc/packages/" PORTAGE_CONFIGROOT="/usr/powerpc-unknown-linux-uclibc/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/usr/powerpc-unknown-linux-uclibc/tmp/" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage /usr/portage/local/layman/berkano /usr/portage/local/layman/qting-edge /usr/portage/local/layman/enlightenment" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="bindist cli cracklib crypt cxx dri ithreads make-symlinks modules mudflap ncurses openmp pcre perl ppc python readline reflection session spl ssl uclibc xorg zlib ~ppc" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="uclibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="dummy fbdev v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
*** This bug has been marked as a duplicate of bug 330559 ***