This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: 4.8.1 fails to build on x86_64-unknown-linux-gnu
- From: Jonathan Wakely <jwakely dot gcc at gmail dot com>
- To: Piotr Wyderski <piotr dot wyderski at gmail dot com>
- Cc: GCC Mailing List <gcc at gcc dot gnu dot org>
- Date: Mon, 10 Jun 2013 17:16:42 +0100
- Subject: Re: 4.8.1 fails to build on x86_64-unknown-linux-gnu
- References: <CAAP__2S+bRTjKBY0NVgnWuXRO6_VjVG8woL_Q17=gY4GcLRiZQ at mail dot gmail dot com>
On 10 June 2013 16:59, Piotr Wyderski wrote:
> I have a set of the required libraries built and installed into
> separate directories, so when gcc is configured with:
>
> ../configure --prefix=/opt/tools/gcc-4.8.1
> --with-gmp=/opt/tools/gmp-5.1.2 --with-mpfr=/opt/tools/mpfr-3.2.1
> --with-mpc=/opt/tools/mfr=/opt/tools/mpfr-3.2.1
> --with-mpc=/opt/tools/mpc-1.0.1 --with-ppl=/opt/tools/ppl-1.1
> --with-cloog=/opt/tools/cloog-0.18.0 --enable-languages=c,c++
> --disable-multilib
>
> during configure-stage1-target-libgcc:
>
> configure: error: cannot compute suffix of object files: cannot compile
>
> and config.log contains:
>
> configure:3565: checking for suffix of object files
> configure:3587: /mnt/local/piotrw/build/gcc-4.8.1/objdir/./gcc/xgcc
> -B/mnt/local/piotrw/build/gcc-4.8.1/objdir/./gcc/
> -B/opt/tools/gcc-4.8.1/x86_64-unknown-linux-gnu/bin/
> -B/opt/tools/gcc-4.8.1/x86_64-unknown-linux-gnu/lib/ -isystem
> /opt/tools/gcc-4.8.1/x86_64-unknown-linux-gnu/include -isystem
> /opt/tools/gcc-4.8.1/x86_64-unknown-linux-gnu/sys-include -c -g -O2
> conftest.c >&5
> /mnt/local/piotrw/build/gcc-4.8.1/objdir/./gcc/cc1: error while
> loading shared libraries: libmpc.so.3: cannot open shared object file:
> No such file or directory
FAQ: http://gcc.gnu.org/wiki/FAQ#configure_suffix
> which indicates that the configure scripts somehow failed to add the
> mpc libpath to the command line.
No, it means you haven't added /opt/tools/mpc-1.0.1 to the run-time
linker's path. That's your job, not the compiler's.
If there isn't a very good reason for installing the dependencies to
separate directories then you're doing it wrong, see
http://gcc.gnu.org/wiki/InstallingGCC