------- Comment #10 from David dot Biesack at sas dot com 2010-01-14 20:09 ------- I ran across this error also. I have local recent builds of gmp, mpfr, mpc and configured with ./configure --with-gmp=/usr/local --with-mpfr=/usr/local --with-mpc=/usr/local
I'm working with a clean snapshot of the svn checkout of the GOMP/OpenMP code (155860) After running configure with no, the make fails. Although most of the config.log files show no problem with computing the suffix of object files, my ./x86_64-unknown-linux-gnu/libcc/config.log shows an error. I've attached it as libcc-config.log Attachment #19600. It contains: configure:3210: checking for suffix of object files configure:3232: /usr/local/src/gomp/host-x86_64-unknown-linux-gnu/gcc/xgcc -B/usr/local/src/gomp/host-x86_64-unknown-linux-gnu/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 /usr/local/src/gomp/host-x86_64-unknown-linux-gnu/gcc/cc1: error while loading shared libraries: libmpc.so.2: cannot open shared object file: No such file or directory configure:3236: $? = 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:3250: error: in `/usr/local/src/gomp/x86_64-unknown-linux-gnu/libgcc': configure:3253: error: cannot compute suffix of object files: cannot compile See `config.log' for more details. I have gcc/g++ : acl811 # gcc -v Using built-in specs. Target: x86_64-redhat-linux Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-libgcj-multifile --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --disable-dssi --enable-plugin --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre --with-cpu=generic --host=x86_64-redhat-linux Thread model: posix gcc version 4.1.2 20080704 (Red Hat 4.1.2-44) acl811 # g++ -v Using built-in specs. Target: x86_64-redhat-linux Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-libgcj-multifile --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --disable-dssi --enable-plugin --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre --with-cpu=generic --host=x86_64-redhat-linux Thread model: posix gcc version 4.1.2 20080704 (Red Hat 4.1.2-44) This is a RHEL system. # uname -a Linux acl811.unx.sas.com 2.6.18-128.el5 #1 SMP Wed Dec 17 11:41:38 EST 2008 x86_64 x86_64 x86_64 GNU/Linux My /usr/local/mpc looks ok: acl811 # ls -al /usr/local/lib/libmpc* -rw-r--r-- 1 root root 198774 Jan 14 14:45 /usr/local/lib/libmpc.a -rwxr-xr-x 1 root root 996 Jan 14 14:45 /usr/local/lib/libmpc.la* lrwxrwxrwx 1 root root 15 Jan 14 14:45 /usr/local/lib/libmpc.so -> libmpc.so.2.0.0* lrwxrwxrwx 1 root root 15 Jan 14 14:45 /usr/local/lib/libmpc.so.2 -> libmpc.so.2.0.0* -rwxr-xr-x 1 root root 89755 Jan 14 14:45 /usr/local/lib/libmpc.so.2.0.0* acl811 # ldd /usr/local/lib/libmpc.so.2.0.0 libmpfr.so.1 => /usr/local/lib/libmpfr.so.1 (0x00002ad05e4a4000) libgmp.so.3 => /usr/local/lib/libgmp.so.3 (0x00002ad05e6f0000) libc.so.6 => /lib64/libc.so.6 (0x00002ad05e968000) /lib64/ld-linux-x86-64.so.2 (0x0000003a05c00000) however, I reran my mpc install to verify and when I dig, mu gnu openmp was able to find it and also compute the .o suffix and continue with the build -- David dot Biesack at sas dot com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |David dot Biesack at sas dot | |com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42727