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

Bug 938951

Summary: app-shells/bash[pgo] fails build due to missing llvm-runtimes/compiler-rt-sanitizers
Product: Gentoo Linux Reporter: fabolous.e05
Component: Current packagesAssignee: Gentoo's Team for Core System packages <base-system>
Status: UNCONFIRMED ---    
Severity: normal CC: fabolous.e05, kfm
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build.log
emerge --info

Description fabolous.e05 2024-09-02 23:26:05 UTC
Bash fails to build when pgo useflag is set, but compiler-rt-sanitizers in not installed, due to missing "/usr/lib/clang/18/lib/linux/libclang_rt.profile-x86_64.a".
Comment 1 Paul Zander 2024-09-02 23:34:10 UTC
Would you be so kind and attach the build.log and emerge --info?
Comment 2 fabolous.e05 2024-09-03 11:34:13 UTC
Created attachment 901952 [details]
build.log
Comment 3 fabolous.e05 2024-09-03 11:34:31 UTC
Created attachment 901953 [details]
emerge --info
Comment 4 fabolous.e05 2024-10-29 23:15:19 UTC
same issue occurs again for ongoing llvm version bump.
I think the bash ebuild should track the used LLVM_SLOT and depend on the relative version of compiler-rt-sanitizers
Comment 5 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-10-30 00:09:45 UTC
(In reply to fabolous.e05 from comment #4)
> same issue occurs again for ongoing llvm version bump.
> I think the bash ebuild should track the used LLVM_SLOT and depend on the
> relative version of compiler-rt-sanitizers

This can't be done without (unnecessarily) adding llvm-r1.eclass to every single ebuild which _might_ use Clang. Ultimately, it depends on what the system is using. We can add compiler-rt-sanitizers to @system on LLVM profiles, I don't think we can do much more than that.
Comment 6 fabolous.e05 2024-10-30 11:39:18 UTC
Well it's only relevant for pgo ebuilds, but i agree it seems overkill.