Hello, bpftrace-0.15.0-r1 fails to compile on my system: /usr/bin/x86_64-pc-linux-gnu-g++ -DBPFTRACE_VERSION=\"v0.15.0\" -DHAVE_BCC_CREATE_MAP -DHAVE_BCC_ELF_FOREACH_SYM -DHAVE_BCC_KFUNC -DHAVE_BCC_PROG_LOAD -DHAVE_BCC_PROG_LOAD_XATTR -DHAVE_BCC_USDT_ADDSEM -DHAVE_BCC_WHICH_SO -DHAVE_BFD_DISASM -DHAVE_LIBBPF -DHAVE_LIBBPF_BPF_H -DHAVE_LIBBPF_BTF_DUMP_NEW_V0_6_0 -DHAVE_LIBBPF_BTF_TYPE_CNT -DHAVE_LIBDW -DHAVE_NAME_TO_HANDLE_AT=1 -DLIBBCC_ATTACH_KPROBE_SIX_ARGS_SIGNATURE -DLIBBCC_ATTACH_UPROBE_SEVEN_ARGS_SIGNATURE -DLIBBFD_DISASM_FOUR_ARGS_SIGNATURE -DLLVM_ORC_V2 -DLLVM_VERSION_MAJOR=14 -DLLVM_VERSION_MINOR=0 -DLLVM_VERSION_PATCH=6 -I/home/portage/portage/dev-util/bpftrace-0.15.0-r1/work/bpftrace-0.15.0_build -I/home/portage/portage/dev-util/bpftrace-0.15.0-r1/work/bpftrace-0.15.0/src -I/home/portage/portage/dev-util/bpftrace-0.15.0-r1/work/bpftrace-0.15.0/src/ast -isystem /usr/lib/llvm/14/include -O2 -pipe -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -Wall -Wextra -Wundef -Wpointer-arith -Wcast-align -Wwrite-strings -Wcast-qual -Wunreachable-code -Wdisabled-optimization -fdiagnostics-color=always -std=c++17 -MD -MT src/CMakeFiles/runtime.dir/attached_probe.cpp.o -MF src/CMakeFiles/runtime.dir/attached_probe.cpp.o.d -o src/CMakeFiles/runtime.dir/attached_probe.cpp.o -c /home/portage/portage/dev-util/bpftrace-0.15.0-r1/work/bpftrace-0.15.0/src/attached_probe.cpp /home/portage/portage/dev-util/bpftrace-0.15.0-r1/work/bpftrace-0.15.0/src/attached_probe.cpp: In member function ‘void bpftrace::AttachedProbe::load_prog()’: /home/portage/portage/dev-util/bpftrace-0.15.0-r1/work/bpftrace-0.15.0/src/attached_probe.cpp:752:11: error: cannot convert ‘bpf_load_program_attr*’ to ‘bpf_prog_type’ 752 | &attr, prog_len, log_buf.get(), log_buf_size, true); | ^~~~~ | | | bpf_load_program_attr* In file included from /home/portage/portage/dev-util/bpftrace-0.15.0-r1/work/bpftrace-0.15.0/src/bpffeature.h:3, from /home/portage/portage/dev-util/bpftrace-0.15.0-r1/work/bpftrace-0.15.0/src/attached_probe.h:8, from /home/portage/portage/dev-util/bpftrace-0.15.0-r1/work/bpftrace-0.15.0/src/attached_probe.cpp:24: /usr/include/bcc/libbpf.h:92:44: note: initializing argument 1 of ‘int bcc_prog_load_xattr(bpf_prog_type, const char*, const char*, const bpf_insn*, bpf_prog_load_opts*, int, char*, unsigned int, bool)’ 92 | int bcc_prog_load_xattr(enum bpf_prog_type prog_type, const char *prog_name, | This seems to be a compatibility issue with bcc-0.25 and an upstream fix seems to be available: https://github.com/iovisor/bpftrace/issues/2340
*** Bug 866446 has been marked as a duplicate of this bug. ***
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=542f1c70470d93d8f66fb8ef04ece7fb83221512 commit 542f1c70470d93d8f66fb8ef04ece7fb83221512 Author: Patrick McLean <chutzpah@gentoo.org> AuthorDate: 2022-08-29 17:39:38 +0000 Commit: Patrick McLean <chutzpah@gentoo.org> CommitDate: 2022-08-29 17:39:38 +0000 dev-util/bpftrace: Add patch to build with bcc-0.25 (bug #866611) Closes: https://bugs.gentoo.org/866611 Signed-off-by: Patrick McLean <chutzpah@gentoo.org> dev-util/bpftrace/bpftrace-0.15.0-r1.ebuild | 1 + .../bpftrace/files/bpftrace-0.15.0-bcc-025.patch | 88 ++++++++++++++++++++++ 2 files changed, 89 insertions(+)