CentOS 8 – Fix Kernel 5.13.7 BTF Error During Compilation

centos8linuxlinux-kernelrhel8

I'm compiling Kernel 5.13.7 for Centos 8.4.2105

I've got the below error

  MODPOST vmlinux.symvers
  MODINFO modules.builtin.modinfo
  GEN     modules.builtin
BTF: .tmp_vmlinux.btf: pahole (pahole) is not available
Failed to generate BTF for vmlinux
Try to disable CONFIG_DEBUG_INFO_BTF
make: *** [Makefile:1205: vmlinux] Error 1

I tried searching on Google and got this solution
https://stackoverflow.com/questions/61657707/btf-tmp-vmlinux-btf-pahole-pahole-is-not-available

But that is only for debian/fedora/OpenSuse

Can someone please help me regarding Centos 8

Best Answer

You need to enable the CentOS PowerTools repository, then you can install dwarves.

Related Topic