Skip to content

Building with LTO and Clang 20 on Debian fails to link #161821

Open

Description

@nascheme

Bug report

Debian Trixie does not ship LLVMgold.so and if you configure CPython with "clang-20" and --with-lto, it will fail to link. You can explicitly tell Clang to use lld as the linker, which will work, if you install that package. I think configure should detect this situation and use lld.

CPython versions tested on:

CPython main branch

Operating systems tested on:

Linux

Linked PRs

Activity

  1. added a commit that references this issue on Nov 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    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