[From nobody Tue Nov 24 12:03:06 2026
Received: (at submit) by bugs.debian.org; 8 Feb 2025 03:35:04 +0000
X-Spam-Checker-Version: SpamAssassin 3.4.6-bugs.debian.org_2005_01_02
 (2021-04-09) on buxtehude.debian.org
X-Spam-Level: 
X-Spam-Status: No, score=-22.4 required=4.0 tests=BAYES_00,
 BODY_INCLUDES_PACKAGE,DKIM_ADSP_CUSTOM_MED,FORGED_GMAIL_RCVD,FOURLA,
 FREEMAIL_FROM,FVGT_m_MULTI_ODD,HAS_PACKAGE,KHOP_HELO_FCRDNS,
 NML_ADSP_CUSTOM_MED,PGPSIGNATURE,SPF_HELO_NONE,SPF_SOFTFAIL,
 SPOOFED_FREEMAIL,SPOOF_GMAIL_MID,XMAILER_REPORTBUG,X_DEBBUGS_CC
 autolearn=ham autolearn_force=no
 version=3.4.6-bugs.debian.org_2005_01_02
X-Spam-Bayes: score:0.0000 Tokens: new, 107; hammy, 150; neutral, 168; spammy,
 0. spammytokens: hammytokens:0.000-+--sk:iqizbae,
 0.000-+--sk:iQIzBAE, 
 0.000-+--trixie, 0.000-+--cmake, 0.000-+--sha512
Return-path: &lt;lebedev.ri@gmail.com&gt;
Received: from 78-107-250-75.static.corbina.ru ([78.107.250.75]:25876
 helo=pini-pini.lcl) by buxtehude.debian.org with esmtp (Exim 4.94.2)
 (envelope-from &lt;lebedev.ri@gmail.com&gt;) id 1tgbcW-00AkoK-Am
 for submit@bugs.debian.org; Sat, 08 Feb 2025 03:35:04 +0000
Content-Type: text/plain; charset=&quot;us-ascii&quot;
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
From: Roman Lebedev &lt;lebedev.ri@gmail.com&gt;
To: Debian Bug Tracking System &lt;submit@bugs.debian.org&gt;
Subject: bolt: not-MA-aware/not-multiversion-aware wrt to libbolt-dev
Message-ID: &lt;173898570116.408121.299086026496078393.reportbug@pini-pini.lcl&gt;
X-Mailer: reportbug 13.0.2
Date: Sat, 08 Feb 2025 06:35:01 +0300
X-Debbugs-Cc: lebedev.ri@gmail.com
Delivered-To: submit@bugs.debian.org

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: &lt;unknown&gt;
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 &quot;.a$&quot;
/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-----
]