GeezerVison is showing github.com — gh-141563: Enable test_cppext internal C API tests on macOS by vstinner · Pull Request #144711 · python/cpython
Conversation
vstinner
commented
Feb 11, 2026
•
edited by bedevere-app
Bot
Loading
Uh oh!
There was an error while loading. Please reload this page.
Build the C API in C++11 mode on macOS.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Build the C API in C++11 mode on macOS.
|
!buildbot x86-64 MacOS Intel NoGIL
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
It doesn't work, there are many C++ compiler warnings. But I didn't expect -pedantic-errors in C++ compiler flags.
clang++ -fno-strict-overflow -Wsign-compare -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -g -Og -Wall -I/Users/buildbot/buildarea/pull_request.itamaro-macos-intel-aws.nogil/build/build/test_python_11425æ/tempcwd/env/include -I/Users/buildbot/buildarea/pull_request.itamaro-macos-intel-aws.nogil/build/Include -I/Users/buildbot/buildarea/pull_request.itamaro-macos-intel-aws.nogil/build -c extension.cpp -o build/temp.macosx-13.7-x86_64-cpython-315t-pydebug/extension.o -Werror -DMODULE_NAME=_testcppext_internal -std=c++11 -pedantic-errors -Wno-long-long -DTEST_INTERNAL_C_API=1
In file included from extension.cpp:21:
In file included from /Users/buildbot/buildarea/pull_request.itamaro-macos-intel-aws.nogil/build/Include/internal/pycore_backoff.h:15:
In file included from /Users/buildbot/buildarea/pull_request.itamaro-macos-intel-aws.nogil/build/Include/internal/pycore_interp_structs.h:15:
In file included from /Users/buildbot/buildarea/pull_request.itamaro-macos-intel-aws.nogil/build/Include/internal/pycore_tstate.h:15:
/Users/buildbot/buildarea/pull_request.itamaro-macos-intel-aws.nogil/build/Include/internal/pycore_qsbr.h:75:20: error: zero size arrays are an extension [-Werror,-Wzero-length-array]
char __padding[64 - sizeof(struct _qsbr_thread_state)];
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from extension.cpp:21:
In file included from /Users/buildbot/buildarea/pull_request.itamaro-macos-intel-aws.nogil/build/Include/internal/pycore_backoff.h:15:
In file included from /Users/buildbot/buildarea/pull_request.itamaro-macos-intel-aws.nogil/build/Include/internal/pycore_interp_structs.h:15:
In file included from /Users/buildbot/buildarea/pull_request.itamaro-macos-intel-aws.nogil/build/Include/internal/pycore_tstate.h:16:
/Users/buildbot/buildarea/pull_request.itamaro-macos-intel-aws.nogil/build/Include/internal/pycore_uop.h:26:9: error: anonymous structs are a GNU extension [-Werror,-Wgnu-anonymous-struct]
struct {
^
/Users/buildbot/buildarea/pull_request.itamaro-macos-intel-aws.nogil/build/Include/internal/pycore_uop.h:26:9: error: anonymous types declared in an anonymous union are an extension [-Werror,-Wnested-anon-types]
In file included from extension.cpp:21:
/Users/buildbot/buildarea/pull_request.itamaro-macos-intel-aws.nogil/build/Include/internal/pycore_backoff.h:65:13: error: compound literals are a C99-specific feature [-Werror,-Wc99-extensions]
return ((_Py_BackoffCounter){
^
/Users/buildbot/buildarea/pull_request.itamaro-macos-intel-aws.nogil/build/Include/internal/pycore_backoff.h:83:13: error: compound literals are a C99-specific feature [-Werror,-Wc99-extensions]
return ((_Py_BackoffCounter){
^
In file included from extension.cpp:22:
In file included from /Users/buildbot/buildarea/pull_request.itamaro-macos-intel-aws.nogil/build/Include/internal/pycore_cell.h:5:
In file included from /Users/buildbot/buildarea/pull_request.itamaro-macos-intel-aws.nogil/build/Include/internal/pycore_object.h:15:
In file included from /Users/buildbot/buildarea/pull_request.itamaro-macos-intel-aws.nogil/build/Include/internal/pycore_runtime.h:11:
In file included from /Users/buildbot/buildarea/pull_request.itamaro-macos-intel-aws.nogil/build/Include/internal/pycore_runtime_structs.h:62:
/Users/buildbot/buildarea/pull_request.itamaro-macos-intel-aws.nogil/build/Include/internal/pycore_tracemalloc.h:63:30: error: flexible array members are a C99 feature [-Werror,-Wc99-extensions]
struct tracemalloc_frame frames[];
^
In file included from extension.cpp:22:
In file included from /Users/buildbot/buildarea/pull_request.itamaro-macos-intel-aws.nogil/build/Include/internal/pycore_cell.h:6:
/Users/buildbot/buildarea/pull_request.itamaro-macos-intel-aws.nogil/build/Include/internal/pycore_stackref.h:388:12: error: compound literals are a C99-specific feature [-Werror,-Wc99-extensions]
return (_PyStackRef){ .bits = ((uintptr_t)ptr) | Py_TAG_INVALID };
^
/Users/buildbot/buildarea/pull_request.itamaro-macos-intel-aws.nogil/build/Include/internal/pycore_stackref.h:435:12: error: compound literals are a C99-specific feature [-Werror,-Wc99-extensions]
return (_PyStackRef){ .bits = ((((uintptr_t)i) << Py_TAGGED_SHIFT) | Py_INT_TAG) };
^
/Users/buildbot/buildarea/pull_request.itamaro-macos-intel-aws.nogil/build/Include/internal/pycore_stackref.h:452:12: error: compound literals are a C99-specific feature [-Werror,-Wc99-extensions]
return (_PyStackRef){ .bits = ref.bits + (1 << Py_TAGGED_SHIFT) };
^
/Users/buildbot/buildarea/pull_request.itamaro-macos-intel-aws.nogil/build/Include/internal/pycore_stackref.h:534:12: error: compound literals are a C99-specific feature [-Werror,-Wc99-extensions]
return (_PyStackRef){ .bits = ref.bits | Py_TAG_REFCNT };
^
/Users/buildbot/buildarea/pull_request.itamaro-macos-intel-aws.nogil/build/Include/internal/pycore_stackref.h:556:12: error: compound literals are a C99-specific feature [-Werror,-Wc99-extensions]
return (_PyStackRef){ .bits = (uintptr_t)obj };
^
/Users/buildbot/buildarea/pull_request.itamaro-macos-intel-aws.nogil/build/Include/internal/pycore_stackref.h:574:23: error: compound literals are a C99-specific feature [-Werror,-Wc99-extensions]
_PyStackRef ref = (_PyStackRef){ .bits = (uintptr_t)obj };
^
/Users/buildbot/buildarea/pull_request.itamaro-macos-intel-aws.nogil/build/Include/internal/pycore_stackref.h:585:16: error: compound literals are a C99-specific feature [-Werror,-Wc99-extensions]
return (_PyStackRef){ .bits = (uintptr_t)obj | Py_TAG_REFCNT };
^
/Users/buildbot/buildarea/pull_request.itamaro-macos-intel-aws.nogil/build/Include/internal/pycore_stackref.h:593:23: error: compound literals are a C99-specific feature [-Werror,-Wc99-extensions]
_PyStackRef ref = (_PyStackRef){ .bits = (uintptr_t)obj };
^
/Users/buildbot/buildarea/pull_request.itamaro-macos-intel-aws.nogil/build/Include/internal/pycore_stackref.h:604:23: error: compound literals are a C99-specific feature [-Werror,-Wc99-extensions]
_PyStackRef ref = (_PyStackRef){ .bits = (uintptr_t)obj };
^
/Users/buildbot/buildarea/pull_request.itamaro-macos-intel-aws.nogil/build/Include/internal/pycore_stackref.h:615:12: error: compound literals are a C99-specific feature [-Werror,-Wc99-extensions]
return (_PyStackRef){ .bits = (uintptr_t)obj | Py_TAG_REFCNT};
^
/Users/buildbot/buildarea/pull_request.itamaro-macos-intel-aws.nogil/build/Include/internal/pycore_stackref.h:801:16: error: compound literals are a C99-specific feature [-Werror,-Wc99-extensions]
*out = (_PyStackRef){ .bits = (uintptr_t)op | Py_TAG_REFCNT };
^
17 errors generated.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
!buildbot x86-64 MacOS Intel NoGIL
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
Aha, it works with -std=c++11 and without -pedantic-errors: tests passed successfully on buildbot/x86-64 MacOS Intel NoGIL PR.
|
ned-deily reacted with thumbs up emoji
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Aha, it works with -std=c++11 and without -pedantic-errors: tests passed successfully on buildbot/x86-64 MacOS Intel NoGIL PR.
And it passed on the test system that was failing yesterday. Thank you!
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
ljfp
pushed a commit
to ljfp/cpython
that referenced
this pull request
Apr 25, 2026
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
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.
|