gcc-4.6.2 build problem related to xgcc not liking '-V' option on i686-pc-linux-gnu

Sinkler, Wharton Wharton.Sinkler@uop.com
Mon Nov 7 17:10:00 GMT 2011


Thanks to all.  I got it built successfully after setting the LD_LIBRARY_PATH environment variable in the terminal:

export LD_LIBRARY_PATH=/usr/local/lib:${LD_LIBRARY_PATH}

If you are interested, I am hereby volunteering to contribute a short writeup of the successful installation process on my system.  I think this could be helpful to people wanting to install gcc, but not as versed in Unix and working with compilers and linkers.  

One thing which I would recommend is to put links on the installation pages (http://gcc.gnu.org/install/) to some of FAQ and tutorial pages.  

Let me know if you would entertain my editing of the html files and emailing these back your way.  

Wharton 

-----Original Message-----
From: Jonathan Wakely [mailto:jwakely.gcc@gmail.com] 
Sent: Sunday, November 06, 2011 5:11 PM
To: Sinkler, Wharton
Cc: Ian Lance Taylor; gcc-help@gcc.gnu.org
Subject: Re: gcc-4.6.2 build problem related to xgcc not liking '-V' option on i686-pc-linux-gnu

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.



More information about the Gcc-help mailing list