[Bug 2081848] Re: fix underlinking with recent LLVM 18.1.8 backport

Andreas Lang 2081848 at bugs.launchpad.net
Tue Jan 28 13:39:38 UTC 2025


Hi, the latest update (0.20.2-1ubuntu4.2) broke bpftrace on ubuntu
24.04.

The linker tries to use libLLVM-18.so.18.1 and libLLVM.so.18.1

I had to downgrade to version 0.20.2-1ubuntu4. This version does not
include the link to libLLVM-18.so.18.1 and works fine.

cat /etc/os-release
PRETTY_NAME="Ubuntu 24.04.1 LTS"
NAME="Ubuntu"
VERSION_ID="24.04"
VERSION="24.04.1 LTS (Noble Numbat)"
VERSION_CODENAME=noble
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=noble
LOGO=ubuntu-logo

dpkg -l bpftrace
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name           Version           Architecture Description
+++-==============-=================-============-==========================================
ii  bpftrace       0.20.2-1ubuntu4.2 amd64        high-level tracing language for Linux eBPF

/usr/bin/bpftrace
/usr/bin/bpftrace: error while loading shared libraries: libLLVM-18.so.18.1: cannot open shared object file: No such file or directory

ldd /usr/bin/bpftrace | grep -i llvm
        libLLVM-18.so.18.1 => not found
        libLLVM.so.18.1 => /lib/x86_64-linux-gnu/libLLVM.so.18.1 (0x00007cd13fc00000)

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to bpftrace in Ubuntu.
https://bugs.launchpad.net/bugs/2081848

Title:
  fix underlinking with recent LLVM 18.1.8 backport

Status in bpftrace package in Ubuntu:
  New
Status in bpftrace source package in Noble:
  Fix Released

Bug description:
  An archive test rebuild with a planned LLVM 18.1.8 showed up one regression, building bpfrace.  The issue however is in bpftrace itself, and is already fixed in oracular 0.21.0-1ubuntu1.
  Another backport is from 0.21.0-1ubuntu5, ignoring the unknown .debug_addr section in dh_dwz on armhf.

  Testing done for that patch: The package builds with the backported
  18.1.8 package and passes its tests.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/bpftrace/+bug/2081848/+subscriptions




More information about the foundations-bugs mailing list