On Saturday, 12 May 2012, Paul Keir wrote: > Hi, > > I'm having trouble building gcc 4.7.0 on 32-bit Ubuntu 12.04. I configure with: > > ../gcc-4.7.0/configure --enable-languages=c,c++,fortran --prefix=$HOME/apps/gcc-4.7.0 --program-suffix=-4.7 > > and the compile with "make". After some time, I receive an error indicating that gnu/stub-32.h cannot be found. I do have this file, so I try: > > make CFLAGS=-I/usr/include/i386-linux-gnu > > and now receive errors from a similar build stage: > > checking for C compiler default output file name... > configure: error: in `/home/paul/code/gcc-4.7/build/gcc': > configure: error: C compiler cannot create executables > > If I cd into the gcc directory and investigate, it seems like a simple compilation, using the existing gcc 4.6, is failing on a simple task due to the presence of a file called specs. > > I've tried a few other things, such as unsetting LIBRARY_PATH; and I've also installed g++multilib, but with no luck. Can anyone make a suggestion? You could try http://gcc.gnu.org/ml/gcc/2012-02/msg00314.html