As I have done many times before, I typed "emerge --pretend --update system" after doing an emerge. It showed that it wanted to download and build three packages, including a patched GCC 3.2.1 release. "Okay", I thought, and went with it: "emerge --update system". After a while, I checked the shell window and it showed that procpcs-3.1.4 had failed to build. I thought: "Hmmm, that's disappointing, since I wasn't having any build problems lately". But then the actual error message caught my attention: "it couldn't find cc". I tried to run 'cc', and then 'gcc', and it appeared to be gone. I searched the drive and /usr/bin/gcc was GONE. Well, that's just great. I've got myself a real chicken-and-egg problem. In order to obtain GCC, I need to have it rebuilt by portage. But in order for that to be done, GCC needs to be available on the system... Aaaargh!!! What I'd like to know is if I did anything wrong. If so, I couldn't imagine what on earth that could have been. I followed the standard procedure of "emerge rsync", "emerge --update rsync", "emerge --pretend --update system" and finally "emerge --update system". One thing I DID notice though: during the building of the patched GCC, a warning was displayed (indicated by red asterisks), saying that this was an experimental patch for developers only. Anyway, am I the only one who f***ed up this seriously? If not, then this seems like a serious problem. Emerge does seem to work, it just currently isn't able to build anything (duh, the compiler is missing). Now what?
Hmmm... It seems that icc (the Intel compiler) is available in the portage tree. And it must be in binary form, since Intel never released the sources to this compiler. If I'm not mistaken, there is supposed to be some sort of "compiler selection tool" existing somewhere in Gentoo. At least I'll be able to obtain a precompiled compiler through portage. Do any of you know if icc can be used to build gcc? Or am I really approaching the bleeding edge on this one? ;)
It sounds like your counter file is corrupt. Care to e-mail me @ cardoe@cardoe.com and I can try to help you.
Interesting! I wanted to try getting Gentoo to compile gcc using icc. When I just ran "emerge gcc" (to see what cc or gcc the make-script would call, so I could make a temporary dirty symlink from the /opt/intel directory, yes, I know, utter maddness ;) ), I noticed that the utility gcc-config was responsible for showing and hiding the gcc compiler and even capable of switching between compiler version. Most likekly through the use of symlinks. Suddenly, things started to make sense again. Most likely, something went wrong during the last emerge, perhaps in the sequence in which certain packages were upgraded, resulting in gcc-config somehow being instructed to incorrectly configure the symlinks normally pointing to gcc.
Now that I think about it. This might be a dup of 12246.
Yes, it would appear so. And I really thought I had checked thoroughly enought before I decided to report this as a new bug. Sorry, about that. :(
*** This bug has been marked as a duplicate of 12246 ***