【问题标题】:Linux kernel compile error Unsupported NR_CPUS for lb tracepointLinux 内核编译错误 Unsupported NR_CPUS for lb tracepoint
【发布时间】:2019-01-05 16:19:15
【问题描述】:

我正在尝试在 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

感谢任何帮助!

【问题讨论】:

    标签: linux linux-kernel


    【解决方案1】:

    这篇题为"Linux 3.4.0 : recipe for target 'kernel/fork.o' failed"的论坛帖子展示了过去如何解决此问题:

    NR_CPUS 很可能是 CPU 的数量,可能您需要设置它(配置它),因为当前值不受支持。

    尝试从命令中删除 -j 选项以制作内核(如果您有该选项)。

    希望对你有帮助。

    【讨论】:

      猜你喜欢
      • 2018-04-19
      • 2020-01-18
      • 1970-01-01
      • 1970-01-01
      • 2018-09-14
      • 2016-07-30
      • 1970-01-01
      • 1970-01-01
      • 2017-10-01
      相关资源
      最近更新 更多