Closed trueToastedCode closed 9 months ago
Haven't ever seen that additional step: BTF [M]
, usually module is compiled and linked at phase LD [M]
. As well as I didn't see this error at others' Kali installs.
Did you compile kernel by yourself?
As I googled I found the following: https://www.mail-archive.com/debian-bugs-dist@lists.debian.org/msg1886054.html. So as from there you have to create proper Makefile at path ./tools/bpf/resolve_btfids/resolve_btfids
.
Also since I suppose you're using Parallels to run Linux try to ask at their forums about such error.
Also as I can see module is compiled and linked but removed here: make[2]: *** Deleting file '/home/parallels/rtl8188eus/8188eu.ko'
because of that error.
Corresponding code is at /usr/src/YOUR_LINUX/scripts/Makefile.modfinal at string 63:
ifdef CONFIG_DEBUG_INFO_BTF_MODULES
+$(if $(newer-prereqs),$(call cmd,btf_ko))
endif
So try to remove these 3 lines.
Also as I can see module is compiled and linked but removed here:
make[2]: *** Deleting file '/home/parallels/rtl8188eus/8188eu.ko'
because of that error.Corresponding code is at /usr/src/YOUR_LINUX/scripts/Makefile.modfinal at string 63:
ifdef CONFIG_DEBUG_INFO_BTF_MODULES +$(if $(newer-prereqs),$(call cmd,btf_ko)) endif
So try to remove these 3 lines.
This works, thx 👍
(I've installed various packages using
sudo apt-get install linux-headers-$(uname -r) build-essential bc
and also used this solution Skipping BTF generation)