I’m trying to build a module from source code with dkms. I have managed to setup the dkms but when I build it i get the following error:
cleaning build area…
make -j12 KERNELRELEASE=5.5.2-903.native -C /lib/modules/5.5.2-903.native/build SUBDIRS=/var/lib/dkms///build modules…(bad exit status: 2)
Error! Bad return status for module build on kernel: 5.5.2-903.native (x86_64)
Consult /var/lib/dkms/ttyPos/1.0/build/make.log for more information.
When I consult the make.log I get the following errors:
make: Entering directory ‘/usr/lib/modules/5.5.2-903.native/build’
make: *** No rule to make target ‘scripts/basic/fixdep.c’, needed by ‘scripts/basic/fixdep’. Stop.
make: *** [Makefile:501: scripts_basic] Error 2
make: *** [Makefile:678: include/config/auto.conf.cmd] Error 2
make: Leaving directory ‘/usr/lib/modules/5.5.2-903.native/build’
I have downloaded the required bundles (linux-dev and kernel-native-dkms) but still cannot figure out what is happening.
Can someone give me a hand on this?