Closed
Description
Bug report
Bug description:
Compiling with --enable-pystats
is currently broken.
gcc -c -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O3 -Wall -std=c11 -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -Wstrict-prototypes -Werror=implicit-function-declaration -fvisibility=hidden -I./Include/internal -I./Include/internal/mimalloc -I. -I./Include -DPy_BUILD_CORE -o Python/ceval.o Python/ceval.c
In file included from ./Include/internal/pycore_interp.h:16,
from ./Include/internal/pycore_runtime.h:17,
from ./Include/internal/pycore_pystate.h:11,
from ./Include/internal/pycore_call.h:12,
from Python/ceval.c:7:
Python/ceval.c: In function ‘_PyEval_EvalFrameDefault’:
./Include/internal/pycore_code.h:291:26: error: implicit declaration of function ‘_Py_bit_length’; did you mean ‘Py_mp_length’? [-Werror=implicit-function-declaration]
291 | int bucket = _Py_bit_length(length >= 1 ? length - 1 : 0); \
| ^~~~~~~~~~~~~~
Python/ceval.c:1049:5: note: in expansion of macro ‘OPT_HIST’
1049 | OPT_HIST(trace_uop_execution_counter, trace_run_length_hist);
| ^~~~~~~~
CPython versions tested on:
CPython main branch
Operating systems tested on:
Linux