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.
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.
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 ***