Skip to content

getpath_noop link failure with MODULE_BUILDTYPE=static and _testinternalcapi #157142

Closed

Description

@gpshead

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

Activity

  1. self-assigned this
    on Sep 8, 2026
  2. added
    type-bugAn unexpected behavior, bug, or error
    on Sep 8, 2026
  3. added 4 commits that reference this issue on Sep 8, 2026
  4. added
    buildThe build process and cross-build
    on Sep 10, 2026
  5. added a commit that references this issue on Sep 12, 2026
  6. added a commit that references this issue on Sep 14, 2026
  7. added a commit that references this issue on Oct 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

buildThe build process and cross-buildtype-bugAn unexpected behavior, bug, or error

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions