Skip to content

Conversation

@geofft
Copy link
Collaborator

@geofft geofft commented Oct 25, 2025

CPython 3.10 and below don't even attempt to fix the target triple for musl. CPython 3.11 and 3.12 do, but in our setup it doens't work right because of an autoconf bug. CPython 3.13 rewrites the target triple detection logic and works fine.

Fixes #724.

CPython 3.10 and below don't even attempt to fix the target triple for
musl. CPython 3.11 and 3.12 do, but in our setup it doens't work right
because of an autoconf bug. CPython 3.13 rewrites the target triple
detection logic and works fine.

Meanwhile, the previous patch to this part of configure.ac is no longer
relevant because clang stopped implementing --print-multiarch in LLVM 16
(llvm/llvm-project@e05edb19), so we can drop those patches.

Fixes #724.
@geofft geofft force-pushed the geofft/fix-musl-triple branch from 2db5c1d to e4ebdca Compare October 25, 2025 23:44
Comment on lines 118 to 121
# CPython <=3.10 doesn't properly detect musl. CPython <=3.12 tries, but fails in our environment
# because of an autoconf bug. CPython >=3.13 is fine.
# Backport the musl detection code from CPython 3.13 so it loads
# extension modules with the right suffix.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: This mixed line length wrapping is perturbing

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I meant to remove those last two lines because we're not backporting the code, not sure how I left them in.... will fix when I figure out the build failure

We're still on Clang 14 for musl builds (#829).
@geofft geofft merged commit 4f27e39 into main Oct 28, 2025
316 checks passed
@geofft geofft deleted the geofft/fix-musl-triple branch October 28, 2025 00:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Multiarch reporting error in <= 3.12 musl builds + compiled packages broken in 3.11 and 3.12

3 participants