OpenEdv-开源电子网

标题: 编译正点原子官方的IMX6ULL的Linux源码,报错出错dtc-parser.y [打印本页]

作者: zhongfu    时间: 2023-9-24 17:00
标题: 编译正点原子官方的IMX6ULL的Linux源码,报错出错dtc-parser.y
  HOSTCC  scripts/dtc/dtc-parser.tab.o
  CC      kernel/bounds.s
dtc-parser.y: In function ‘yyparse’:
dtc-parser.y:434:6: error: ‘scripts’ undeclared (first use in this function)
dtc-parser.y:434:6: note: each undeclared identifier is reported only once for each function it appears in
dtc-parser.y:434:14: error: ‘dtc’ undeclared (first use in this function)
dtc-parser.y:434:22: error: ‘parser’ undeclared (first use in this function); did you mean ‘marker’?
make[2]: *** [scripts/Makefile.host:108:scripts/dtc/dtc-parser.tab.o] 错误 1
make[2]: *** 正在等待未完成的任务....
  CHK     include/generated/bounds.h
  UPD     include/generated/bounds.h
make[1]: *** [scripts/Makefile.build:403:scripts/dtc] 错误 2
make[1]: *** 正在等待未完成的任务....
  CC      arch/arm/kernel/asm-offsets.s
  CHK     include/generated/asm-offsets.h
  UPD     include/generated/asm-offsets.h
  CALL    scripts/checksyscalls.sh
  HOSTLD  scripts/mod/modpost
make: *** [Makefile:559:scripts] 错误 2
make: *** 正在等待未完成的任务....


作者: zhongfu    时间: 2023-9-24 17:03
本人使用的编译啊环境是:ubuntu1~22.04,gcc-9.5.0,交叉编译器为:gcc-linaro-4.9.4-2017.01-i686_arm-linux-gnueabihf
作者: zhongfu    时间: 2023-9-24 17:52
这个问题已解决:
删掉原来的工程文件,重新新建一个。重新解压。这应该是第一次编译错误后,遗留下来的一些莫名其妙的错误。




欢迎光临 OpenEdv-开源电子网 (http://www.openedv.com/) Powered by Discuz! X3.4