Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 85590 - gcc is missing from my system; I suffered and "INCOMPLETE MERGE" of gcc-3.3.5-r1 and now I don't have a gcc compiler
Summary: gcc is missing from my system; I suffered and "INCOMPLETE MERGE" of gcc-3.3.5...
Status: RESOLVED DUPLICATE of bug 85490
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High blocker (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-16 21:40 UTC by Kory Stiffler
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 Kory Stiffler 2005-03-16 21:40:13 UTC
GCC COMPILER HAS VANISHED FROM MY SYSTEM!

HOW THIS HAPPENED:
I tried to update portage, 

#emerge --update portage

and it died in the middle of the update.  
So I went ahead and did a pretend emerge world:
 
#emerge -p --update --deep --newuse world 

and that told me that I had an incomplete merge lying around:

#INCOMPLETE MERGE: /var/db/pkg/sys-devel/-MERGING-gcc-3.3.5-r1

Anytime I emerge ANYTHING, of course, it dies when gcc is called, because...
IT'S NOT THERE!

I did a little rooting around and found gcc cyclically linked to another link; here are some of the contents of /usr/i686-pc-linux-gnu/gcc-bin/3.3.5/

#lrwxrwxrwx 1 root root 21 Mar 16 02:54 gcc -> i686-pc-linux-gnu-gcc
#lrwxrwxrwx 1 root root 21 Mar 16 02:54 i686-pc-linux-gnu-gcc -> gcc
(part of the contents of /usr/i686-pc-linux-gnu/gcc-bin/3.3.5)

I also have a directory /usr/i686-pc-linux-gnu/gcc-bin/3.3 which has links to gcc which isn't there:

#lrwxrwxrwx 1 root root 21 3 May 18 2004 i686-pc-linux-gnu-gcc-3.3.2 -> gcc
#lrwxrwxrwx 1 root root 21 3 Jul 19 2004 i686-pc-linux-gnu-gcc-3.3.3 -> gcc
(total contents of /usr/i686-pc-linux-gnu/gcc-bin/3.3)

In summary, all of these links, which I believe should point to a gcc compiler executable, either cyclically point to themselves, or point to nothing, GCC IS NOT ANYWHERE ON MY SYSTEM.

basically, I need to know how to finish emerging the 
gcc-3.3.5-r1 package, or how to emerge a gcc compiler... ALL WITHOUT HAVING A GCC COMPILER ON THE SYSTEM

Here is the exact error message from updating portage..  the important line is this one:  

important exerpts from running '#emerge --update portage':

gcc-config error: Could not run/locate "gcc"
You need to find a working C compiler

Entire error message from running '#emerge --update portage':

* applying    perl-5.8.5 -nonblock.patch                 [OK]
* applying    perl-5.8.5 -tempfiles.patch                [OK]
>>>Source unpacked
gdbm 
berkdb
First let's make sure your kit is complete. Checking...
Locating common programs...
Checking compatibility between /bin/echo and built in echo (if any)...
Symbolic links are supported.
Checking how to test for symbolic links...
You can test for symbolic links with 'test -h'
Good, your tr supports [:lower] and [:upper] to convert case.
Using [:upper] and [:lower] to convert case.
gcc-config error: could not run/locate "gcc"
You need to find a working C compiler.
Either (purchase and) install the C compiler Supplied by your OS vendor, or
for a free Compiler try http://gcc.gnu.org/
I cannot continue any further, aborting.

!!!ERROR: dev-lang/perl-5.8.5-r5 failed
!!!function src_configure, Line 234, Exitcode 1
!!!Unable to Configure 

Reproducible: Always
Steps to Reproduce:
1.#emerge --update portage
2.
3.

Actual Results:  
* applying    perl-5.8.5 -nonblock.patch                 [OK]
* applying    perl-5.8.5 -tempfiles.patch                [OK]
>>>Source unpacked
gdbm 
berkdb
First let's make sure your kit is complete. Checking...
Locating common programs...
Checking compatibility between /bin/echo and built in echo (if any)...
Symbolic links are supported.
Checking how to test for symbolic links...
You can test for symbolic links with 'test -h'
Good, your tr supports [:lower] and [:upper] to convert case.
Using [:upper] and [:lower] to convert case.
gcc-config error: could not run/locate "gcc"
You need to find a working C compiler.
Either (purchase and) install the C compiler Supplied by your OS vendor, or
for a free Compiler try http://gcc.gnu.org/
I cannot continue any further, aborting.

!!!ERROR: dev-lang/perl-5.8.5-r5 failed
!!!function src_configure, Line 234, Exitcode 1
!!!Unable to Configure 

Expected Results:  
portage successfully updated or something happy like that

I don't know where or what emerge info is, or I would gladly paste it here.
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2005-03-17 00:03:34 UTC
Kory, there are links to precompiled gcc binaries in Bug 85490. 

See http://bugs.gentoo.org/show_bug.cgi?id=85490#c7 for instructions. 

emerge info means type 'emerge info' and post the output of the command.

Comment 2 Martin Schlemmer (RETIRED) gentoo-dev 2005-03-17 12:39:09 UTC
Just marking dup so that we can handle all the gcc fiasco's in one place.


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