On 6 November 2011 21:38, Sinkler, Wharton wrote: > > The very last thing recognizable as an error in the gcc_build/i686-pc-linux-gnu/libgcc/config.log file is this: > > configure:3246: checking for suffix of object files > configure:3268: /home/E341484/gnu-install/gcc_build/./gcc/xgcc -B/home/E341484/gnu-install/gcc_build/./gcc/ -B/usr/local/i686-pc-linux-gnu/bin/ -B/usr/local/i686-pc-linux-gnu/lib/ -isystem /usr/local/i686-pc-linux-gnu/include -isystem /usr/local/i686-pc-linux-gnu/sys-include -c -g -O2 conftest.c >&5 > /home/E341484/gnu-install/gcc_build/./gcc/cc1: error while loading shared libraries: libcloog.so.0: cannot open shared object file: No such file or directory > configure:3272: $? = 1 > > This seems to suggest I'm missing libcloog.so.0. However I have installed this already: > > ls -l /usr/local/lib/libcloog* > lrwxrwxrwx 1 root root 17 Nov 2 07:04 /usr/local/lib/libcloog.so.0 -> libcloog.so.0.0.0 > -rwxr-xr-x 1 root root 323388 Nov 2 07:04 /usr/local/lib/libcloog.so.0.0.0 > > (in addition to .a and .1a and .so as well in the same place). The path to these is specified in the configure command (with --with-cloog=/usr/local ). > > So shouldn't it be found? > > In another post from Johnathan Wakely, he sent some links to these web pages: > > http://gcc.gnu.org/wiki/FAQ#configure_suffix > http://advogato.org/person/redi/diary/253.html > > This suggests the 'cannot compute object file suffix' error is related to not having the prerequisites in place. No, that's not what it says. It says having them in place is not enough, the dynamic linker needs to find them. If you have them installed but not in the dynamic linker's search path then it will not find them. > I have however installed all of them (gmp-4.3.2, mpc-0.9, mpfr-3.1.0 in addition to ppl-0.11.2 and clog-ppl-0.15.11), and their locations are all specified in the configure statement (--with-gmp=/usr/local --with-mpc=/usr/local etc.). > > The 2nd link suggests using the ./contrib./download_prerequisites script to get the correct prerequisites in the correct places, which I then did (after freshly re-expanding everything from the .tar file and deleting everything from the gcc_build directory). > > I then ran: > > ../gcc-4.6.2/configure -enable-languages=c,c++,fortran > make > > but this also failed with the errors described below (suggests I have conflicting versions of gmp: do I need to find and get rid of gmp-3.x.x to get this to work?). Yes, that would solve the problem.