I did this: # USE="gold" emerge --oneshot sys-devel/binutils and got sys-devel/binutils-2.19.1-r1 installed. Then I try to emerge x11-base/xorg-server # emerge --oneshot x11-base/xorg-server The xorg server will fail to build because in the configure phase you get this error message: >>> Source unpacked in /usr/tmp/portage/x11-base/xorg-server-1.5.3-r6/work >>> Compiling source in /usr/tmp/portage/x11-base/xorg-server-1.5.3-r6/work/xorg-server-1.5.3 ... * econf: updating xorg-server-1.5.3/config.guess with /usr/share/gnuconfig/config.guess * econf: updating xorg-server-1.5.3/config.sub with /usr/share/gnuconfig/config.sub ./configure --prefix=/usr --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --libdir=/usr/lib64 --prefix=/usr --datadir=/usr/share --disable-ipv6 --disable-dmx --disable-kdrive --disable-tslib --disable-xcalibrate --enable-xvfb --enable-xnest --enable-xtrap --enable-record --enable-xfree86-utils --enable-install-libxf86config --enable-dri --enable-glx --enable-xorg --enable-glx-tls --enable-xorgcfg --enable-config-dbus --enable-config-hal --disable-dri2 --sysconfdir=/etc/X11 --localstatedir=/var --enable-install-setuid --with-fontdir=/usr/share/fonts --with-xkb-output=/var/lib/xkb --without-dtrace --disable-xsdl checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether to enable maintainer-specific portions of Makefiles... no checking for x86_64-pc-linux-gnu-gcc... x86_64-pc-linux-gnu-gcc checking for C compiler default output file name... configure: error: in `/usr/tmp/portage/x11-base/xorg-server-1.5.3-r6/work/xorg-server-1.5.3': configure: error: C compiler cannot create executables See `config.log' for more details. The relevant section of the config.log file reads: configure:3787: checking for C compiler default output file name configure:3809: x86_64-pc-linux-gnu-gcc -Os -march=athlon64 -msse3 -frename-registers -pipe -fomit-frame-pointer -funit-at-a-time -fno-ident -freord er-blocks -freorder-blocks-and-partition -fmerge-all-constants -combine -Wl,-O1 -Wl,--hash-style=gnu -Wl,-z,lazy conftest.c >&5 /usr/lib/gcc/x86_64-pc-linux-gnu/4.3.3/../../../../x86_64-pc-linux-gnu/bin/ld: lazy: unknown -z option /usr/lib/gcc/x86_64-pc-linux-gnu/4.3.3/../../../../x86_64-pc-linux-gnu/bin/ld: use the --help option for usage information collect2: ld returned 1 exit status configure:3813: $? = 1 configure:3851: result: configure: failed program was: | /* confdefs.h. */ | #define PACKAGE_NAME "xorg-server" | #define PACKAGE_TARNAME "xorg-server" | #define PACKAGE_VERSION "1.5.3" | #define PACKAGE_STRING "xorg-server 1.5.3" | #define PACKAGE_BUGREPORT "https://bugs.freedesktop.org/enter_bug.cgi?product=xorg" | #define PACKAGE "xorg-server" | #define VERSION "1.5.3" | /* end confdefs.h. */ | | int | main () | { | | ; | return 0; | } configure:3857: error: in `/usr/tmp/portage/x11-base/xorg-server-1.5.3-r6/work/xorg-server-1.5.3': configure:3860: error: C compiler cannot create executables See `config.log' for more details. Reproducible: Always Steps to Reproduce: 1. USE="gold" emerge --oneshot sys-devel/binutils 2. emerge --oneshot x11-base/xorg-server Actual Results: Got a configure error, the x11-base/xorg-server failed to build Expected Results: Normal build of the x11-base/xorg-server ebuild.
Also when I emerged sys-apps/openrc-0.4.3-r2 I got this error message: building shared library libeinfo.so.1 x86_64-pc-linux-gnu-gcc -Wl,-O1 -Wl,--hash-style=gnu -Wl,--version-script=einfo.map -L/lib64 -Wl,-rpath=/lib64 -shared -Wl,-x \ -o libeinfo.so.1 -Wl,-soname,libeinfo.so.1 \ libeinfo.So -lncurses /usr/lib/gcc/x86_64-pc-linux-gnu/4.3.3/../../../../x86_64-pc-linux-gnu/bin/ld: -x: unknown option /usr/lib/gcc/x86_64-pc-linux-gnu/4.3.3/../../../../x86_64-pc-linux-gnu/bin/ld: use the --help option for usage information collect2: ld returned 1 exit status make[2]: *** [libeinfo.so.1] Error 1 make[2]: Leaving directory `/usr/tmp/portage/sys-apps/openrc-0.4.3-r2/work/openrc-0.4.3/src/libeinfo' make[1]: *** [all] Error 2 make[1]: Leaving directory `/usr/tmp/portage/sys-apps/openrc-0.4.3-r2/work/openrc-0.4.3/src' make: *** [all] Error 2 * * ERROR: sys-apps/openrc-0.4.3-r2 failed. I thought this is a related error, so I appended it to the bug-report instead of making a new one.
did you read the flag description for USE gold? chadgentoo ~ # euses gold sys-devel/binutils:gold - Use the new gold linker (written in C++) rather than the standard linker (this _will_ break things)
(In reply to comment #2) > did you read the flag description for USE gold? > > chadgentoo ~ # euses gold > sys-devel/binutils:gold - Use the new gold linker (written in C++) rather than > the standard linker (this _will_ break things) > In my /usr/portage/profiles/use.local.desc file it just said: sys-devel/binutils:gold - Use the new gold linker (written in C++) rather than the standard linker Nothing there about that it would break things. But I have taken your comment ad notam.
*** This bug has been marked as a duplicate of bug 269288 ***