Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 936642 - sys-kernel/gentoo-sources-6.10.1 fails to link with sys-devel/llvm-18.1.8-r1
Summary: sys-kernel/gentoo-sources-6.10.1 fails to link with sys-devel/llvm-18.1.8-r1
Status: RESOLVED DUPLICATE of bug 931130
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-07-25 21:01 UTC by Frederik Pfautsch
Modified: 2024-07-25 21:04 UTC (History)
1 user (show)

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


Attachments
.config (kernel_config.txt,181.92 KB, text/plain)
2024-07-25 21:01 UTC, Frederik Pfautsch
Details
emerge --info (emerge_info.txt,23.82 KB, text/plain)
2024-07-25 21:01 UTC, Frederik Pfautsch
Details
(partial) kernel build log with stacktrace (llvm_kernel.log,9.08 KB, text/x-log)
2024-07-25 21:02 UTC, Frederik Pfautsch
Details

Note You need to log in before you can comment on or make changes to this bug.
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)