Binutils is already installed but I want to try out portage's "test" feature. Compilation succeeds but 3 tests fail. Reproducible: Always Steps to Reproduce: sudo emerge -av binutils Actual Results: [from the build log] Running /var/tmp/portage/sys-devel/binutils-2.18-r3/work/binutils-2.18/ld/testsuite/ld-shared/shared.exp ... FAIL: shared (non PIC) FAIL: shared (non PIC, load offset) FAIL: shared (PIC main, non PIC so) === ld Summary === # of expected passes 438 # of unexpected failures 3 # of expected failures 4 /var/tmp/portage/sys-devel/binutils-2.18-r3/work/build/ld/ld-new 2.18 $ emerge --info Portage 2.2_rc31 (default/linux/x86/2008.0, gcc-4.3.2, glibc-2.8_p20080602-r1, 2.6.27-gentoo-r8 i686) ================================================================= System uname: Linux-2.6.27-gentoo-r8-i686-AMD_Duron-tm-_processor-with-glibc2.0 Timestamp of tree: Wed, 22 Apr 2009 06:00:01 +0000 ccache version 2.4 [enabled] app-shells/bash: 3.2_p39 dev-java/java-config: 2.1.7 dev-lang/python: 2.5.2-r7 dev-util/ccache: 2.4-r7 sys-apps/baselayout: 1.12.11.1 sys-apps/sandbox: 1.6-r2 sys-devel/autoconf: 2.13, 2.63 sys-devel/automake: 1.9.6-r2, 1.10.2 sys-devel/binutils: 2.18-r3 sys-devel/gcc-config: 1.4.0-r4 sys-devel/libtool: 1.5.26 virtual/os-headers: 2.6.27-r2 ACCEPT_KEYWORDS="x86" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=native -O2 -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d" CXXFLAGS="-march=native -O2 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="buildpkg ccache distlocks fixpackages parallel-fetch preserve-libs protect-owned sandbox sfperms strict test unmerge-orphans userfetch userpriv usersandbox usersync" GENTOO_MIRRORS="http://mirror.csclub.uwaterloo.ca/gentoo-distfiles/ http://chi-10g-1-mirror.fastsoft.net/pub/linux/gentoo/gentoo-distfiles/ http://gentoo.mirrors.tds.net/gentoo http://mirror.datapipe.net/gentoo http://gentoo.chem.wisc.edu/gentoo/" LDFLAGS="-Wl,-O1" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_EXTRA_OPTS="--timeout=600" 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" PORTDIR_OVERLAY="/etc/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="acl aim amazon amd aspnet async automount bash-completion berkdb bittorrent bzip2 cdinstall chroot cli colordiff cracklib crypt cscope css cups dedicated device-mapper divx dri ecc emacs fbcon isdnlog java junit logrotate logwatch memlimit mono mudflap ncurses nowebdav nptl nptlonly openmp parport pcre perl ppds pppd python readline reflection samba session spl ssl subversion symlink sysfs tcpd userlocales x86 xorg zlib" ALSA_CARDS="emu10k1" 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 mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="3dfx" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS
same with binutils-2.19.1-r1
Created attachment 202710 [details] Full build log and tests failures
Same here, attaching the full build log. This is on stable binutils so this should really be fixed or RESTRICT="test"
Same here with a fresh stable x86 chroot, containing only system.
*** Bug 295017 has been marked as a duplicate of this bug. ***
Built with sys-devel/gcc-4.3.4 USE="gcj mudflap nls nptl openmp test"... binutils-2.18-r3 fails the same tests for me. It's a remerge, so presumably the tests succeeded previously. binutils-2.18-r4 fails same tests. binutils-2.19.1-r1 fails same tests plus 40 more (8 new, 32 regressions). binutils-2.19.51.0.13 fails same tests as 2.19.1-r1 plus 2 regressions (ld-i386/hidden2, ld-scripts/empty-aligned) binutils-2.19.51.0.14 fails like .13 binutils-2.20 fails like 2.19.51.0.14 except it passes ld-elf/seg binutils-2.20.51.0.1 fails like 2.20 plus ld-elf/seg (regression) binutils-2.20.51.0.2 fails like .1 but passes ld-elf/seg binutils-2.20.51.0.3 passes the 3 tests but fails 10 others. binutils-2.20.51.0.4 is like .2 binutils-2.20.51.0.5 is like .5 Googling gives a few seemingly unrelated bugs (reported only on ARM, for a start): https://bugs.launchpad.net/ubuntu/+source/binutils/+bug/446478 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41684 http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=564685 Building with gcc-3.4.6-r2 USE=nptl (one of the oldest ones that successfully builds) succeeds, so I'd suspect it's a similar issue with binutils tests being buggy. Now to test with various versions of GCC (I'll get back to you in a few days...)
Succeeds with gcc-4.2.4-r1 USE=nptl (the only available 4.2). Fails with gcc-4.3.2-r3 USE=nptl and also gcc-4.3.3-r2 (the oldest/newest 4.3s). I'm guessing it's probably down to a change between 4.2 and 4.3.
binutils-2.20-r1 and binutils-2.20.1 should pass all tests now. if you hit a failure after syncing, file a new report.