【发布时间】:2019-11-06 05:37:20
【问题描述】:
我已成功地将 GNU GCC-9.1.0 编译到我的 Sun/Oracle SPARC 服务器上的 Solaris 10 SPARC 版操作系统中。 但是,我不得不将 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 代码源文件的 tarball 存档时,我现在遇到了问题。当我输入 './configure' 时,我收到一条错误消息,提示 'C Compiler does not work, see config.log file for details'。我已将生成的相关 config.log 文件上传到以下 URL。它提到一个名为“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)
【问题讨论】:
-
它提到了一个名为
libmpc.so.3的静态库文件这没有意义。libmpc.so.3应该是一个共享对象,而不是一个“静态库”。 -
啊,是的。我的错。谢谢安德鲁 :)
标签: gcc makefile solaris gnu sparc