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