On 6 June 2011 20:51, Jonathan Wakely wrote: > On 6 June 2011 20:33, Syed Bilal Mehdi <bilal.mehdi87@xxxxxxxxx> wrote: >> >> I was trying to build gcc 4.6. Configure goes fine with the following >> command: >> >> ./configure prefix=/scratch/local/Bilal/gcc/ >> --with-gmp=/scratch/local/Bilal/gmp --with-mpfr=/scratch/local/Bilal/mpfr >> --with-mpc=/scratch/local/Bilal/mpc > > Don't do that > http://gcc.gnu.org/wiki/FAQ#configure > >> but make fails with the following error: >> >> checking for suffix of object files... configure: error: in >> `/scratch/local/Bilal/gccSource/i686-pc-linux-gnu/libgcc': >> configure: error: cannot compute suffix of object files: cannot compile >> See `config.log' for more details. > > http://gcc.gnu.org/wiki/FAQ#configure_suffix > >> /scratch/local/Bilal/gccSource2/host-i686-pc-linux-gnu/gcc/cc1: error while >> loading shared libraries: libmpc.so.2: cannot open shared object file: No >> such file or directory > > This is the problem, because you didn't read the documentation for > --with-gmp and --with-mpc > > See http://advogato.org/person/redi/diary/240.html > Or to make your life even easier, just install libgmp etc. from your Linux distribution's package manager instead of installing them yourself.