内核3.14.1编译错误

内核3.14.1编译错误

我安装了内核3.14.1,似乎没有问题。

uname -r
3.14.1-031401-generic

但是,当我尝试转到该文件夹​​并尝试执行 make 操作时,它失败了。我发现多个文件丢失了。知道我如何得到它们。

sudo make
  HOSTLD  scripts/kconfig/conf
scripts/kconfig/conf --silentoldconfig Kconfig
make[1]: *** No rule to make target `/usr/src/linux-headers-3.14.1-031401-generic/arch/x86/syscalls/syscall_32.tbl', needed by `arch/x86/syscalls/../include/generated/uapi/asm/unistd_32.h'.  Stop.
make: *** [archheaders] Error 2

我无法理解如何解决这个错误。我在网上查了一下,在花了30多个小时后我现在已经筋疲力尽了。

检查头文件是否可用,我这样做sudo apt-get install linux-headers-$(uname -r)

Reading package lists... Done
Building dependency tree       
Reading state information... Done
linux-headers-3.14.1-031401-generic is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

相关内容