Repository navigation
CPython fails to build on MSVC with latest C standard flag #135927
Description
Activity
- addedtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or errorbuildThe build process and cross-buildThe build process and cross-build
on Jun 25, 2025 For the record, I don't like building with
Clatestand if we're considering making that change upstream, we should pick a version. If we rely on those features being there, specifying a version will cause people's builds to fail with a useful error message, rather than whatever vague error they get for invalid syntax.We have to assume that people build CPython from source, and have to assume they aren't doing it on our build machines, so let's be as inclusive as we can of different environments.
For the record, I don't like building with
Clatestand if we're considering making that change upstream, we should pick a version. If we rely on those features being there, specifying a version will cause people's builds to fail with a useful error message, rather than whatever vague error they get for invalid syntax.We have to assume that people build CPython from source, and have to assume they aren't doing it on our build machines, so let's be as inclusive as we can of different environments.
I'm not yet pushing to build with
Clatestupstream. FWIW, I just filed the bug because I tried building withClatestlocally and it failed. If any features don't work on C11, they will be guarded with the usual ifdefs. This follows Python's C standard policy after all.Reacted by Steve Dower and Victor Stinner
Bug report
Bug description:
When passing
/std:clatestto MSVC, the current CPython fails to build.CPython versions tested on:
CPython main branch
Operating systems tested on:
No response
Linked PRs