http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54279
Bug #: 54279 Summary: first stage build with g++ fails with "." as the first component of $PATH Classification: Unclassified Product: gcc Version: 4.8.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: other AssignedTo: unassig...@gcc.gnu.org ReportedBy: g...@intrepid.com Posted here: http://gcc.gnu.org/ml/gcc-patches/2012-08/msg01032.html This build failure is a likely result of the recent change to compile GCC with the C++ compiler during the first stage. 1. I have "." on $PATH. 2. In one build of the latest GCC trunk, I specify CC=/usr/bin/gcc and CXX=/usr/bin/g++ and everything works. 3. In another build, I don't specify CC or CXX. Therefore they default to 'gcc' and 'g++'. This fails: g++: error trying to exec 'cc1plus': execvp: No such file or directory If I remove "." from $PATH then the configuration in 3 will build. The problem is that there is a g++ executable under the built gcc directory, but cc1plus and other g++ component parts haven't been built yet.