I had not updated portage in some time, so I decided it was time. I left it emerge'ing world while I was away and returned to the following: checking for i686-pc-linux-gnu-gcc... gcc checking for C compiler default output... configure: error: C compiler cannot create executables ^^ This was received while emerging xmms. This struck me as odd, but I did a very quick test to make sure that the error I received was correct. I wrote a tiny C program simply to test if it would be able to compile, the code is as follows: int main () { int i = 0; return i; } When attempting to compile, I encountered this 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 ------- here are a few of the version numbers of the software which I'm working with - > gcc --version gcc (GCC) 3.3.3 20040412 (Gentoo Linux 3.3.3-r3, ssp-3.3-7, pie-8.5.3) > ld --version GNU ld version 2.14.90.0.8 20040114 > uname -a Linux Hercules 2.6.4-ck1 #1 Tue Mar 16 17:32:55 EST 2004 i686 AMD Athlon(tm) XP 1800+ AuthenticAMD GNU/Linux -- CFLAGS="-mcpu=athlon-xp -march=athlon-xp -O3 -pipe" -- * sys-devel/binutils Latest version available: 2.14.90.0.8-r1 Latest version installed: 2.14.90.0.8-r1
see bug #49363, follow the URL to the forum, looking for the fix(workaround) by modify the spec file. Hope it help :)
*** This bug has been marked as a duplicate of 49363 ***