[lfs-dev] [PATCH] binutils-2.32 gold testsuite linker error (LFS-BOOK-20190624-systemd)

mail at benbrian.net mail at benbrian.net
Sat Jul 6 06:42:41 PDT 2019


While testing binutils-2.32 in Ch 6.16 of LFS-BOOK-20190624-systemd, I
receive this error in the gold testsuite:

gcctestdir/collect-ld: internal error in set_section_addresses, at
../../gold/output.cc:4441
collect2: error: ld returned 1 exit status
make[5]: *** [Makefile:9430: incremental_copy_test] Error 1

This was reported upstream as a binutils + gcc-9.x bug:
https://sourceware.org/bugzilla/show_bug.cgi?id=24123

The error prevents the full testsuite from running. The following
workaround (after extracting binutils) disables the test and prevents
the error on my system:

sed -i.orig -e '/@\tincremental_copy_test$(EXEEXT) \\/d' \
             -e '/@\tincremental_copy_test \\/d' \
             gold/testsuite/Makefile.in

I've also attached a more comprehensive patch to remove all traces of
incremental_copy_test from Makefile.in, if that's preferable.


Ben
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Remove-incremental_copy_test-from-gold-testsuite.patch
Type: text/x-diff
Size: 7101 bytes
Desc: not available
URL: <http://lists.linuxfromscratch.org/pipermail/lfs-dev/attachments/20190706/b659a0d3/attachment.patch>


More information about the lfs-dev mailing list