Skip to content

Cannot build remote_debug.h - error: implicit declaration of function ‘search_linux_map_for_section’ #140792

@Tommy-Kesu

Description

@Tommy-Kesu

Bug report

Bug description:

The error occurs when building Python 3.14 if HAVE_PROCESS_VM_READV is not defined.

cpython/Modules/../Python/remote_debug.h:886:15: error: implicit declaration of functionsearch_linux_map_for_section’ [-Werror=implicit-function-declaration]
     address = search_linux_map_for_section(handle, "PyRuntime", "python")

It turns out that the implementation of the function is guarded by #if defined(__linux__) && HAVE_PROCESS_VM_READV.

But calls are using: #elif defined(__linux__) and they are located in the following locations:

  • Python/remote_debug.h:886:15
  • Modules/_remote_debugging_module.c:814:15

CPython versions tested on:

3.14

Operating systems tested on:

Linux

Metadata

Metadata

Assignees

No one assigned

    Labels

    extension-modulesC modules in the Modules dirinterpreter-core(Objects, Python, Grammar, and Parser dirs)type-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions