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

Bug 873925

Summary: dev-lang/python-3.11[pgo] does not build without installing compiler-rt-sanitizers
Product: Gentoo Linux Reporter: Mazunki Hoksaas <rolferen>
Component: Current packagesAssignee: Python Gentoo Team <python>
Status: UNCONFIRMED ---    
Severity: normal CC: esigra, llvm, sam
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=907066
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build.log
emerge --info '=python-3.11'

Description Mazunki Hoksaas 2022-10-01 21:44:38 UTC
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.
Comment 1 Mazunki Hoksaas 2022-10-01 21:50:01 UTC
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.
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-10-04 01:06:36 UTC
I guess we should maybe just add it to @system in the LLVM profiles.
Comment 3 immolo 2023-05-08 20:36:53 UTC
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.