作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在尝试从 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/
我是一名优秀的程序员,十分优秀!