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