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

Bruce Dubbs bruce.dubbs at gmail.com
Sat Jul 13 20:33:51 PDT 2019

On 7/13/19 6:40 PM, Ken Moffat via lfs-dev wrote:
> On Sat, Jul 06, 2019 at 09:42:41AM -0400, Ben Brian via lfs-dev wrote:
>> 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
> Thanks for the report.  I've confirmed this happened on my gcc-9.1
> builds from May, but it is easy to miss (I normally only search for
> 'FAIL' in the binutils test log).
> I've raised http://wiki.linuxfromscratch.org/lfs/ticket/4498#ticket
> to ensure this doesn't get forgotten.

I'll check this out for the next build, but I'm waiting for the 5.2.1 

Checking the sed, it can be simplified/shortened:

sed -i '/@\tincremental_copy/d' gold/testsuite/Makefile.in

   -- Bruce

More information about the lfs-dev mailing list