The bpftool is used in following command

`bpftool btf dump file /sys/kernel/btf/vmlinux format c`

Upstream statically encoded the generated output in source tree,
https://github.com/go-
delve/delve/blob/v1.20.2/pkg/proc/internal/ebpf/bpf/include/vmlinux.h

But the Debian package strips this vmlinux.h file and generates it at
build time.

@Kernel team, what you think is more appreciated? If generating at build
time, then we need a runnable bpftool command in build env.

** Tags added: ftbfs update-excuse

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/2021481

Title:
  delve ftbfs on amd64 due to bpftool

Status in delve package in Ubuntu:
  Confirmed
Status in linux package in Ubuntu:
  Confirmed

Bug description:
  src/github.com/go-delve/delve/pkg/proc/internal/ebpf/helpers.go
  WARNING: bpftool not found for kernel 6.1.0-9

    You may need to install the following packages for this specific kernel:
      linux-tools-6.1.0-9-amd64
      linux-cloud-tools-6.1.0-9-amd64

    You may also want to install one of the following packages to keep up to 
date:
      linux-tools-amd64
      linux-cloud-tools-amd64

  The Debian package build-depends on bpftool. But bpftool is different
  in Debian and Ubuntu. On Ubuntu it's provided by linux-tools-common.
  However it seems it needs linux-tools-amd64 as well?

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/delve/+bug/2021481/+subscriptions


-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to     : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to