0
I need to build the module.dwarf
file. Here are the steps I've taken
- The OS is linux mint 19.1. It's a freshly installed virtual machine so nothing should cause troubles
sudo apt install dwarfdump build-essential libelf-dev linux-headers-$(uname -r)
- `cd /lib/modules/$(uname -r)/build
sudo make CONFIG_DEBUG_INFO=y M=$PWD modules
The error is the following:
make[1]: *** No rule to make target 'kernel/bounds.c', needed by 'kernel/bounds.s. Stop.
Makefile:1552: recipe for target '_module_/lib/modules/4.15.0-50-generic/build` failed
make: *** [ _module_/lib/modules/4.15.0-50-generic/build] Error 2
I can't really find any information about this error as it appears to be some kind of generic error that appears when building kernel modules for various reasons, but I haven't find a cause nor a solution.