error: missing expected TLS relocation in binutils-2.27/gold/testsuite

error: missing expected TLS relocation in binutils-2.27/gold/testsuite

我正在用 gcc 5.3.0 编译 binutils-2.27。 以下是配置选项:

../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 的讨论。