This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Cannot compute suffix of object file - while building gcc 4.6.0
- From: Jonathan Wakely <jwakely dot gcc at gmail dot com>
- To: Syed Bilal Mehdi <bilal dot mehdi87 at gmail dot com>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Mon, 6 Jun 2011 20:51:03 +0100
- Subject: Re: Cannot compute suffix of object file - while building gcc 4.6.0
- References: <31786405.post@talk.nabble.com>
On 6 June 2011 20:33, Syed Bilal Mehdi <bilal.mehdi87@gmail.com> 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