Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 934151 - sys-devel/binutils-2.42-r1: test failures on ppc64
Summary: sys-devel/binutils-2.42-r1: test failures on ppc64
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: PPC64 Linux
: Normal normal with 1 vote (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords: TESTFAILURE
Depends on:
Blocks:
 
Reported: 2024-06-12 15:22 UTC by matoro
Modified: 2024-07-15 06:05 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log and emerge --info (build.log.gz,70.24 KB, application/gzip)
2024-06-12 15:22 UTC, matoro
Details
build.log and emerge --info (build.log.gz,229.67 KB, application/gzip)
2024-06-13 03:40 UTC, matoro
Details

Note You need to log in before you can comment on or make changes to this bug.
Description matoro archtester 2024-06-12 15:22:39 UTC
Created attachment 895698 [details]
build.log and emerge --info

Identical on both endians.

$ grep -E "^FAIL: " /tmp/build.log
FAIL: script_test_12
FAIL: ehdr_start_test_3
FAIL: DWARF parse during linker error
FAIL: Build warn libbar.so
FAIL: Run warn with versioned libfoo.so
FAIL: --remap-inputs (simple)
FAIL: --remap-inputs (wildcard)
FAIL: --remap-inputs-file
FAIL: --remap-inputs-file (with map output)
FAIL: script_test_12
FAIL: ehdr_start_test_3

                === ld Summary ===

# of expected passes            1816
# of unexpected failures        7
# of expected failures          8
# of untested testcases         1
# of unsupported tests          142
./ld-new 2.42.0

make[6]: Entering directory '/var/tmp/portage/sys-devel/binutils-2.42-r1/work/build/gold/testsuite'
/var/tmp/portage/sys-devel/binutils-2.42-r1/work/binutils-2.42/gold/../test-driver: line 107:  4682 Segmentation fault      "$@" > $log_file 2>&1
FAIL: script_test_12

make[6]: Entering directory '/var/tmp/portage/sys-devel/binutils-2.42-r1/work/build/gold/testsuite'
/var/tmp/portage/sys-devel/binutils-2.42-r1/work/binutils-2.42/gold/../test-driver: line 107:  5892 Segmentation fault      "$@" > $log_file 2>
&1
FAIL: ehdr_start_test_3
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-06-12 15:26:20 UTC
The gold failures are unimportant as gold is dead upstream and no bugs are being answered.

For the other stuff, can you get ld.log please?
Comment 2 matoro archtester 2024-06-12 15:27:37 UTC
(In reply to Sam James from comment #1)
> The gold failures are unimportant as gold is dead upstream and no bugs are
> being answered.
> 
> For the other stuff, can you get ld.log please?

Should we mask it then?  Or at least use.stable.mask?
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-06-12 15:28:30 UTC
(In reply to matoro from comment #2)
> (In reply to Sam James from comment #1)
> > The gold failures are unimportant as gold is dead upstream and no bugs are
> > being answered.
> > 
> > For the other stuff, can you get ld.log please?
> 
> Should we mask it then?  Or at least use.stable.mask?

I think we can -- the only place we can't yet (IIRC) is arm64 because of stupid behaviour in dev-lang/go (upstream try to use gold in some cases).
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-06-12 15:28:37 UTC
(can+should)
Comment 5 matoro archtester 2024-06-13 03:40:20 UTC
Created attachment 895721 [details]
build.log and emerge --info

Better log with ld.log
Comment 6 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-06-13 03:48:44 UTC
Some of them look kind of like a race with the missing objects. Weird...
Comment 7 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-06-28 18:01:37 UTC
(In reply to Sam James from comment #6)
> Some of them look kind of like a race with the missing objects. Weird...

.. which also appears in bug 934149 at the end. Does it happen with -j1?
Comment 8 matoro archtester 2024-06-28 19:10:31 UTC
(In reply to Sam James from comment #7)
> (In reply to Sam James from comment #6)
> > Some of them look kind of like a race with the missing objects. Weird...
> 
> .. which also appears in bug 934149 at the end. Does it happen with -j1?

With -g, and -j1, the remaining fails are:

FAIL: --remap-inputs (simple)
FAIL: --remap-inputs (wildcard)
FAIL: --remap-inputs-file
FAIL: --remap-inputs-file (with map output)
Comment 9 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-06-29 16:23:43 UTC
-g fix: https://bugs.gentoo.org/934149#c11.

--remap-inputs ended up being caused by our patch 'Gentoo: gold/ld: add support for poisoned system directories' which we're going to drop as it's not worth it.

(Looks like it was the option_values hunk in ldlex.h but not worth spending more time on this, there's already better ways of achieving what that patch did by making ld error out on unrecognised object formats in library search paths like lld does.)
Comment 10 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-06-29 16:30:48 UTC
commit 2c932a9d704ff21cafe606bc09d254e3d48c551b
Author: Andreas K. Hüttel <dilfridge@gentoo.org>
Date:   Sat Jun 29 18:15:43 2024 +0200

    sys-devel/binutils: bump 2.42-r2 to patchset 5, reverts some gentoo-specific stuff

    Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>

It doesn't have the -g fix though.
Comment 11 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-07-15 02:54:45 UTC
commit 42ba5b56c4e1f8713f8470f55a2ec12c2726ea3a
Author: Andreas K. Hüttel <dilfridge@gentoo.org>
Date:   Sat Jun 29 18:50:40 2024 +0200

    sys-devel/binutils: bump to patchlevel 6, one more test fix

    Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>

and for gold, nobody cares, even upstream.
Comment 12 Larry the Git Cow gentoo-dev 2024-07-15 06:05:15 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=04d86e2eab73e1bc80940c4cb7630a681172fd1d

commit 04d86e2eab73e1bc80940c4cb7630a681172fd1d
Author:     Matoro Mahri <matoro_gentoo@matoro.tk>
AuthorDate: 2024-07-15 03:28:31 +0000
Commit:     Ionen Wolkens <ionen@gentoo.org>
CommitDate: 2024-07-15 05:47:25 +0000

    profiles/arch: mask sys-devel/binutils{,-hppa64}[{default-,}gold]
    
    Bug: https://bugs.gentoo.org/934149
    Bug: https://bugs.gentoo.org/934151
    Bug: https://bugs.gentoo.org/936022
    Bug: https://bugs.gentoo.org/936021
    Signed-off-by: Matoro Mahri <matoro_gentoo@matoro.tk>
    Signed-off-by: Ionen Wolkens <ionen@gentoo.org>

 profiles/arch/arm/package.use.mask   | 6 ++++++
 profiles/arch/arm64/package.use.mask | 6 ++++++
 profiles/arch/base/package.use.mask  | 7 +++++++
 3 files changed, 19 insertions(+)