problem building gcc 4.5.0 on centos 4.7 under a plain user

Andrew Aksyonoff andrew.aksyonoff@gmail.com
Sat May 22 15:11:00 GMT 2010


Hello,

I'm trying to build gcc 4.5.0 for benchmarking purposes on a Centos
4.7 x64 system.  System-wide gcc is 3.4.6.  I'm doing the build from
under a plain user account to avoid clogging the system.

I've built gmp, mpc and mpfr in my home directory using ./configure
--prefix=/home/shodan/bench && make install

I'm now trying to build gcc 4.5.0 itself, using ./configure
--prefix=/home/shodan/bench --with-mpc=/home/shodan/bench
--with-gmp=/home/shodan/bench --with-mpfr=/home/shodan/bench && make,
but that fails with the following message:

Configuring in x86_64-unknown-linux-gnu/libgcc
...
checking for x86_64-unknown-linux-gnu-gcc...
/home/shodan/build/gcc-4.5.0/host-x86_64-unknown-linux-gnu/gcc/xgcc
-B/home/shodan/build/gcc-4.5.0/host-x86_64-unknown-linux-gnu/gcc/
-B/home/shodan/bench/x86_64-unknown-linux-gnu/bin/
-B/home/shodan/bench/x86_64-unknown-linux-gnu/lib/ -isystem
/home/shodan/bench/x86_64-unknown-linux-gnu/include -isystem
/home/shodan/bench/x86_64-unknown-linux-gnu/sys-include

checking for suffix of object files... configure: error: in
`/home/shodan/build/gcc-4.5.0/x86_64-unknown-linux-gnu/libgcc':
configure: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details.
make[1]: *** [configure-target-libgcc] Error 1

And in config.log, it says it wasn't able to load libmpc:

configure:3211: checking for suffix of object files

configure:3233:
/home/shodan/build/gcc-4.5.0/host-x86_64-unknown-linux-gnu/gcc/xgcc
-B/home/shodan/build/gcc-4.5.0/host-x86_64-unknown-linux-gnu/gcc/
-B/home/shodan/bench/x86_64-unknown-linux-gnu/bin/
-B/home/shodan/bench/x86_64-unknown-linux-gnu/lib/ -isystem
/home/shodan/bench/x86_64-unknown-linux-gnu/include -isystem
/home/shodan/bench/x86_64-unknown-linux-gnu/sys-include -c -g -O2
conftest.c >&5

/home/shodan/build/gcc-4.5.0/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

What do I do to make xgcc see that local version of libmpc?  Will it
help to install libmpc etc system wide?  (I would prefer not to, but
installing libraries system wide is an option.  Installing new gcc
itself however is not.)

Thanks!

-- 
Andrew Aksyonoff
Sphinx Technologies, http://sphinxsearch.com



More information about the Gcc-help mailing list