军事研究员 2023-07-05 16:16 采纳率: 98.6%
浏览 27
已结题

linux内核编译出错误-20230705-01

linux内核编译出错误-20230705-01


make[2]: Leaving directory '/home/fly/nvt/$(PRJ)/na51023_bsp_20190819_linux/linux-kernel/OUTPUT'
Makefile:148: recipe for target 'sub-make' failed
make[1]: Leaving directory '/home/fly/nvt/$(PRJ)/na51023_bsp_20190819_linux/linux-kernel'
make[1]: *** [sub-make] Error 2
linux: Build finish
In file included from ../arch/mips/nvt-boards/na51023/nvt-info.c:22:0:
include/generated/nvtversion.h:1:1: error: expected identifier or '(' before '-' token
 -e #define NVT_UTS_RELEASE  "4.1.0_34be8ae"
 ^
include/generated/nvtversion.h:1:4: error: stray '#' in program
 -e #define NVT_UTS_RELEASE  "4.1.0_34be8ae"
    ^
../arch/mips/nvt-boards/na51023/nvt-info.c: In function 'nvt_version_show':
../arch/mips/nvt-boards/na51023/nvt-info.c:299:34: error: 'NVT_UTS_RELEASE' undeclared (first use in this function)
  seq_printf(m, "Version: %s \n", NVT_UTS_RELEASE);
                                  ^
../arch/mips/nvt-boards/na51023/nvt-info.c:299:34: note: each undeclared identifier is reported only once for each function it appears in
make[4]: *** [arch/mips/nvt-boards/na51023/nvt-info.o] Error 1
make[3]: *** [arch/mips/nvt-boards/na51023] Error 2
make[3]: *** Waiting for unfinished jobs....
make[2]: *** [arch/mips] Error 2
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [sub-make] Error 2
Makefile:120: recipe for target 'linux' failed
make: *** [linux] Error 2

img

  • 写回答

2条回答 默认 最新

查看更多回答(1条)

报告相同问题?

问题事件

  • 系统已结题 7月15日
  • 已采纳回答 7月7日
  • 创建了问题 7月5日