Bug 2344830

Summary: BOLT tries to find libbolt_rt_instr.a in /usr/lib instead of /usr/lib/64
Product: [Fedora] Fedora Reporter: Charalampos Stratakis <cstratak>
Component: llvmAssignee: Nikita Popov <npopov>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: rawhideCC: dmalcolm, fedora-llvm-team, jakub, jchecahi, jistone, kkleine, npopov, scottt.tw, sergesanspaille, siddharth.kde, suraj.ghimire7, tbaeder, tstellar, tuliom
Target Milestone: ---Flags: npopov: mirror+
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: llvm-19.1.7-8.fc43 llvm-19.1.7-9.fc42 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2025-02-13 18:37:41 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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.