没有规则来建立目标"arch/x86/entry/syscalls/syscall_32.tbl",而"arch/x86/entry/syscalls/../../include/produced/asm/syscalls_32.h" [英] No rule to make target `arch/x86/entry/syscalls/syscall_32.tbl', needed by `arch/x86/entry/syscalls/../../include/generated/asm/syscalls_32.h'
问题描述
当我尝试在Ubuntu计算机中启用PPP时,在menuconfig
之后并尝试制作内核时发生以下错误:
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]:***没有规则来创建目标"arch/x86/entry/syscalls/syscall_32.tbl",而arch/x86/entry/syscalls/../../include/generated则需要/asm/syscalls_32.h'.停止.
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]错误2
make: *** [archheaders] Error 2
使用了Ubuntu版本linux-headers-4.2.0-27-generic.
Ubuntu version linux-headers-4.2.0-27-generic was used.
请帮助我修复它.
推荐答案
在使用$(PWD)
时,这可能是语法错误.考虑更改此内容:
This could be a syntax error when using $(PWD)
. Consider changing this:
all:
$(MAKE) -C $(KDIR) M=$(PWD) modules
对此:
all:
$(MAKE) -C $(KDIR) M=$(shell pwd) modules
这解决了我的问题.
这篇关于没有规则来建立目标"arch/x86/entry/syscalls/syscall_32.tbl",而"arch/x86/entry/syscalls/../../include/produced/asm/syscalls_32.h"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!