Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 931838 - dev-lang/python-3.13.0_beta1_p1: USE=jit broken with libcxx
Summary: dev-lang/python-3.13.0_beta1_p1: USE=jit broken with libcxx
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-05-12 22:26 UTC by Jonas Rakebrandt
Modified: 2024-05-13 17:25 UTC (History)
1 user (show)

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


Attachments
patch that allows version suffixes (libcxx.patch,401 bytes, patch)
2024-05-12 22:30 UTC, Jonas Rakebrandt
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jonas Rakebrandt 2024-05-12 22:26:56 UTC
The build fails with

> Traceback (most recent call last):
>   File "/var/tmp/portage/dev-lang/python-3.13.0_beta1_p1/work/Python-3.13.0b1/Tools/jit/_targets.py", line 164, in _compile
>     await _llvm.run("clang", args_ll, echo=self.verbose)
>   File "/var/tmp/portage/dev-lang/python-3.13.0_beta1_p1/work/Python-3.13.0b1/Tools/jit/_llvm.py", line 99, in run
>     raise RuntimeError(f"Can't find {tool}-{_LLVM_VERSION}!")
> RuntimeError: Can't find clang-18!

because the _LLVM_VERSION_PATTERN regex at https://github.com/python/cpython/blob/v3.13.0b1/Tools/jit/_llvm.py#L12 doesn't allow the +suffix.

Reproducible: Always

Steps to Reproduce:
1. Try building >=python-3.13 with USE=jit on a LLVM+libcxx system
Actual Results:  
Build fails due to mismatched version string

Expected Results:  
Build should succeed (and does when patching the _LLVM_VERSION_PATTERN)
Comment 1 Jonas Rakebrandt 2024-05-12 22:30:47 UTC
Created attachment 892841 [details, diff]
patch that allows version suffixes