Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compile issue - "No rule to make target" #51

Open
andrewcapybara opened this issue Jan 27, 2022 · 4 comments
Open

Compile issue - "No rule to make target" #51

andrewcapybara opened this issue Jan 27, 2022 · 4 comments

Comments

@andrewcapybara
Copy link

andrewcapybara commented Jan 27, 2022

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?

@juanmoura
Copy link

same error here

@shanez1215
Copy link

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

@joelnoliveira
Copy link

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?

@abysslover
Copy link

abysslover commented Apr 19, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants