我正在尝试在CentOS 5.5版(最终版)下构建GCC 4.6 . 我刚刚构建了GMP-5.0.1,MPC-0.9和MPFR-3.0.1,并使用了以下configure命令:
../configure --prefix=/users/xxxx/apps/mygcc4.6 --disable-checking --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-install-cyprus
在此之后,我运行make并在大约5分钟后得到以下错误消息:
checking for 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表示涉及最近生成的程序(cc1):
/users/xxxx/code/gcc/gcc-4.6.0/obj/./gcc/cc1
事实上,如果我在没有参数的情况下运行此程序,我会在config.log中找到相同的错误消息:
error while loading shared libraries: libmpfr.so.4: cannot open shared object file: No such file or directory
但是,libmpfr.so.4位于提供的lib子目录中,使用--with-mpfr标志进行配置,如上所示 . 我有LD_LIBRARY_PATH和LIBRARY_PATH为空 . 知道如何通过这个错误吗?