Linux内核编译错误lb跟踪点不支持的NR_CPUS

时间:2018-07-29 01:55:18

标签: linux linux-kernel

我正在尝试在Ubuntu 16.04上编译Linux内核3.4.0,但出现错误:

In file included from kernel/fork.c:79:0:
include/trace/events/sched.h:249:2: error: #error "Unsupported NR_CPUS for lb tracepoint."
 #error "Unsupported NR_CPUS for lb tracepoint."
  ^
scripts/Makefile.build:307: recipe for target 'kernel/fork.o' failed

感谢您的帮助!

1 个答案:

答案 0 :(得分:1)

This显示了过去如何解决此问题。

如果已设置内核,请尝试从命令中删除-j选项以创建内核。 希望对您有帮助