Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 16146 - g++ not found. Workaround from other bug reports does NOT fix issue.
Summary: g++ not found. Workaround from other bug reports does NOT fix issue.
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High blocker (vote)
Assignee: Martin Schlemmer (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-02-21 11:12 UTC by Andrew Fritz
Modified: 2003-05-08 11:19 UTC (History)
1 user (show)

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 Andrew Fritz 2003-02-21 11:12:08 UTC
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.
Comment 1 SpanKY gentoo-dev 2003-02-21 11:27:54 UTC
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` 
Comment 2 Martin Schlemmer (RETIRED) gentoo-dev 2003-02-23 18:56:27 UTC
Its basically the wrapper that cannot locate the g++ binary.  Please
do:

  # ls `gcc-config --get-bin-path`/

and paste what you get.
Comment 3 Martin Schlemmer (RETIRED) gentoo-dev 2003-02-24 09:38:06 UTC
Still there ?
Comment 4 Andrew Fritz 2003-02-24 16:42:59 UTC
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
Comment 5 Martin Schlemmer (RETIRED) gentoo-dev 2003-02-26 02:53:50 UTC
Ok, glad its working now :)
Comment 6 Bernhard Bock 2003-03-27 09:11:29 UTC
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.
Comment 7 Ezra Nugroho 2003-05-08 10:43:37 UTC
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.

Comment 8 Ezra Nugroho 2003-05-08 11:19:05 UTC
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"