Skip to content
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

[python3] Fix compilation of built-in modules on older versions of GCC #27201

Merged
merged 1 commit into from
Oct 14, 2022

Conversation

chrismile
Copy link
Contributor

This PR fixes #26573. I can confirm that the build failures reported in this issue no longer happen with the changes from this PR.

The problem underlying this issue was that on Linux, vcpkg seems to report the used compiler to Python as cc -pthread, however, the compiler cc is not recognized by distuilts as an alias of g++.

I also opened a PR in the upstream project (python/cpython#98220). I hope this fix will be included in future releases of Python, but until this is the case, vcpkg can use this PR to patch the source code of current Python releases to avoid build errors with older versions of GCC.

@Cheney-W Cheney-W added depends:upstream-changes Waiting on a change to the upstream project info:reviewed Pull Request changes follow basic guidelines labels Oct 13, 2022
@vicroms vicroms merged commit cd4fcc1 into microsoft:master Oct 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
depends:upstream-changes Waiting on a change to the upstream project info:reviewed Pull Request changes follow basic guidelines
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[python3] build failure on GCC <= 9.4
3 participants