Skip to content

--enable-pystats compile broken on main #111652

Closed
@mdboom

Description

@mdboom
Contributor

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

Linked PRs

Activity

added
type-bugAn unexpected behavior, bug, or error
on Nov 2, 2023
changed the title [-]--enable-pystats broken on main[/-] [+]--enable-pystats compile broken on main[/+] on Nov 2, 2023
self-assigned this
on Nov 2, 2023
added a commit that references this issue on Nov 2, 2023

pythongh-111652: Fix --enable-pystats build

added 2 commits that reference this issue on Nov 2, 2023

pythongh-111652: Fix --enable-pystats build

pythongh-111652: Fix --enable-pystats build

added a commit that references this issue on Nov 3, 2023

gh-111652: Fix --enable-pystats build (GH-111653)

2bc01cc
added a commit that references this issue on Feb 11, 2024

pythongh-111652: Fix --enable-pystats build (pythonGH-111653)

added a commit that references this issue on Sep 2, 2024

pythongh-111652: Fix --enable-pystats build (pythonGH-111653)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

buildThe build process and cross-buildtype-bugAn unexpected behavior, bug, or error

Projects

No projects

Milestone

No milestone

Relationships

None yet

    Development

    No branches or pull requests

      Participants

      @mdboom@markshannon@AlexWaygood

      Issue actions

        --enable-pystats compile broken on main · Issue #111652 · python/cpython