http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54260
--- Comment #3 from Feto <Fetrovsky at gmail dot com> 2012-08-15 23:48:07 UTC --- Hi, Thanks for the response. I've looked at the corresponding config.log, and looked into the problems there, but I can't seem to make sense of what's going on. I get: 98 configure:3373: /home/Feto/sw/gcc/build/./gcc/xgcc -B/home/Feto/sw/gcc/build/./gcc/ -B/usr/local/x86_64-unknown-linux-gnu/bin/ -B/usr/local/x86_64-unknown-linux-gnu/lib/ -isystem /usr/local/x86_64-unknown-linux-gnu/include -isystem /usr/local/x86_64-unknown-linux-gnu/sys-include -o conftest -g -O2 conftest.c >&5 99 /home/Feto/sw/gcc/build/./gcc/cc1: error while loading shared libraries: libmpc.so.2: cannot open shared object file: No such file or directory 100 configure:3376: $? = 1 101 configure:3564: checking for suffix of object files 102 configure:3586: /home/Feto/sw/gcc/build/./gcc/xgcc -B/home/Feto/sw/gcc/build/./gcc/ -B/usr/local/x86_64-unknown- linux-gnu/bin/ -B/usr/local/x86_64-unknown-linux-gnu/lib/ -isystem /usr/local/x86_64-unknown-linux-gnu/include - isystem /usr/local/x86_64-unknown-linux-gnu/sys-include -c -g -O2 conftest.c >&5 103 /home/Feto/sw/gcc/build/./gcc/cc1: error while loading shared libraries: libmpc.so.2: cannot open shared object file: No such file or directory 104 configure:3590: $? = 1 105 configure: failed program was: 106 | /* confdefs.h */ 107 | #define PACKAGE_NAME "GNU C Runtime Library" 108 | #define PACKAGE_TARNAME "libgcc" 109 | #define PACKAGE_VERSION "1.0" 110 | #define PACKAGE_STRING "GNU C Runtime Library 1.0" 111 | #define PACKAGE_BUGREPORT "" 112 | #define PACKAGE_URL "http://www.gnu.org/software/libgcc/" 113 | /* end confdefs.h. */ 114 | 115 | int 116 | main () 117 | { 118 | 119 | ; 120 | return 0; 121 | } 122 configure:3604: error: in `/home/Feto/sw/gcc/build/x86_64-unknown-linux-gnu/libgcc': 123 configure:3607: error: cannot compute suffix of object files: cannot compile 124 See `config.log' for more details. So I tried compiling the test file (conftest.c) like so: /home/Feto/sw/gcc/build/./gcc/xgcc -B/home/Feto/sw/gcc/build/./gcc/ -B/usr/local/x86_64-unknown-linux-gnu/bin/ -B/usr/local/x86_64-unknown-linux-gnu/lib/ -isystem /usr/local/x86_64-unknown-linux-gnu/include -isystem /usr/local/x86_64-unknown-linux-gnu/sys-include -o conftest -g -O2 conftest.c I made sure libmpc is properly installed, the proper location is passed to configure, and so on. I'm not sure what else to try. [Feto@fet libgcc]$ ll /usr/local/lib/libmpc* -rw-r--r-- 1 root root 211870 Aug 14 15:27 /usr/local/lib/libmpc.a -rwxr-xr-x 1 root root 946 Aug 14 15:27 /usr/local/lib/libmpc.la lrwxrwxrwx 1 root root 15 Aug 14 15:27 /usr/local/lib/libmpc.so -> libmpc.so.2.0.0 lrwxrwxrwx 1 root root 15 Aug 14 15:27 /usr/local/lib/libmpc.so.2 -> libmpc.so.2.0.0 -rwxr-xr-x 1 root root 98008 Aug 14 15:27 /usr/local/lib/libmpc.so.2.0.0 [Feto@fet libgcc]$ ld -lmpc ld: warning: cannot find entry symbol _start; not setting start address [Feto@fet libgcc]$ Thank you, - Daniel