Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 873925 - dev-lang/python-3.11[pgo] does not build without installing compiler-rt-sanitizers
Summary: dev-lang/python-3.11[pgo] does not build without installing compiler-rt-sanit...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-10-01 21:44 UTC by Mazunki Hoksaas
Modified: 2024-08-20 21:55 UTC (History)
4 users (show)

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


Attachments
build.log (python-3.11.0_rc2.log,108.22 KB, text/x-log)
2022-10-01 21:44 UTC, Mazunki Hoksaas
Details
emerge --info '=python-3.11' (emerge.info,20.99 KB, text/plain)
2022-10-01 21:50 UTC, Mazunki Hoksaas
Details

Note You need to log in before you can comment on or make changes to this bug.
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.
Comment 4 Avraham Hollander 2024-08-20 21:52:09 UTC
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.
Comment 5 Avraham Hollander 2024-08-20 21:55:49 UTC
The title could also be updated to mention thst this is specific to the LLVM system profile.