While doing emerge system, the ebuild of Python-2.2.2 fails with: Checking whether the C++ compiler (g++ -march=pentum3 -O3 -pipe) works ... no ... 'find / -name g++' returns: /usr/bin/g++ Attempt to run g++ manully: '/usr/bin/g++ -march=pentium3 -O3 -pipe something.cpp' Could not run/locate g++! g++ is there, 'file g++' verifies that it is a executable. I checked that gcc-config-1.3.1 is installed. Reproducible: Didn't try Steps to Reproduce: Still working on initial setup. If I can't find a work around, I will restart the install from step 0.
please do this: `gcc-config --list-profiles` figure out which one you want (if you have more than 1) `gcc-config i686-pc-linux-gnu-3.2.2` (if you want 3.2.2) `env-update && source /etc/profile` `echo 'int main(){return 0;}' > file.cpp` `g++ file.cpp` `/usr/bin/g++ file.cpp`
Its basically the wrapper that cannot locate the g++ binary. Please do: # ls `gcc-config --get-bin-path`/ and paste what you get.
Still there ?
Unfortunatly I began rebuilding the machine from the begining over the weekend *before* I got you reply... :/ This time the system got past that point without any errors. I'm not sure what I did wrong the first time, but the problem didn't occur again. Sorry, Andrew
Ok, glad its working now :)
seems like that happened to me when I forgot to unset the USE variable in step 10 of the 1.4_rc2 install guide. the "emerge -u world" updated my gcc and the g++, gcj, g77... binaries were not present in /usr/i686-pc-linux-gnu/gcc-bin/3.2 not a bug in gentoo, but perhaps this hint helps others that hit this problem.
I did another bootstrap last night after an emerge sycn (5/8/03). I did get the same problem. I did ls `gcc-config --get-bin-path` and got: cpp gcc gccbug gcov i686-pc-linux-gnu-gcc. Notice that cpp is there, but g++ isn't. I tried to compile the file.php above with cpp. I got : C++ compiler not installed on this system. g++ is installed in /usr/bin, and it's size is 5200 bytes. Is it corrupted? Re- emerge gcc didn't fix it.
A little additional comments: I did: gcc-config --get-stdcxx-incdir and got: /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.2/include/g++-v3 However that directory is not there. gcc-config thinks that g++ is installed. Could some of my USE flags disabled g++? My USE flags are: USE="X gtk gnome alsa 3dnow aalib arts avi berkdb cdr cups curl doc dvd encode esd ethereal gb gd gdbm gif guile imap ipv6 java jpeg kde mbox mmx mozilla mpeg ncurses oggvorbis opengl oss pam perl png phyton qt quicktime readline spell sse ssl svga tcpd tiff truetype wmf xml xml2 xmms xv zlib"