Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 936642

Summary: sys-kernel/gentoo-sources-6.10.1 fails to link with sys-devel/llvm-18.1.8-r1
Product: Gentoo Linux Reporter: Frederik Pfautsch <bugs>
Component: Current packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED DUPLICATE    
Severity: normal CC: bugs
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: .config
emerge --info
(partial) kernel build log with stacktrace

Description Frederik Pfautsch 2024-07-25 21:01:00 UTC
During linking of vmlinux.o, lld.ld crashes with a stacktrace (log attached with last few log lines).

Reproducible: Always

Steps to Reproduce:
1. Build gentoo-sources with a purely clang/llvm-based toolchain



Problem similar to https://github.com/llvm/llvm-project/issues/72026. PR https://github.com/llvm/llvm-project/pull/85081 fixes this issue and the kernel builds/links successfully.
Comment 1 Frederik Pfautsch 2024-07-25 21:01:22 UTC
Created attachment 898316 [details]
.config
Comment 2 Frederik Pfautsch 2024-07-25 21:01:37 UTC
Created attachment 898317 [details]
emerge --info
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-07-25 21:01:57 UTC
Yeah, the patches are proving difficult to backport cleanly without introducing test failures. mgorny spent the last few days trying.

*** This bug has been marked as a duplicate of bug 931130 ***
Comment 4 Frederik Pfautsch 2024-07-25 21:02:08 UTC
Created attachment 898318 [details]
(partial) kernel build log with stacktrace
Comment 5 Frederik Pfautsch 2024-07-25 21:04:45 UTC
uff, that was fast. Alright, sorry for the duplicate, I looked for something like this but must have missed it. Thanks for working on it! (I noticed the test case issue and just disregarded them to test if the patch works in general)