透明水晶 2023-06-26 13:37 采纳率: 96.8%
浏览 30
已结题

Docker中Ubuntu编译代码报错

Docker中Ubuntu编译代码报错


rm arch/mips/boot/dts/novatek/na51023.dtb.S
  LD      arch/mips/boot/dts/built-in.o
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_e46cb0d"
 ^
include/generated/nvtversion.h:1:4: error: stray '#' in program
 -e #define NVT_UTS_RELEASE  "4.1.0_e46cb0d"
    ^
../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
../scripts/Makefile.build:258: recipe for target 'arch/mips/nvt-boards/na51023/nvt-info.o' failed
make[4]: *** [arch/mips/nvt-boards/na51023/nvt-info.o] Error 1
../scripts/Makefile.build:403: recipe for target 'arch/mips/nvt-boards/na51023' failed
make[3]: *** [arch/mips/nvt-boards/na51023] Error 2
/home/fly/novatek/E93LOD-C1/na51023_bsp_20190819_linux/linux-kernel/Makefile:948: recipe for target 'arch/mips' failed
make[2]: *** [arch/mips] Error 2
make[2]: *** Waiting for unfinished jobs....
make[2]: *** wait: No child processes.  Stop.
make[1]: *** [sub-make] Error 2
Makefile:148: recipe for target 'sub-make' failed
make[1]: Leaving directory '/home/fly/novatek/E93LOD-C1/na51023_bsp_20190819_linux/linux-kernel'
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_e46cb0d"
 ^
include/generated/nvtversion.h:1:4: error: stray '#' in program
 -e #define NVT_UTS_RELEASE  "4.1.0_e46cb0d"
    ^
../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[2]: *** [arch/mips] Error 2
make[2]: *** Waiting for unfinished jobs....
make[2]: *** wait: No child processes.  Stop.
make[1]: *** [sub-make] Error 2
Makefile:120: recipe for target 'linux' failed
make: *** [linux] Error 2
  • 写回答

3条回答 默认 最新

  • 透明水晶 2023-07-07 20:57
    关注
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(2条)

报告相同问题?

问题事件

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

悬赏问题

  • ¥15 关于#hadoop#的问题
  • ¥15 (标签-Python|关键词-socket)
  • ¥15 keil里为什么main.c定义的函数在it.c调用不了
  • ¥50 切换TabTip键盘的输入法
  • ¥15 可否在不同线程中调用封装数据库操作的类
  • ¥15 微带串馈天线阵列每个阵元宽度计算
  • ¥15 keil的map文件中Image component sizes各项意思
  • ¥20 求个正点原子stm32f407开发版的贪吃蛇游戏
  • ¥15 划分vlan后,链路不通了?
  • ¥20 求各位懂行的人,注册表能不能看到usb使用得具体信息,干了什么,传输了什么数据