python / python/cpython

getpath_noop link failure with MODULE_BUILDTYPE=static and _testinternalcapi

Aberta
#157,142 0 comentários 0 reações 1 responsável Ver no GitHub

@gpshead já está trabalhando nisso.

Desde 8/9/2026.

build type-bug
Linguagem predominante
Python
Estrelas
77.2k
Forks
35.9k
Métricas de merge de PRs
Métricas de PR pendentes

Descrição

Bug report

Bug description:

Minor issue when statically linking extension modules:

Programs/_freeze_module is linked with Modules/getpath_noop.o rather than Modules/getpath.o. With MODULE_BUILDTYPE=static, _testinternalcapi.o is part of LIBRARY_OBJS_OMIT_FROZEN and its get_getpath_codeobject() left _Py_Get_Getpath_CodeObject() as an undefined reference.

CPython versions tested on:

CPython main branch

Operating systems tested on:

Linux

Linked PRs
  • gh-157143
  • gh-157148
  • gh-157149
  • gh-157150

Guia de contribuição

Abrir o guia de contribuição

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Avaliação

Esta issue ainda não foi avaliada.

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.