Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 147762 - C compiler cannot create executables
Summary: C compiler cannot create executables
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High blocker (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-09-15 20:05 UTC by Shaw
Modified: 2006-09-15 21:02 UTC (History)
0 users

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


Attachments
make.conf (make.conf,1.25 KB, text/plain)
2006-09-15 20:05 UTC, Shaw
Details
emerge -Du gcc-4.1 failure (emerge.log,9.67 KB, text/plain)
2006-09-15 20:08 UTC, Shaw
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Shaw 2006-09-15 20:05:01 UTC
I've searched forums, and read the relevant bugs in bugzilla with no luck.

I ran an emerge -Du world on a x86 laptop that hasn't been upgraded in a long time.  The emerge finally failed with the error in the subject line.  Thinking that it emerged a new gcc but failed to update with gcc-config, I updated with gcc-config, sourced /etc/profile, and ran fix-libtools.
Comment 1 Shaw 2006-09-15 20:05:59 UTC
Created attachment 97109 [details]
make.conf
Comment 2 Shaw 2006-09-15 20:08:53 UTC
Created attachment 97110 [details]
emerge -Du gcc-4.1  failure
Comment 3 Shaw 2006-09-15 20:09:43 UTC
[shaw@kron ~ 42]% gcc-config -l
 [1] i686-pc-linux-gnu-3.3.6
 [2] i686-pc-linux-gnu-3.3.6-hardened
 [3] i686-pc-linux-gnu-3.3.6-hardenednopie
 [4] i686-pc-linux-gnu-3.3.6-hardenednopiessp
 [5] i686-pc-linux-gnu-3.3.6-hardenednossp
 [6] i686-pc-linux-gnu-3.4.5 *
 [7] i686-pc-linux-gnu-3.4.5-hardened
 [8] i686-pc-linux-gnu-3.4.5-hardenednopie
 [9] i686-pc-linux-gnu-3.4.5-hardenednopiessp
 [10] i686-pc-linux-gnu-3.4.5-hardenednossp
[shaw@kron ~ 43]% cat /etc/ld.so.conf
# ld.so.conf autogenerated by env-update; make all changes to
# contents of /etc/env.d directory
/usr/local/lib
//usr//lib/opengl/xorg-x11/lib
/usr/i686-pc-linux-gnu/lib
/usr/lib/gcc/i686-pc-linux-gnu/3.4.5
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6
/usr/lib/nspr
/usr/lib/nss
/usr/lib
/opt/sun-jdk-1.4.2.10/jre/lib/i686/
/opt/sun-jdk-1.4.2.10/jre/lib/i686/native_threads/
/opt/sun-jdk-1.4.2.10/jre/lib/i686/client/
/opt/sun-jdk-1.4.2.10/jre/lib/i686/server/
/usr/lib/qt4
/usr/kde/3.5/lib
/usr/qt/3/lib
/usr/kde/3.4/lib
/usr/kde/3.3/lib
/usr/qt/2/lib
/usr/games/lib
/usr/lib/libstdc++-v3/

Comment 4 Shaw 2006-09-15 21:02:50 UTC
Sorry for the noise, I got it working.

I found that /bin/as was a dead link and relinked it to /usr/i686-pc-linux-gnu/binutils-bin/2.16.1/as

Then I ran binutil-config 1, which downgraded me to i686-pc-linux-gnu-2.16.1 from i686-pc-linux-gnu-2.17.  I bet this would have fixed the dead assembly link above too, but I don't know what I'm doing.

This got my gcc-4.1 compile going, so I'm happy.