Skip to content

Building Python-3.14.0a2 with --enable-bolt fails with library not found error: /usr/lib/libbolt_rt_instr.a #127047

@leon-matthews

Description

@leon-matthews

Bug report

Bug description:

I downloaded the source package from Python.org today and encountered an error when enabling BOLT optimisation:

$ sudo apt install llvm-bolt llvm-bolt-dev libbolt-dev
$ ./configure --enable-optimizations --enable-experimental-jit=yes --enable-bolt
...
BOLT-ERROR: library not found: /usr/lib/libbolt_rt_instr.a

The library file in question was installed by libbolt-dev, but into /usr/lib/llvm-19/lib/libbolt_rt_instr.a. Creating a symlink allowed the build to work, beautifully.

$ sudo ln -s /usr/lib/llvm-19/lib/libbolt_rt_instr.a /usr/lib/libbolt_rt_instr.a
$ ./configure --enable-optimizations --enable-experimental-jit=yes --enable-bolt
Success!...

I'm just running Ubuntu 24.10 on an AMD Ryzen 9 7950X3D and have installed LLVM et. al from its default repos.

CPython versions tested on:

3.14

Operating systems tested on:

Linux

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