Skip to content

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

Closed
cocolato wants to merge 1 commit into
python:mainfrom
cocolato:fix_broken_test
Closed

gh-142913: fix _testinternalcapi build failure due to undefined JIT symbols#143949
cocolato wants to merge 1 commit into
python:mainfrom
cocolato:fix_broken_test

Conversation

@cocolato

@cocolatococolato 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.

@cocolatococolato changed the title gh-142913: _testinternalcapi build failure due to undefined JIT symbolsgh-142913: fix _testinternalcapi build failure due to undefined JIT symbolsJan 17, 2026
@cocolato
cocolato deleted the fix_broken_test branch January 20, 2026 14:12
Sign up for freeto 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

@cocolato@kumaraditya303