Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

gh-142913: fix _testinternalcapi build failure due to undefined JIT symbols#143949

Closed
cocolato wants to merge 1 commit into
python:mainpython/cpython:mainfrom
cocolato:fix_broken_testcocolato/cpython:fix_broken_testCopy head branch name to clipboard
Closed

gh-142913: fix _testinternalcapi build failure due to undefined JIT symbols#143949
cocolato wants to merge 1 commit into
python:mainpython/cpython:mainfrom
cocolato:fix_broken_testcocolato/cpython:fix_broken_testCopy head branch name to clipboard

Conversation

@cocolato

@cocolato cocolato commented Jan 17, 2026

Copy link
Copy Markdown
Member

Root cause:

The fix in 949b5ec removed the Tier 2 interpreter loop from Modules/_testinternalcapi/interpreter.c, but test_cases.c.h is generated from Python/bytecodes.c and still contains the TRACE_RECORD and TRACE_END instructions which call:

  • _PyJit_translate_single_bytecode_to_trace()
  • _PyJit_TryInitializeTracing()
  • _PyJit_FinalizeTracing()

These functions are defined in Python/optimizer.c but are not exported (missing PyAPI_FUNC), causing link failures when building the shared library.

@cocolato cocolato changed the title gh-142913: _testinternalcapi build failure due to undefined JIT symbols gh-142913: fix _testinternalcapi build failure due to undefined JIT symbols Jan 17, 2026
@kumaraditya303 kumaraditya303 requested review from DinoV and mpage January 17, 2026 07:01
@cocolato cocolato closed this Jan 17, 2026
@cocolato cocolato deleted the fix_broken_test branch January 20, 2026 14:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.