Cannot build module.dwarf

0

I need to build the module.dwarf file. Here are the steps I've taken

  1. The OS is linux mint 19.1. It's a freshly installed virtual machine so nothing should cause troubles
  2. sudo apt install dwarfdump build-essential libelf-dev linux-headers-$(uname -r)
  3. `cd /lib/modules/$(uname -r)/build
  4. 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.

Mauro F.

Posted 2019-05-20T23:16:23.207

Reputation: 85

No answers