/opt/emsdk/upstream/emscripten/emcc -DNDEBUG -g -O3 (...) -DPy_BUILD_CORE_BUILTIN -c ../../Modules/_testcapi/vectorcall_limited.c -o Modules/_testcapi/vectorcall_limited.o
In file included from ../../Modules/_testcapi/vectorcall_limited.c:2:
In file included from ../../Modules/_testcapi/parts.h:7:
In file included from ../../Include/Python.h:44:
../../Include/pyport.h:52:4: error: "Py_LIMITED_API is not compatible with Py_BUILD_CORE"
# error "Py_LIMITED_API is not compatible with Py_BUILD_CORE"
^
1 error generated.
I'm not sure how -DPy_BUILD_CORE_BUILTIN landed in the command building Modules/_testcapi/vectorcall_limited.c.
I don't think that it's correct that vectorcall_limited.c which tests the limited C API on purpose it built with Py_BUILD_CORE.
In file included from ./Include/Python.h:44,
from ./Modules/_testcapi/parts.h:7,
from ./Modules/_testcapi/vectorcall_limited.c:2:
./Include/pyport.h:52:4: error: #error "Py_LIMITED_API is not compatible with Py_BUILD_CORE"
52 | # error "Py_LIMITED_API is not compatible with Py_BUILD_CORE"
| ^~~~~
make: *** [Makefile:2982: Modules/_testcapi/vectorcall_limited.o] Error 1
make: *** Waiting for unfinished jobs....
In file included from ./Include/Python.h:44,
from ./Modules/_testcapi/parts.h:7,
from ./Modules/_testcapi/heaptype_relative.c:2:
./Include/pyport.h:52:4: error: #error "Py_LIMITED_API is not compatible with Py_BUILD_CORE"
52 | # error "Py_LIMITED_API is not compatible with Py_BUILD_CORE"
| ^~~~~
make: *** [Makefile:3001: Modules/_testcapi/heaptype_relative.o] Error 1
Modules/makesetup uses $(PY_STDMODULE_CFLAGS) if $doconfig is no, but uses $(PY_BUILTIN_MODULE_CFLAGS) otherwise. In the second case, $(PY_BUILTIN_MODULE_CFLAGS) adds -DPy_BUILD_CORE_BUILTIN to compiler command used to build _testcapi C files.
Activity
pythongh-109723: Disable Py_BUILD_CORE in _testcapi limited C API
pythongh-109723: Disable Py_BUILD_CORE in _testcapi
pythongh-109723: Disable Py_BUILD_CORE in _testcapi
pythongh-109723: Disable Py_BUILD_CORE in _testcapi
gh-109723: Disable Py_BUILD_CORE in _testcapi (#109727)
pythongh-109723: Fix build of _testclinic_limited on WASM
gh-109723: Fix build of _testclinic_limited on WASM (#109842)
pythongh-109723: Disable Py_BUILD_CORE in _testcapi (python#109727)
pythongh-109723: Fix build of _testclinic_limited on WASM (python#109842
pythongh-109723: Disable Py_BUILD_CORE in _testcapi (python#109727)
pythongh-109723: Fix build of _testclinic_limited on WASM (python#109842