Linux下 make -j16出现的问题,求指教

make -j16
CHK include/config/kernel.release
CHK include/generated/uapi/linux/version.h
make[1]: 没有什么可以做的为 `all'。
CHK include/generated/utsrelease.h
make[1]: 没有什么可以做的为 `relocs'。
CC arch/x86/kernel/asm-offsets.s
In file included from include/linux/suspend.h:8:0,
from arch/x86/kernel/asm-offsets.c:12:
include/linux/mm.h:645:2: error: #error SECTIONS_WIDTH+NODES_WIDTH+ZONES_WIDTH > BITS_PER_LONG - NR_PAGEFLAGS
#error SECTIONS_WIDTH+NODES_WIDTH+ZONES_WIDTH > BITS_PER_LONG - NR_PAGEFLAGS
^
make[1]: *** [arch/x86/kernel/asm-offsets.s] 错误 1
make: *** [prepare0] 错误 2

make -j16,指的是编译的时候使用16个任务同时编译,来提升编译效率,
你这个报错是之前./configure的时候没有成功,可能有些依赖包没提前安装好追问

我重新make以后又出现这样的错误。

追答

先将旧的make信息清除:make clean
然后再./configure,这一步完成之后查看是否报错:echo $?
如果返回结果是0则继续下一步make,如果结果不是0,则要检查是否还有依赖包没安装上

温馨提示:答案为网友推荐,仅供参考
相似回答