BTF: .tmp_vmlinux.btf: pahole (pahole) is not available

Viewed 33086

Getting this error while compiling the kernel version :5.7-rc4

BTF: .tmp_vmlinux.btf: pahole (pahole) is not available
Failed to generate BTF for vmlinux
Try to disable CONFIG_DEBUG_INFO_BTF
make: *** [Makefile:1106: vmlinux] Error 1
7 Answers

Try to install dwarves:

$ sudo apt install dwarves

On Fedora, Getting this error while compiling the kernel version :5.7.2(stable)

Try to install

$ sudo dnf install dwarves

On Arch use sudo pacman -S pahole

Dwarves it is indeed and as a me too then, on OpenSuse tumbleweed

$ sudo zypper in dwarves

I also encountered the same question and i solved by this method, to enable the powertools:

vim /etc/yum.repo.d/CentOS-Linux-PowerTools.repo

enabled=1

Getting same error with the Debian/WSL distro. No newer dwarves than 1.10-2.1+b1.

Apparently this is Debian Stretch (v9), and it needs to be updated to Bullseye (v11). This doc details how to move from Buster to Bullseye, i.e. 10 to 11 but it's the same process from 9.

Following the upgrade, we get

$  apt list dwarves
Listing... Done
dwarves/stable,now 1.20-1 amd64 [installed]
$ pahole --version
v1.20

...and you can go back and run your make.

BPF Type Format can be disabled in config, so pahole won't be needed.

In the kernel config:

CONFIG_DEBUG_INFO_BTF=n
Related