fl2000_drm icon indicating copy to clipboard operation
fl2000_drm copied to clipboard

Compile issue - "No rule to make target"

Open andrewcapybara opened this issue 3 years ago • 4 comments
trafficstars

Sorry, I'm a bit of a noob, so maybe I should know my way out of this. It seems Mr Make can't find his way into a directory:

make[1]: Entering directory '/usr/src/linux-headers-5.15.15-76051515-generic'
make[2]: *** No rule to make target 'arch/x86/entry/syscalls/syscall_32.tbl', needed by 'arch/x86/include/generated/uapi/asm/unistd_32.h'. Stop.
make[1]: *** [arch/x86/Makefile:213: archheaders] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.15.15-76051515-generic'
make: *** [Makefile:21: modules] Error 2

Pretty sure I'm in the right directory - just in home/fl2000_drm What do I need to do to continue the compile?

andrewcapybara avatar Jan 27 '22 00:01 andrewcapybara

same error here

juanmoura avatar Apr 22 '22 13:04 juanmoura

I was able to fix this by opening makefile and replacing all instances of M=$(PWD) with M=$(shell pwd)

shanez1215 avatar Aug 06 '22 21:08 shanez1215

I was able to fix this by opening makefile and replacing all instances of M=$(PWD) with M=$(shell pwd)

Where is that makefile located?

joelnoliveira avatar Nov 01 '23 11:11 joelnoliveira

May be /lib/modules/$(uname -r)/build. Although those lines seemed to be removed in Ubuntu 22.04 kernel version 6.5.0. Instead you could try something as follows: export KBUILD_EXTMOD=$(pwd) before running make.

abysslover avatar Apr 19 '24 00:04 abysslover