﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc
4498	binutils-2.32 gold testsuite linker error	ken@…	lfs-book	"Ben Brian mentioned this last week (archive [http://lists.linuxfromscratch.org/pipermail/lfs-dev/2019-July/073178.html]

""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""

He also attached a much fuller patch as an alternative, to remove all traces of incremental_copy_test.

I've now confirmed that on my (somewhat older) gcc-9.1 builds the problem is indeed present. Usually I just look for 'FAIL' in the output, so it is easy to miss this.

I have not confirmed the fix at this point (still exploring older systems using gcc-8.3.0), but best to flag this up so it doesn't get overlooked."	task	closed	normal	9.0	Book	SVN	normal	fixed		
