FS#68598 - [bpftrace] error while loading shared libraries with LLVM 11

Attached to Project: Community Packages
Opened by André Almeida (tonyk) - Thursday, 12 November 2020, 15:44 GMT
Last edited by Evangelos Foutras (foutrelis) - Friday, 13 November 2020, 13:41 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Evangelos Foutras (foutrelis)
Anatol Pomozov (anatolik)
Architecture All
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

After updating llvm, llvm-libs and clang to 11.0.0-1, I'm getting this error from bpftrace:

bpftrace: error while loading shared libraries: libclang.so.10: cannot open shared object file: No such file or directory

Also, this is `ldd /usr/bin/bpftrace` output:

linux-vdso.so.1 (0x00007ffe27f01000)
libbpf.so.0 => /usr/lib/libbpf.so.0 (0x00007feb5bde6000)
libz.so.1 => /usr/lib/libz.so.1 (0x00007feb5bdcc000)
libdl.so.2 => /usr/lib/libdl.so.2 (0x00007feb5bdc6000)
libbcc.so.0 => /usr/lib/libbcc.so.0 (0x00007feb592f4000)
libclang.so.10 => not found
libLLVM-10.so => not found
libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x00007feb59115000)
libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0x00007feb590fb000)
libc.so.6 => /usr/lib/libc.so.6 (0x00007feb58f32000)
libelf.so.1 => /usr/lib/libelf.so.1 (0x00007feb58f18000)
/lib64/ld-linux-x86-64.so.2 => /usr/lib64/ld-linux-x86-64.so.2 (0x00007feb5c1f8000)
libclang-cpp.so.10 => not found
libncursesw.so.6 => /usr/lib/libncursesw.so.6 (0x00007feb58ea7000)
libpthread.so.0 => /usr/lib/libpthread.so.0 (0x00007feb58e83000)
libm.so.6 => /usr/lib/libm.so.6 (0x00007feb58d3d000)

Additional info:
* bpftrace: 0.11.0-4
* on bpftrace release page



Steps to reproduce:
This task depends upon

Closed by  Evangelos Foutras (foutrelis)
Friday, 13 November 2020, 13:41 GMT
Reason for closing:  Fixed
Additional comments about closing:  bpftrace 0.11.2-1
Comment by Anatol Pomozov (anatolik) - Thursday, 12 November 2020, 18:05 GMT
Trying to recompile with the latest Arch and I get following compilation issue: https://github.com/iovisor/bpftrace/issues/1610
Comment by Anatol Pomozov (anatolik) - Friday, 13 November 2020, 00:38 GMT
I pulled upstream patches that fix the mentioned failure. bpftrace-0.11.2-1 is in [community] now.
Comment by André Almeida (tonyk) - Friday, 13 November 2020, 13:23 GMT
Tested with bpftrace-0.11.2-1 and can confirm that it's working. Thanks!

Loading...