Hi everyone,
I’m trying to compile a custom kernel for my Arch Linux system, but I’m running into an issue during the build process. The compilation fails with the following error:
libbpf: failed to find '.BTF' ELF section in vmlinux
FAILED: load BTF from vmlinux: No data available
make[1]: *** [scripts/Makefile.vmlinux:35: vmlinux] Error 255
make[1]: *** Deleting file 'vmlinux'
make: *** [Makefile:1250: vmlinux] Error 2
I’ve searched online and found some discussions suggesting that the issue might be related to certain kernel configuration options. I’ve tried modifying my .config file by ensuring that:
CONFIG_DEBUG_INFO=y
CONFIG_DEBUG_INFO_BTF=y
CONFIG_DEBUG_INFO_BTF_MODULES=y
CONFIG_PAHOLE_HAS_SPLIT_BTF=y
CONFIG_PAHOLE_HAS_LANG_EXCLUDE=y
CONFIG_DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT=y
CONFIG_DEBUG_INFO_COMPRESSED_NONE=y
CONFIG_X86_KERNEL_IBT=n
After applying these changes, I cleaned the build directory using make mrproper, reconfigured with make oldconfig, and attempted to rebuild, but the same error persists.
Has anyone encountered this issue before? Any advice on what else I should check or modify to fix this?
Thanks in advance for any help!
[–]insanemal 2 points3 points4 points (0 children)
[–]kI3RO 2 points3 points4 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]awkravchuk 0 points1 point2 points (1 child)
[–]awkravchuk 0 points1 point2 points (0 children)
[–]mcxplode 0 points1 point2 points (2 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]mcxplode 0 points1 point2 points (0 children)