sys-apps/file fails to get right compiler/linker environment when crosscompiling Reproducible: Always Steps to Reproduce: 1. USE=python cross-emerge sys-apps/file Actual Results: fails building the python extension Expected Results: build and merge # emerge-armv7a-unknown-linux-gnueabi --info Portage 2.2_rc61 (!/usr/local/portage/neuvoo/profiles/neuvoo/devkit8000/desktop, gcc-4.4.2, glibc-2.11-r1, 2.6.32-tuxonice i686) ================================================================= System uname: Linux-2.6.32-tuxonice-i686-AMD_Athlon-tm-64_X2_Dual_Core_Processor_3800+-with-gentoo-2.0.1 Timestamp of tree: Mon, 18 Jan 2010 19:00:21 +0000 app-shells/bash: 4.0_p35 dev-lang/python: 2.6.4 sys-apps/baselayout: 2.0.1 sys-apps/openrc: 0.6.0 sys-apps/sandbox: 2.2 sys-devel/autoconf: 2.65 sys-devel/automake: 1.10.3, 1.11.1 sys-devel/binutils: 2.20 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.2.6b virtual/os-headers: 2.6.30-r1 ACCEPT_KEYWORDS="arm ~arm" ACCEPT_LICENSE="* -@EULA" CBUILD="i686-pc-linux-gnu" CFLAGS="-Os -pipe -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -fomit-frame-pointer -I/usr/armv7a-unknown-linux-gnueabi/usr/include/ -I/usr/armv7a-unknown-linux-gnueabi/include/" CHOST="armv7a-unknown-linux-gnueabi" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config /var/lib/hsqldb" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXXFLAGS="-Os -pipe -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -fomit-frame-pointer -I/usr/armv7a-unknown-linux-gnueabi/usr/include/ -I/usr/armv7a-unknown-linux-gnueabi/include/" DISTDIR="/usr/portage/distfiles" FEATURES="assume-digests buildpkg 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://distro.ibiblio.org/pub/linux/distributions/gentoo" LANG="de_CH.UTF-8" LDFLAGS="-L/usr/armv7a-unknown-linux-gnueabi/lib -L/usr/armv7a-unknown-linux-gnueabi/usr/lib" MAKEOPTS="-j2" PKGDIR="/usr/armv7a-unknown-linux-gnueabi/packages/" PORTAGE_CONFIGROOT="/usr/armv7a-unknown-linux-gnueabi/" 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/armv7a-unknown-linux-gnueabi/tmp/" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage/neuvoo" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X alsa arm avahi berkdb bindist bzip2 cli compat crypt cups curl cxx dbus devkit8000 expat fbcon fortran gdbm gif gnome gpm gstreamer gtk gzip iconv jpeg minimal modules mp3 mpeg mplayer mudflap ncurses nls nptl nptlonly openmp pam pcre pdf perl png pppd python readline reflection session spl ssl svg sysfs tcpd threads threadsafe truetype unicode usb wifi xcb xml xorg xpm xsettings xulrunner xv zlib" 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="evdev keyboard mouse touchscreen" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="omapfb" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Created attachment 216950 [details] build log
Created attachment 216951 [details, diff] cross-compile patch make it cross-compile, not sure if this is the 'right' way but it seems to work
Created attachment 217028 [details] integer's build log Same problem for armv6j-gentoo-linux-gnueabi + sys-apps/file-5.03
*** This bug has been marked as a duplicate of bug 216958 ***