Summary: | sys-kernel/gentoo-sources-6.8.9: clang: error: clang frontend command failed with exit code 139 (clang-18.1.4) | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | ernsteiswuerfel <erhard_f> |
Component: | Current packages | Assignee: | LLVM support project <llvm> |
Status: | RESOLVED OBSOLETE | ||
Severity: | normal | CC: | bugs, erhard_f, jorge, pipeartist937 |
Priority: | Normal | Keywords: | REGRESSION |
Version: | unspecified | ||
Hardware: | AMD64 | ||
OS: | Linux | ||
See Also: |
https://github.com/llvm/llvm-project/issues/82431 https://github.com/llvm/llvm-project/pull/82881 https://github.com/llvm/llvm-project/pull/85081 https://github.com/llvm/llvm-project/issues/72026 https://github.com/ClangBuiltLinux/linux/issues/1984 https://github.com/ClangBuiltLinux/linux/issues/1987 |
||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
kernel .config (gentoo-sources-6.8.9)
ip6_input-4bedd9.sh emerge --info |
Description
ernsteiswuerfel
![]() There's an upstream bug for this somewhere already (with a bunch of dupes)... Created attachment 892204 [details]
ip6_input-4bedd9.sh
ip6_input-4bedd9.c is too big for uploading, even compressed. It can be downloaded here: https://murena.io/s/dXKPEDoW9Rwik6C Created attachment 892205 [details]
emerge --info
(In reply to Sam James from comment #1) > There's an upstream bug for this somewhere already (with a bunch of dupes)... Ah, thanks for the hint! I'll have a look. Interesting thing is I only get this in gentoo-sources-6.8.9, not in upstream 6.8.9 via git. Seems this is a clang-18 regression (https://github.com/llvm/llvm-project/issues/72026) which affects kernel builds with -march=bdver2. Which hopefully gets fixed by: https://github.com/llvm/llvm-project/pull/85081 (pull request already opened) which hopefully find it's way in upcoming 18.1.5. Fix is not in 18.1.5 and looks like it affects other (all?) -march=specific_cpu settings. Workaround on my Zen3 machine was to use -march=x86-64-v3 instead of -march=znver3. Upstream fix is: https://github.com/llvm/llvm-project/pull/85081 It's not merged into master yet so it did not find its' way into 18.1.6 either. *** Bug 932304 has been marked as a duplicate of this bug. *** I created a set of patches at github.com/LtdJorge/llvm-patches which apply cleanly on top of either 18.1.5-r1 or 18.1.6 and make it possible to build the kernel with LLVM=1 without taking out znver -march. Both are tested to build the kernel (I'm typing this from 6.9.0 built with 18.1.5-r1). *** Bug 936642 has been marked as a duplicate of this bug. *** I also have this same problem with gentoo-sources-6.10.1. I can confirm it has not been fixed in 18.1.8 either but I can confirm upgrading to sys-devel/llvm-18.1.8-r2 fixes the issue. With sys-devel/llvm-18.1.8-r1, the kernel fails to build with the above error. With the upgrade, the kernel successfully builds. Thanks for letting me know! I'll close here as soon as llvm-18.1.8-r2 hits stable. It's was also working in 19.0.0.9999 already, so I guess all 19.x.y ebuilds are working too. Fixed in clang-18.1.8-r6 and 19.1.x. Closing. |