Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 50276 - Potential problem with GCC v3.3.3
Summary: Potential problem with GCC v3.3.3
Status: RESOLVED DUPLICATE of bug 49363
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High blocker (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-05-06 11:51 UTC by Nikola Tesla
Modified: 2005-07-17 13:06 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nikola Tesla 2004-05-06 11:51:36 UTC
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
Comment 1 Tuan Van (RETIRED) gentoo-dev 2004-05-06 14:14:30 UTC
see bug #49363, follow the URL to the forum, looking for the fix(workaround) by modify the spec file. Hope it help :)
Comment 2 Mr. Bones. (RETIRED) gentoo-dev 2004-05-06 22:31:25 UTC

*** This bug has been marked as a duplicate of 49363 ***