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)
Created attachment 892841 [details, diff] patch that allows version suffixes
Sorry, we missed this. Could you send it upstream as a PR?
Just sent a slightly modified patch upstream. This is the accompanying issue: https://github.com/python/cpython/issues/120602
Thank you!
Ah, thanks. I'll try to remember to include this patch in the next patch series bump (we're working on one).
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a9f10a98dd7325b83a8c76184dcefe0183b22238 commit a9f10a98dd7325b83a8c76184dcefe0183b22238 Author: Michał Górny <mgorny@gentoo.org> AuthorDate: 2024-06-18 09:32:31 +0000 Commit: Michał Górny <mgorny@gentoo.org> CommitDate: 2024-06-18 11:07:40 +0000 dev-lang/python: Backport more patches as 3.13.0_beta2_p8 This introduces a cleaner GENTOO_CPYTHON_BUILD approach to removing system site-packages. Effectively, we no longer need to workaround sandbox violations, nor presence of docutils. Also including a build fix for suffixed LLVM versions. Closes: https://bugs.gentoo.org/931838 Signed-off-by: Michał Górny <mgorny@gentoo.org> dev-lang/python/Manifest | 1 + dev-lang/python/python-3.13.0_beta2_p8.ebuild | 659 ++++++++++++++++++++++++++ 2 files changed, 660 insertions(+)