apteryks

Results 426 comments of apteryks

Hi! It's fairly easy to reproduce for me, using libbpf v1.4.1, ensuring I don't pull the git submodules of dwarves, specifying the "-DLIBBPF_EMBEDDED=OFF" build option and providing `pkg-config` as a...

I note that `pahole` on nixpkgs use a different git repo snapshot: `https://git.kernel.org/pub/scm/devel/pahole/pahole.git/snapshot/pahole-1.26.tar.gz` to build it, though it fails the same for me if I use `guix build dwarves --with-source=dwarves=https://git.kernel.org/pub/scm/devel/pahole/pahole.git/snapshot/pahole-1.26.tar.gz`.

I found the underlying issue: https://github.com/libbpf/libbpf/issues/562

I note that the default headers used in the build environment on Guix are at 5.15.49, while Nix uses 6.7, which is probably why it works there.

If I add the headers of 6.8 to the build environment, it builds fine, so it seems the #562 fix of libbpf is insufficient, at least for kernel headers as...

Fails as well on 5.15.157. I'll report that the fix doesn't work for 5.15.X on the libbpf issue.

I've pinged the libbpf people at: https://github.com/libbpf/libbpf/issues/562#issuecomment-2104544471.

Hm, upgrading the linux-kernel-headers will have to wait until the next core updates iteration for Guix. Meanwhile copying the whole Linux 6.8 headers would add 6.8 MiB to the size...

Also, what is `uapi` ? I don't see this directory in the headers of our `linux-libre-headers` package.

I've added the following phase to libbpf, which emulates what's done in Nix using the least amount of Linux headers: ```scheme (add-after 'install 'install-linux-bpf-headers ;; Workaround users such as 'dwarves'...