Bug#1095453: bolt: not-MA-aware/not-multiversion-aware wrt to libbolt-dev
Roman Lebedev
lebedev.ri at gmail.com
Sat Feb 8 03:35:01 GMT 2025
Package: bolt-19
Version: 1:19.1.7-1+b1
Severity: important
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Unless i'm doing something really wrong,
the bolt instrumentation is non-usable in debian's bolt:
```
$ cat test.c
int main() { return 0; }
$ clang-19 -Wl,-q test.c
$ llvm-bolt-19 a.out -instrument -o a.out.2
BOLT-INFO: shared object or position-independent executable detected
BOLT-INFO: Target architecture: x86_64
BOLT-INFO: BOLT version: <unknown>
BOLT-INFO: first alloc address is 0x0
BOLT-INFO: creating new program header table at address 0x200000, offset 0x200000
BOLT-INFO: enabling relocation mode
BOLT-INFO: forcing -jump-tables=move for instrumentation
BOLT-INFO: enabling lite mode
BOLT-INFO: 0 out of 9 functions in the binary (0.0%) have non-empty execution profile
BOLT-INSTRUMENTER: Number of indirect call site descriptors: 2
BOLT-INSTRUMENTER: Number of indirect call target descriptors: 6
BOLT-INSTRUMENTER: Number of function descriptors: 6
BOLT-INSTRUMENTER: Number of branch counters: 3
BOLT-INSTRUMENTER: Number of ST leaf node counters: 10
BOLT-INSTRUMENTER: Number of direct call counters: 0
BOLT-INSTRUMENTER: Total number of counters: 13
BOLT-INSTRUMENTER: Total size of counters: 104 bytes (static alloc memory)
BOLT-INSTRUMENTER: Total size of string table emitted: 129 bytes in file
BOLT-INSTRUMENTER: Total size of descriptors: 732 bytes in file
BOLT-INSTRUMENTER: Profile will be saved to file /tmp/prof.fdata
BOLT-INFO: UCE removed 3 blocks and 140 bytes of code
BOLT-INFO: padding code to 0x600000 to accommodate hot text
BOLT-ERROR: library not found: /usr/lib/libbolt_rt_instr.a
$ dpkg -L libbolt-19-dev | grep ".a$"
/usr/lib/llvm-19/lib/libbolt_rt_hugify.a
/usr/lib/llvm-19/lib/libbolt_rt_instr.a
```
I'm guessing bolt hardcodes expected paths somewhere,
and does not pick them up from CMake?
Roman.
- -- System Information:
Debian Release: trixie/sid
APT prefers unstable
APT policy: (990, 'unstable'), (500, 'unstable-debug'), (1, 'experimental-debug'), (1, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 6.12.12-amd64 (SMP w/32 CPU threads; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages bolt-19 depends on:
ii libbolt-19-dev 1:19.1.7-1+b1
ii libc6 2.40-6
ii libgcc-s1 14.2.0-16
ii libstdc++6 14.2.0-16
ii libz3-4 4.13.3-1
ii libzstd1 1.5.6+dfsg-2
ii zlib1g 1:1.3.dfsg+really1.3.1-1+b1
bolt-19 recommends no packages.
bolt-19 suggests no packages.
- -- no debconf information
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCgAdFiEE+UikBxeiu50LOdFYgbqkFMWfZdAFAmem0OQACgkQgbqkFMWf
ZdBU0hAAmmP7t1vs603k04Bk4nuLhIZawUaaIUT1iKhEhEtU7OVg19mf2ELyUrmU
pXAuRzPSWkMJhNooD+YhOYDaYPttbM+LV7qF53R3StoW8goVX5Ze29XiqLtvBfbW
4JLQGgVZAj2DN0t9N3oR2s9a5LkOPcNgubfihE4ioRm8+QzamezergD9KtIixzKL
pnvwKxg4VGvjyOospKJspJlX/YS4BDXdB+VE1SrrRvdOiOC0ZGEREKvTyrOhFINU
zBanmEwJdOr/7RSYQsVgnH9wXexXRSy8ECSyyxunnWuWwltu/cznUY7Erib6M+NW
avhc44JVr/UonBjVSusSqkVzrnOzdJMkZs9hnNkeAAhI6IL/GuA3oyaoHeNqs5C9
AApYj1uI531a1tMocfQXAg5fo5wsiWsy4SOQvCRNOaHRZukcXEyyEZMdN0PHY4o5
9P2mS8bPXJOd9aLbFJprBgpjL2arcqGL8rlEiXim2NLw6ZY1IjGgMYJv0U4Ai/vK
p4naX8U7SpO56x7XAiEj3nKKizVGepMluKl/vlXarZqe56vuxdNJUPoQaH/iJ4Ap
xPq2BQDiG6wKtvcpxFMrL0BJQLGiTpQ9j44gWBfG1pD6k3N+yZLYfragIzrhORGd
xdM5u58Q90TbxtY+aRA1fizomFU+Wobl6YQTQRtbUWb9sL+ofzQ=
=RsPL
-----END PGP SIGNATURE-----
More information about the Pkg-llvm-team
mailing list