Package Details: bpftrace-git r723.89eb329-1

Git Clone URL: https://aur.archlinux.org/bpftrace-git.git (read-only)
Package Base: bpftrace-git
Description: High-level tracing language for Linux eBPF
Upstream URL: https://github.com/iovisor/bpftrace
Licenses: Apache
Conflicts: bpftrace
Provides: bpftrace
Submitter: cippaciong
Maintainer: cippaciong
Last Packager: cippaciong
Votes: 1
Popularity: 0.000899
First Submitted: 2018-10-10 13:41
Last Updated: 2019-03-13 16:29

Latest Comments

cippaciong commented on 2019-10-27 23:06

@Jonhoo: thanks for reporting, I can reproduce the issue also for the non -git version of bpftrace but I'm not quite sure what is causing it. My guess is that it might be related to some changes in recent versions of kernel/llvm/bcc since at least the latest release, used to build correctly when I created the PKGBUILD. I will report the issue upstream and see if they can help.

@k3a: Which versions of linux/llvm/bcc do you have on your system? Did you install libbpf as well?

k3a commented on 2019-10-25 16:59

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

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

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

@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

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

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

Jonhoo commented on 2019-02-18 19:29

I believe this needs bcc in its makedepends.