I wanted to build GCC 4.7.1 with: $ ~/gcc-4.7.1/configure --prefix=$HOME/sw/gcc-4.7.1 --disable-tls --enable-languages=c --with-gmp=/opt/cfarm/gmp-latest --with-mpfr=/opt/cfarm/mpfr-latest --with-mpc=/opt/cfarm/mpc-latest but got the following error: [...] checking for hppa2.0-unknown-linux-gnu-gcc... /home/vinc17/gcc-obj/./gcc/xgcc -B/home/vinc17/gcc-obj/./gcc/ -B/home/vinc17/sw/gcc-4.7.1/hppa2.0-unknown-linux-gnu/bin/ -B/home/vinc17/sw/gcc-4.7.1/hppa2.0-unknown-linux-gnu/lib/ -isystem /home/vinc17/sw/gcc-4.7.1/hppa2.0-unknown-linux-gnu/include -isystem /home/vinc17/sw/gcc-4.7.1/hppa2.0-unknown-linux-gnu/sys-include checking for suffix of object files... configure: error: in `/home/vinc17/gcc-obj/hppa2.0-unknown-linux-gnu/libgcc': configure: error: cannot compute suffix of object files: cannot compile See `config.log' for more details. make[2]: *** [configure-stage1-target-libgcc] Error 1 make[2]: Leaving directory `/home/vinc17/gcc-obj' make[1]: *** [stage1-bubble] Error 2 make[1]: Leaving directory `/home/vinc17/gcc-obj' make: *** [all] Error 2 The last error in the config.log file is: configure:3562: checking for suffix of object files configure:3584: /home/vinc17/gcc-obj/./gcc/xgcc -B/home/vinc17/gcc-obj/./gcc/ -B/home/vinc17/sw/gcc-4.7.1/hppa2.0-unknown-linux-gnu/bin/ -B/home/vinc17/sw/gcc-4.7.1/hppa2.0-unknown-linux-gnu/lib/ -isystem /home/vinc17/sw/gcc-4.7.1/hppa2.0-unknown-linux-gnu/include -isystem /home/vinc17/sw/gcc-4.7.1/hppa2.0-unknown-linux-gnu/sys-include -c -g -O2 conftest.c >&5 /home/vinc17/gcc-obj/./gcc/cc1: error while loading shared libraries: libmpc.so.2: cannot open shared object file: No such file or directory configure:3588: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "GNU C Runtime Library" | #define PACKAGE_TARNAME "libgcc" | #define PACKAGE_VERSION "1.0" | #define PACKAGE_STRING "GNU C Runtime Library 1.0" | #define PACKAGE_BUGREPORT "" | #define PACKAGE_URL "http://www.gnu.org/software/libgcc/" | /* end confdefs.h. */ | | int | main () | { | | ; | return 0; | } configure:3602: error: in `/home/vinc17/gcc-obj/hppa2.0-unknown-linux-gnu/libgcc': configure:3605: error: cannot compute suffix of object files: cannot compile So, it cannot find "libmpc.so.2". But in /opt/cfarm/mpc-latest/lib/ there is: -rw-r--r-- 1 iulius cfarm 150030 Jun 18 22:50 libmpc.a -rwxr-xr-x 1 iulius cfarm 1148 Jun 18 22:50 libmpc.la lrwxrwxrwx 1 iulius cfarm 15 Jun 18 22:50 libmpc.so -> libmpc.so.2.0.0 lrwxrwxrwx 1 iulius cfarm 15 Jun 18 22:50 libmpc.so.2 -> libmpc.so.2.0.0 -rwxr-xr-x 1 iulius cfarm 95959 Jun 18 22:50 libmpc.so.2.0.0 Where does the problem come from? -- Vincent Lefèvre <vincent@xxxxxxxxxx> - Web: <http://www.vinc17.net/> 100% accessible validated (X)HTML - Blog: <http://www.vinc17.net/blog/> Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)