I am trying to build GCC 4.6 under CentOS 5.5 (Final). I recently created GMP-5.0.1, MPC-0.9, and MPFR-3.0.1 and used the following configure command:
../configure --prefix = / users / xxxx / apps / mygcc4.6 --disable-check --enable-threads = posix --enable-languages = c, C ++, fortran - with -mpfr = /users/xxxx/code/gcc/mpfr-3.0.1-install-cyprus --with-gmp = / users / xxxx / code / gcc / gmp-5.0.1-install-cyprus --with-mpc = / users / xxxx / code / GCC / MPC-0.9-setting-cyprus
After that, I run make and after about 5 minutes I get the following error message:
checking the suffix of object files ... configure: error: in /users/xxxx/code/gcc/gcc-4.6.0/obj/x86_64-unknown-linux-gnu/libgcc':
configure: error: cannot compute suffix of object files: cannot compile
Seeconfig.log "for more details.
Config.log indicates that a recently generated program (cc1) is involved:
/users/xxxx/code/gcc/gcc-4.6.0/obj/./GCC/CC1
Indeed, if I run this program without arguments, I get the same error message that is in config.log:
when loading shared libraries: libmpfr.so.4: cannot open shared objects file: no such file or directory
However, libmpfr.so.4 is located in the lib subdirectory that is provided for configuration using the --with-mpfr flag, as shown above. I have LD_LIBRARY_PATH and LIBRARY_PATH empty. Any idea how I can get through this error?
source
share