本文介绍了没有规则可以创建目标 `arch/x86/entry/syscalls/syscall_32.tbl',需要 `arch/x86/entry/syscalls/../../include/generated/asm/syscalls_32.h'的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试在 Ubuntu 机器中启用 PPP 时,在 menuconfig 并尝试制作内核后发生以下错误:

$ sudo make

make[1]: *** 没有规则可以生成目标 `arch/x86/entry/syscalls/syscall_32.tbl',需要 `arch/x86/entry/syscalls/../../include/generated/asm/syscalls_32.h'.停止.

make: *** [archheaders] 错误 2

使用的是 Ubuntu 版本 linux-headers-4.2.0-27-generic.

请帮我修复它.

解决方案

这可能是使用 $(PWD) 时的语法错误.考虑改变这个:

全部:$(MAKE) -C $(KDIR) M=$(PWD) 模块

为此:

全部:$(MAKE) -C $(KDIR) M=$(shell pwd) 模块

这解决了我的问题.

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

$ sudo make

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

Please help me to fix it.

解决方案

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.

这篇关于没有规则可以创建目标 `arch/x86/entry/syscalls/syscall_32.tbl',需要 `arch/x86/entry/syscalls/../../include/generated/asm/syscalls_32.h'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-31 19:27