Created attachment 815089 [details] build.log I was unable to compile python 3.11 after enabling USE=pgo. After oneshotting `compiler-rt-sanitizers` it built successfully. ``` ld.lld: error: cannot open /usr/lib/llvm/14/bin/../../../../lib/clang/14.0.6/lib/linux/libclang_rt.profile-x86_64.a: No such file or directory ``` Full build log provided in file.
Created attachment 815092 [details] emerge --info '=python-3.11' Per request, I'm uploading my current emerge --info, although I can't guarantee it's exactly the same as the time of the build.log, since I lost the original.
I guess we should maybe just add it to @system in the LLVM profiles.
To solve this properly it also needs a check to make sure the profile useflag is also set in sys-libs/compiler-rt-sanitizers IMO.
The other day, I set up an LLVM/musl Gentoo installation just to see what sort of state it was in, how usable it was. I mostly copied my Portage configuration from my other system, which has USE=pgo enabled globally. When doing the initial world rebuild during installation, app-arch/xz-utils[pgo], app-shells/bash[pgo], and dev-lang/python[pgo] all failed to build in the exact same way, because sys-libs/compiler-rt-sanitizers[profile] wasn't installed. Installing it and emerging them again was successful. So this dependency issue still exists. This definitely isn't Python-related. The assignee should be changed the the LLVM Team and the bug title should be changed to say that USE=pgo in general fails without the library.
The title could also be updated to mention thst this is specific to the LLVM system profile.