Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bpo-43112: detect musl as a separate SOABI #24502
bpo-43112: detect musl as a separate SOABI #24502
Changes from 6 commits
82bf05d
a2f26c7
e45d9f5
85e0602
9db690f
eb307dc
12bc963
6920cd4
58b19da
011cbe9
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If I'm not mistaken,
PLATFORM_TRIPLET
should refer to the target platform on which cpython will run. If that is the case, the musl libc vs. glibc decision should be based on$host_os
rather than$build_os
as the former is based on autoconf'sAC_CANONICAL_HOST
macro1 which refers to the target platform that might differ from build platform in case of cross-compilation.For example, the decision based on
$build_os
leads tocpython 3.9.13 build failing2 when cross-compiling on AMD64 Linux with glibc for mpc8548 Linux (OpenWrt) with musl. (build runs correctly if
$host_os
is used)Footnotes
https://www.gnu.org/software/autoconf/manual/autoconf-2.68/html_node/Canonicalizing.html ↩
"internal configure error for the platform triplet, please file a bug report" ↩
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, the code is wrong. In fact the entire block should be revisited. We really should check for
__GLIBC__
and use a heuristic to detect musl. Could you please open a new issue for the problem?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No problem, but there's #87278 already. Is yet another issue needed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Created #95855