While trying to build kernel (4.15) with support Ftrace and debug info, I am getting the following error:
FAILED: load BTF from vmlinux: No such file or directory
Makefile:1160: recipe for target 'vmlinux' failed
This is what I am trying:
$ ./scripts/config -e CONFIG_FTRACE
$ ./scripts/config -e CONFIG_DEBUG_INFO
$ ./scripts/config -e CONFIG_DEBUG_INFO_DWARF5
$ ./scripts/config -e CONFIG_BPF_SYSCALL
$ ./scripts/config -e CONFIG_DEBUG_INFO_BTF
$ ./scripts/config -d CONFIG_DEBUG_INFO_REDUCED
$ yes "" | make oldconfig
$ make -j$(nproc) Image dtbs modules
This issue seems to be different from this one: