Bug 2344830 - BOLT tries to find libbolt_rt_instr.a in /usr/lib instead of /usr/lib/64
Summary: BOLT tries to find libbolt_rt_instr.a in /usr/lib instead of /usr/lib/64
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: llvm
Version: rawhide
Hardware: Unspecified
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Nikita Popov
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-02-11 05:10 UTC by Charalampos Stratakis
Modified: 2025-02-15 02:13 UTC (History)
14 users (show)

Fixed In Version: llvm-19.1.7-8.fc43 llvm-19.1.7-9.fc42
Clone Of:
Environment:
Last Closed: 2025-02-13 18:37:41 UTC
Type: ---
Embargoed:
npopov: mirror+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker FC-1471 0 None None None 2025-02-11 16:27:25 UTC

Description Charalampos Stratakis 2025-02-11 05:10:22 UTC
When testing python3.14 with --enable-bolt and BuildRequires of llvm-bolt the instrumentation fails with:

BOLT-ERROR: library not found: /usr/lib/libbolt_rt_instr.a

This happens on Rawhide where Bolt is now being built from the llvm dist-git.

On Fedora 41 where Bolt is built through its own dist-git sources the issue is not present.

Reproducible: Always

Comment 1 Nikita Popov 2025-02-11 08:32:18 UTC
I believe this is due to the llvm prefix changes, not the move into the llvm dist-git.

Fails: /usr/bin/llvm-bolt a.out -instrument -o a.new.out
Works: /usr/lib64/llvm19/bin/llvm-bolt a.out -instrument -o a.new.out

Comment 2 Nikita Popov 2025-02-11 08:44:23 UTC
It looks like bolt rolled its own GetExecutablePath which does not resolve symlinks, instead of using getMainExecutable().

Comment 3 Nikita Popov 2025-02-11 08:58:58 UTC
Upstream fix: https://github.com/llvm/llvm-project/pull/126698

Comment 4 Nikita Popov 2025-02-11 10:41:16 UTC
Test: https://src.fedoraproject.org/tests/llvm/pull-request/43

Comment 5 Fedora Update System 2025-02-13 16:43:58 UTC
FEDORA-2025-7417399329 (llvm-19.1.7-8.fc43) has been submitted as an update to Fedora 43.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-7417399329

Comment 6 Fedora Update System 2025-02-13 18:37:41 UTC
FEDORA-2025-7417399329 (llvm-19.1.7-8.fc43) has been pushed to the Fedora 43 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 7 Fedora Update System 2025-02-15 00:24:13 UTC
FEDORA-2025-638e130cc7 (llvm-19.1.7-9.fc42) has been submitted as an update to Fedora 42.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-638e130cc7

Comment 8 Fedora Update System 2025-02-15 02:13:42 UTC
FEDORA-2025-638e130cc7 (llvm-19.1.7-9.fc42) has been pushed to the Fedora 42 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.