错误:在Binutils-2.27/gold/testsuite中缺少预期的TLS重定位

问题描述:

我在编译binutils-2.27gcc 5.3.0。 以下是配置选项:错误:在Binutils-2.27/gold/testsuite中缺少预期的TLS重定位

../binutils-2.27/configure --prefix=$FOO --build=x86_64-redhat-linux --disable-multilib --with-gmp=$FOO --with-mpfr=$FOO --with-mpc=$FOO --with-isl=$FOO --with-system-zlib --enable-lto --enable-ld --enable-gold --enable-plugins 

当我运行make check,我得到

gcc -Bgcctestdir/ -fPIE -g -O2 -Bgcctestdir/ -Wl,-R,. -o pr20216a_test pr20216a_test-pr20216_main.o pr20216a_test-pr20216_def.o pr20216_gd.o pr20216_ld.o -ldl 
../../../binutils-2.27/gold/testsuite/pr20216_gd.S:13: error: missing expected TLS relocation 
../../../binutils-2.27/gold/testsuite/pr20216_gd.S:27: error: missing expected TLS relocation 
../../../binutils-2.27/gold/testsuite/pr20216_gd.S:48: error: missing expected TLS relocation 
gcctestdir/ld: error: missing expected TLS relocation 
../../../binutils-2.27/gold/testsuite/pr20216_ld.S:21: error: missing expected TLS relocation 
../../../binutils-2.27/gold/testsuite/pr20216_ld.S:22: error: missing expected TLS relocation 
../../../binutils-2.27/gold/testsuite/pr20216_ld.S:33: error: missing expected TLS relocation 
../../../binutils-2.27/gold/testsuite/pr20216_ld.S:34: error: missing expected TLS relocation 
../../../binutils-2.27/gold/testsuite/pr20216_ld.S:35: error: missing expected TLS relocation 
gcctestdir/ld: error: missing expected TLS relocation 
collect2: error: ld returned 1 exit status 

这是通过在测试套件,一个错误,这错误被意外使用系统组装,而不是原因引起的编译树中最新的汇编程序。该测试是为了预期只能由更新版本的天然气产生的搬迁。它在8月10日被固定,并被支持到2.27分支。有关更多信息,请参阅关于PR 20216的讨论。

+0

有没有办法告诉它使用新建的汇编程序呢? – SU3

+0

您可以简单地更新binutils的2.27分支的副本,或手动应用来自引用PR的评论#5的补丁。 –