I'm trying to install GCC 4.7.1 following this very good tutorial. I did (almost) everything by the book, but I get the following error during make
configure: error: cannot compute suffix of object files: cannot compile.
This is my configure command, the only thing I changed in that tutorial is the file gcc-4.7.1
, that's all.
../gcc-4.7.1/configure --build=x86_64-linux-gnu --prefix=/usr/gcc_4_7 --with
gmp=/usr/gcc_4_7 --with-mpfr=/usr/gcc_4_7 --with-mpc=/usr/gcc_4_7 --enable-
checking=release --enable-languages=c,c++ --disable-multilib --program-suffix=-4.7
I've looked in Google, and most of the answers seem to point to the way gcc
loads the includes for mpfr
, mpc
, and gmp
, so I symlinked the folders in the gcc-4.7 directory (I'm building outside the source directory, as per general recommendation).
Any ideas about what I'm doing wrong?