Skip to content

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

Merged
vicroms merged 1 commit intomicrosoft:masterfrom
chrismile:python3-builtin-fix
Oct 14, 2022
Merged

[python3] Fix compilation of built-in modules on older versions of GCC#27201
vicroms merged 1 commit intomicrosoft:masterfrom
chrismile:python3-builtin-fix

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:needs-maintainer-attention Lets the current 'on rotation' vcpkg maintainer know they need to look at this. 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:needs-maintainer-attention Lets the current 'on rotation' vcpkg maintainer know they need to look at this.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[python3] build failure on GCC <= 9.4

3 participants