When dev-lang/python-2.6.4-r1 is crosscompiled on ppc64 for ppc it tries to link libc, libm from host instead of target Reproducible: Always Steps to Reproduce: 1.xmerge dev-lang/python-2.6.4-r1 2. 3. Actual Results: ... powerpc-lewis-linux-gnu-gcc -shared -Wl,-O1 -L. -DNDEBUG -Os -pipe -fwrapv -I. - IInclude -I./Include build/temp.linux-ppc64-2.6/var/tmp/portage/dev-lang/python- 2.6.4-r1/work/Python-2.6.4/Modules/_struct.o -L/usr/lib -L/usr/local/lib -L. -lpython2.6 -o build/lib.linux-ppc64-2.6/_struct.so /usr/libexec/gcc/powerpc-lewis-linux-gnu/ld: skipping incompatible /usr/lib/libc.so when searching for -lc ... Expected Results: expect linker to use libc from ppc 32bit target not 64bit host # xmerge --info Portage 2.1.7.17 (default/linux/powerpc/ppc32/10.0/desktop, gcc-4.2.4, unavailable, 2.6.31-gentoo-r10 ppc64) ================================================================= System uname: Linux-2.6.31-gentoo-r10-ppc64-PPC970FX,_altivec_supported-with-gentoo-1.12.13 Timestamp of tree: Wed, 24 Mar 2010 20:30:01 +0000 app-shells/bash: 4.0_p35 dev-lang/python: 2.6.4-r1 dev-util/cmake: 2.6.4-r3 sys-apps/baselayout: 1.12.13 sys-apps/sandbox: 1.6-r2 sys-devel/autoconf: 2.13, 2.63-r1 sys-devel/automake: 1.6.3-r1, 1.9.6-r3, 1.10.3 sys-devel/binutils: 2.19.1-r1 sys-devel/gcc: 4.3.4 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.2.6b virtual/os-headers: 2.6.30-r1 ACCEPT_KEYWORDS="ppc" ACCEPT_LICENSE="* -@EULA" CBUILD="powerpc64-unknown-linux-gnu" CFLAGS="-Os -pipe" CHOST="powerpc-lewis-linux-gnu" CONFIG_PROTECT="/etc /usr/share/X11/xkb" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d" CXXFLAGS="-Os -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="assume-digests distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch" GENTOO_MIRRORS="http://open-systems.ufl.edu/mirrors/gentoo http://prometheus.cs.wmich.edu/gentoo http://mirror.datapipe.net/gentoo http://ftp.ucsb.edu/pub/mirrors/linux/gentoo/" LANG="en_US.utf8" LDFLAGS="-Wl,-O1" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/usr/powerpc-lewis-linux-gnu/" 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="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X a52 aac alsa berkdb bluetooth branding bzip2 cairo cdr cli consolekit cracklib crypt cups cxx dbus dri dts dvd dvdr eds emboss encode evo fam firefox flac fortran gdbm gif gnome gpm gstreamer gtk hal iconv ipv6 jpeg kde ldap libnotify mad mikmod mng modules mp3 mp4 mpeg mudflap ncurses nls nptl nptlonly ogg opengl openmp pam pcre pdf perl png ppc ppds pppd python qt3support qt4 quicktime readline reflection sdl session spell spl ssl startup-notification svg symlink sysfs tcpd thunar tiff truetype unicode usb vorbis x264 xml xorg xulrunner xv xvid zlib" ALSA_CARDS="aoa aoa-fabric-layout aoa-onyx aoa-soundbus aoa-soundbus-i2s aoa-tas aoa-toonie powermac usb-audio via82xx" 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 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="glibc" INPUT_DEVICES="keyboard" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev glint mach64 mga nv r128 radeon savage tdfx trident voodoo" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Created attachment 225181 [details] build log
(In reply to comment #0) It seems that the "skipping" messages (which still seem wrong to me) were not the real problem but there was a missing library on the target... ... powerpc-lewis-linux-gnu-gcc -shared -Wl,-O1 -L. -DNDEBUG -Os -pipe -fwrapv -I. -IInclude -I./Include build/temp.linux-ppc64-2.6/var/tmp/portage/dev-lang/python-2.6.4-r1/work/Python-2.6.4/Modules/bz2module.o -L/usr/lib -L/usr/local/lib -L. -lbz2 -lpython2.6 -o build/lib.linux-ppc64-2.6/bz2.so /usr/libexec/gcc/powerpc-lewis-linux-gnu/ld: skipping incompatible /usr/lib/libbz2.so when searching for -lbz2 /usr/libexec/gcc/powerpc-lewis-linux-gnu/ld: skipping incompatible /usr/lib/libbz2.a when searching for -lbz2 /usr/libexec/gcc/powerpc-lewis-linux-gnu/ld: cannot find -lbz2 collect2: ld returned 1 exit status ... However the package still fails to crosscompile with a message I do not really understand, ...* ERROR: dev-lang/python-2.6.5 failed: * emake altinstall maninstall failed * * Call stack: * ebuild.sh, line 54: Called src_install * environment, line 5070: Called die * The specific snippet of code: * emake DESTDIR="${D}" altinstall maninstall || die "emake altinstall maninstall failed"; ... yet there do not appear to be any actual error messages in the log (?) which is attached
Created attachment 225243 [details] another build.log
I received something like this in version dev-lang/python-2.5.4-r4. With MAKEOPTS="- j1" I had no errors.
python-2.6.4-r1 is no longer in the tree