this looks very similar to a GCC miscompile I reported last night. Either someone's submitting bad ebuilds or there's something seriously wrong with the current ~x86 binutils. here's the compile error: /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.3/../../../../i686-pc-linux-gnu/bin/ld: unrecognized option '--as-needed' /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.3/../../../../i686-pc-linux-gnu/bin/ld: use the --help option for usage information collect2: ld returned 1 exit status make: *** [pngtest-static] Error 1 make: *** Waiting for unfinished jobs.... !!! ERROR: media-libs/libpng-1.2.5-r6 failed. !!! Function src_compile, Line 37, Exitcode 2 !!! Make failed emerge info: Portage 2.0.50-r7 (default-x86-2004.0, gcc-3.3.3, glibc-2.3.3_pre20040420-r0, 2.6.5-gentoo) ================================================================= System uname: 2.6.5-gentoo i686 AMD Athlon(tm) processor Gentoo Base System version 1.4.10 Autoconf: sys-devel/autoconf-2.59-r3 Automake: sys-devel/automake-1.8.3 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-O3 -mcpu=athlon -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O3 -mcpu=athlon -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox" GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://distro.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="3dnow X aalib acpi alsa audiofile avi berkdb cdr cjk crypt dga dvd encode flac gdbm gif gmp gphoto2 gtk imagemagick imlib java jpeg libg++ libwww mad mikmod mmx motif mozilla mpeg ncurses nls offensive oggvorbis opengl pam pdflib perl png python quicktime readline sdl slang spell ssl tcpd tetex tiff truetype unicode usb x86 xml2 xmms xv zlib"
might be a dup of bug 50211 sys-devel/binutils-2.14.90.0.8-r1 is the last version not hard-masked in ~x86
It is #50211. There's a long thread about it in the forums with a fix: http://forums.gentoo.org/viewtopic.php?t=166696
it's not Bug 50211 it's actually Bug 49363 *** This bug has been marked as a duplicate of 49363 ***
Nope, it's not 50211. It's the problem mentioned in the comments on 50211. My bad.