Open Terminator-J opened 2 years ago
sudo apt install dwarves
After rebuilding the kernel successfully, /sys/kernel/btf/
directory does not exist yet.
I hit the same issue building the 6.1 kernel, same fix appears to work
if you're building this in gentoo, s/dwarves/pahole/
sudo apt install dwarves
dwarves also not found
sudo apt install dwarves
dwarves also not found
try installing pahole: https://www.google.com/search?q=pahole+dwarves
Version
Microsoft Windows Version 21H1 (OS Build 19043.1348)
WSL Version
Kernel Version
5.10.74.3-microsoft-standard-WSL2+
Distro Version
Ubuntu Server 21.04 (hirsute)
Other Software
The issue isn't with WSL, the issue is with compiling the WSL2 kernel source (but of course we can't open issues/PRs against that repository, and are directed here instead).
Attempting to follow the Build Instructions as written results in an error due to the missing
pahole
binary, since thebuild-essentials
metapackage no longer includes thedwarves
package in recent versions of Ubuntu. Manually adding thedwarves
package works successfully.Please consider merging the following commit to correct your issue: https://github.com/Terminator-J/WSL2-Linux-Kernel/commit/70376ecb4087139b891e6222ae8e115ca82e22ef
Repro Steps
Expected Behavior
Actual Behavior
Diagnostic Logs
Please see https://github.com/Terminator-J/WSL2-Linux-Kernel/commit/70376ecb4087139b891e6222ae8e115ca82e22ef for resolution, since we are unable to submit PRs directly to the correct repo.