Skip to content

--enable-pystats compile broken on main #111652

Closed

Description

@mdboom

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

  1. added
    type-bug
    on Nov 2, 2023
  2. changed the title [-]--enable-pystats broken on main[/-] [+]--enable-pystats compile broken on main[/+] on Nov 2, 2023
  3. self-assigned this
    on Nov 2, 2023
  4. added
    build
    on Nov 2, 2023
  5. added 3 commits that reference this issue on Nov 2, 2023
  6. added a commit that references this issue on Nov 3, 2023
  7. added a commit that references this issue on Feb 11, 2024
  8. added a commit that references this issue on Sep 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

buildtype-bug

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions