Skip to content

Conversation

@cocolato
Copy link
Contributor

@cocolato cocolato commented Jan 17, 2026

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
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