Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

No rule to make target `arch/x86/entry/syscalls/syscall_32.tbl', needed by `arch/x86/entry/syscalls/../../include/generated/asm/syscalls_32.h'

When I tried to enable PPP in the Ubuntu machine the following error occurred after menuconfig and trying to make the kernel:

$ sudo make

make[1]: *** No rule to make target `arch/x86/entry/syscalls/syscall_32.tbl', needed by `arch/x86/entry/syscalls/../../include/generated/asm/syscalls_32.h'. Stop.

make: *** [archheaders] Error 2

Ubuntu version linux-headers-4.2.0-27-generic was used.

Please help me to fix it.

like image 619
Tharaka Sandaruwan Avatar asked Aug 23 '16 17:08

Tharaka Sandaruwan


1 Answers

This could be a syntax error when using $(PWD). Consider changing this:

all: 
    $(MAKE) -C $(KDIR) M=$(PWD) modules

to this:

all: 
    $(MAKE) -C $(KDIR) M=$(shell pwd) modules

This solved my problem.

like image 121
max ko Avatar answered Sep 16 '22 13:09

max ko