我已经在Sun/Oracle SPARC服务器上成功地将GNU GCC-9.1.0编译成Solaris10SPARC版操作系统。但是,我必须将libgmp.so、libmfr.so和libmpc.so的静态库文件复制到'gmake‘过程中创建的以下目录中: gcc-9.1.0/host-sparc-sun-solaris2.10/gcc gcc-9.1.0/host-sparc-sun-Solaris2.10/prev gcc
当我输入'./configure‘时,我得到一条错误消息,告诉我'C编译器不工作,有关详细信息,请参阅config.log文件’。我已经将生成的相关config.log文件上传到以下网址。它提到缺少一个名为'libmpc.so.3‘的静态库文件,但是这个库文件存在于/usr/local/lib目录中。
configure:2912: gcc -v >&5
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/local/libexec/gcc/sparc-sun-solaris2.10/9.1.0/lto-wrapper
Target: sparc-sun-solaris2.10
Configured with: ./configure --enable-obsolete --with-gmp-lib=/usr/local/lib --with-mpfr-lib=/usr/local/lib --with-mpc-lib=/usr/local/lib
...[snip]...
configure:2975: gcc conftest.c >&5
ld.so.1: cc1: fatal: libmpc.so.3: open failed: No such file or directory
gcc: fatal error: Killed signal terminated program cc1
compilation terminated.
configure:2978: $? = 1
configure:3016: result:
configure: failed program was:
| /* confdefs.h. */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:3023: error: C compiler cannot create executables
(完整的config.log请访问http://tab140.freewebspace.com/config-gcc9.txt)
https://stackoverflow.com/questions/56736124
复制相似问题