gpt4 book ai didi

solaris - 在 Solaris 上构建 binutils 2.21.1a 时出错

转载 作者:行者123 更新时间:2023-12-02 16:54:54 25 4
gpt4 key购买 nike

我正在尝试从 http://ftp.gnu.org/gnu/binutils 构建 binutils 2.21.1a在 Solaris sun4u sparc SunOS 5.10 上。我正在使用 gcc 版本 4.0.2。当我构建时出现以下错误:

cc1: warnings being treated as errors
compress.c: In function 'bfd_compress_section_contents':
compress.c:100: warning: implicit declaration of function 'compressBound'
make[2]: *** [compress.lo] Error 1
make[2]: Leaving directory `/nfs/netapp0/user/home/hart/downloads/binutils-2.21.1/bfd'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/nfs/netapp0/user/home/hart/downloads/binutils-2.21.1/bfd'
*** Error code 2
make: Fatal error: Command failed for target `all'

我将 --disable-werror 添加到配置行以尝试绕过它并希望继续构建。不幸的是,这也不起作用,我在链接时收到了这个新的相关错误:

Undefined                       first referenced
symbol in file
compressBound ../bfd/.libs/libbfd.a(compress.o)
ld: fatal: Symbol referencing errors. No output written to size
collect2: ld returned 1 exit status

我已搜索现有问题,但没有发现任何相关内容。有任何想法吗?我更喜欢使用此版本的 binutils,但如果您知道可以在该平台上使用 gcc 4.0.2 构建的版本,请特别告诉我。

最佳答案

我终于发现这个问题确实被归档为 BUG 。解决方法是将 --without-zlib 添加到配置脚本或在系统上安装最新版本的 zlib。

关于solaris - 在 Solaris 上构建 binutils 2.21.1a 时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7906152/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com