Package Details: bpftrace-git v0.24.rc0.r125.gc47f16f5-1

Git Clone URL: https://aur.archlinux.org/bpftrace-git.git (read-only, click to copy)
Package Base: bpftrace-git
Description: High-level tracing language for Linux eBPF
Upstream URL: https://github.com/bpftrace/bpftrace
Keywords: bpf tracing
Licenses: Apache-2.0
Conflicts: bpftrace
Provides: bpftrace
Submitter: cippaciong
Maintainer: VorpalWay
Last Packager: VorpalWay
Votes: 4
Popularity: 1.39
First Submitted: 2018-10-10 13:41 (UTC)
Last Updated: 2025-09-27 08:58 (UTC)

Latest Comments

« First ‹ Previous 1 2

k3a commented on 2019-10-25 16:59 (UTC) (edited on 2019-10-25 17:02 (UTC) by k3a)

I came across the same problem as Jonhoo but bpf was not needed! What fixed it for me was the removal of trizen temporary build files (I use trizen for AUR packages): rm -rf /var/tmp/trizen-user/bpftrace-git

The next request for installation trizen -S bpftrace-git then fetched the git repo again and resulted in successful build.

Strange, does anyone know why? Isn't it doing git pull / checkout before every build? Or maybe make clean is needed before make?!

jonhoo commented on 2019-10-21 14:57 (UTC)

Interesting, I'm now having the exact same build problem again:

/home/jon/.cache/aurman/bpftrace-git/src/bpftrace/src/attached_probe.cpp:374:15: error: ‘bpf_prog_load’ was not declared in this scope; did you mean ‘bcc_prog_load’?
  374 |     progfd_ = bpf_prog_load(progtype(probe_.type), namep,
      |               ^~~~~~~~~~~~~
      |               bcc_prog_load

I tried cloning bpftrace directly from git and running the same cmake command as in the PKGBUILD, and then get:

-- Please install the libbpf development package (missing: LIBBPF_LIBRARIES LIBBPF_INCLUDE_DIRS)

If I run locate libbpf, I get only one file, and that is /usr/include/bcc/libbpf.h, so I'm pretty sure that library is indeed missing (I have both bcc and bpf installed).

jonhoo commented on 2019-06-10 13:35 (UTC)

Oh, that's so weird, it now builds again even without bpf. I wonder how that happened. It definitely did not build before, and was complaining about missing something like bpf_prog_load. Oh well, ignore me I suppose :)

cippaciong commented on 2019-06-08 13:02 (UTC)

@Jonhoo: thanks for reporting, are you sure it is needed though? I tried to build the package and run a few examples without bpf installed on my system and it worked fine. Do you have any reference on that? Thanks.

jonhoo commented on 2019-05-29 21:50 (UTC)

This package now needs bpf (from community) in its depends, since it has been split out from the bcc package since 0.9.

cippaciong commented on 2019-02-18 19:57 (UTC)

You're right, thanks. I will add it to the PKGBUILD asap

jonhoo commented on 2019-02-18 19:29 (UTC)

I believe this needs bcc in its makedepends.