Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.7k
GH-93207: Remove configure check for stdarg.h (HAVE_STDARG_PROTOTYPES)#93215
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
erlend-aasland commentedMay 25, 2022 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
AC changes look good, but I would try to investigate further which compilers/build environments this will affect (if any); buildbots do not cover everything. |
kumaraditya303 commentedMay 25, 2022
It is unlikely as there is already code which uses variadic args and does not checks for |
bedevere-bot commentedMay 25, 2022
🤖 New build scheduled with the buildbot fleet by@kumaraditya303 for commitc9a6cc4 🤖 If you want to schedule another build, you need to add the ":hammer: test-with-buildbots" label again. |
kumaraditya303 commentedMay 25, 2022
So far all buildbots passed, I added a news item. |
kumaraditya303 commentedMay 25, 2022 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
@erlend-aasland: /workspaces/cpython/Modules/_asynciomodule.c:2646:19: error: macro "va_start" requires 2 arguments, but only 1 given 2646 | va_start(vargs); | ^ Footnotes |
Misc/NEWS.d/next/Build/2022-05-25-13-56-00.gh-issue-93207.B9Rubf.rst OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
vstinner commentedMay 27, 2022 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Many files already call va_start() with 2 arguments: Objects/call.c, PC/launcher.c and PC/launcher2.c, Parser/pegen_errors.c, etc. (Without testing if the HAVE_STDARG_PROTOTYPES macro is defined.) |
vstinner commentedMay 27, 2022
Please remove also this line from PC/pyconfig.h: |
kumaraditya303 commentedMay 27, 2022
Done |
vstinner commentedMay 27, 2022
Merged, thanks. |
tacaswell commentedJun 2, 2022
This broke cython which appears to have been relying on HAVE_STDARG_PROTOTYPES to be defined by CPython. I am going to open a PR an the cython side to always go with the 2 argument version. |
* MNT: always require va_start to have two argumentspython/cpython#93215 chance CPython to always use the2-input version of va_start and dropped defining HAVE_STDARG_PROTOTYPES. Thisresulted in the 1-argument version being used when compiling cython sourcewhich failsThis makes cython also always use the 2-argument version.* Remove blank line* FIX: version gate 2-argument va_start checking to py311
* MNT: always require va_start to have two argumentspython/cpython#93215 chance CPython to always use the2-input version of va_start and dropped defining HAVE_STDARG_PROTOTYPES. Thisresulted in the 1-argument version being used when compiling cython sourcewhich failsThis makes cython also always use the 2-argument version.* Remove blank line* FIX: version gate 2-argument va_start checking to py311
Uh oh!
There was an error while loading.Please reload this page.
Closes#93207