Closed
Description
Bug report
Bug description:
When the Py_STACKREF_DEBUG
macro is defined here:
cpython/Include/internal/pycore_structs.h
Lines 57 to 58 in c432d01
CPython fails to compile:
~ make -s
In file included from ./Include/internal/pycore_dict.h:13,
from Objects/call.c:4:
./Include/internal/pycore_stackref.h: In function ‘PyStackRef_XCLOSE’:
./Include/internal/pycore_stackref.h:154:21: error: too few arguments to function ‘_Py_stackref_close’
154 | PyObject *obj = _Py_stackref_close(ref);
| ^~~~~~~~~~~~~~~~~~
./Include/internal/pycore_stackref.h:64:24: note: declared here
64 | PyAPI_FUNC(PyObject *) _Py_stackref_close(_PyStackRef ref, const char *filename, int linenumber);
| ^~~~~~~~~~~~~~~~~~
make: *** [Makefile:3127: Objects/call.o] Error 1
make: *** Waiting for unfinished jobs....
This error can probably be fixed by using PyStackRef_CLOSE
instead of _Py_stackref_close
but this reveals other errors which I'm not sure how to fix.
cc @markshannon since you last worked on this area.
CPython versions tested on:
CPython main branch
Operating systems tested on:
Linux