Community Packages

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#77333 - bpftrace is not compatible with llvm15

Attached to Project: Community Packages
Opened by Y7n05h (Y7n05h) - Monday, 30 January 2023, 09:21 GMT
Last edited by Toolybird (Toolybird) - Tuesday, 31 January 2023, 05:07 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To No-one
Architecture All
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
bpftrace is not compatible with llvm15. Running bpftrace built with llvm15 gets a segfault.
This issue was fixed upstream at https://github.com/iovisor/bpftrace/pull/2385. But it was not included in the 0.16.0 release.
I tried to modify the PKGBUILD to use llvm14 and clang14 but failed because of dependency conflicts.
So the only solution is to use the patch in pr in advance.
There are 3 commits included in pr, but we only need to apply the commit 89188de.
https://github.com/iovisor/bpftrace/commit/89188defce9f323fab39a2aec438be93ad6c0376.patch
I've done this and tested it.
My modified PKGBUILD has been uploaded as an attachment.

By the way:
I found the cmake variable USE_SYSTEM_BPF_BCC at https://github.com/iovisor/bpftrace/blob/master/INSTALL.md#Compilation , but I noticed that the variable is not used in PKGBUILD, why?

Additional info:
* package version(s) community/bpftrace 0.16.0-2
* config and/or log files etc.
* link to upstream bug report, if any https://github.com/iovisor/bpftrace/issues/2368

Steps to reproduce:
exec:
bpftrace -e 'kprobe:do_nanosleep { printf("sleep by %s\n", comm); }'
   PKGBUILD (1.2 KiB)
This task depends upon

Closed by  Toolybird (Toolybird)
Tuesday, 31 January 2023, 05:07 GMT
Reason for closing:  Fixed
Additional comments about closing:  bpftrace 0.17.0-1 is now in [community-testing]

Loading...