uboot编译时,出现SHIPPED的dtc-parser.tab.c和dtc-lexer.lex.c符号yylloc重复
python2 .repo/repo/repo sync -lpython2 .repo/repo/repo sync -c --no-clone-bundle --no-tags
python2 .repo/repo/repo start firefly --all
$ ./build.sh roc-rk3308b-cc-plus-buildroot.mk
processing option: roc-rk3308b-cc-plus-buildroot.mk
switching to board: /data/ljn/Sources/Linux_SDK_R3308Y/build_repo2022/device/rockchip/rk3308/roc-rk3308b-cc-plus-buildroot.mk
$ ./build.sh uboot
processing option: uboot
============Start building uboot============
TARGET_UBOOT_CONFIG=firefly-rk3308-debug-uart4
=========================================
make for firefly-rk3308-debug-uart4_defconfig by -j8
HOSTCCscripts/basic/fixdep
HOSTCCscripts/kconfig/conf.o
SHIPPED scripts/kconfig/zconf.tab.c
SHIPPED scripts/kconfig/zconf.lex.c
SHIPPED scripts/kconfig/zconf.hash.c
HOSTCCscripts/kconfig/zconf.tab.o
HOSTLDscripts/kconfig/conf
#
# configuration written to .config
#
scripts/kconfig/conf--silentoldconfig Kconfig
CHK include/config.h
UPD include/config.h
CFG u-boot.cfg
GEN include/autoconf.mk.dep
CFG spl/u-boot.cfg
CFG tpl/u-boot.cfg
GEN include/autoconf.mk
GEN spl/include/autoconf.mk
GEN tpl/include/autoconf.mk
CHK include/config/uboot.release
CHK include/generated/timestamp_autogenerated.h
UPD include/generated/timestamp_autogenerated.h
HOSTCCscripts/dtc/dtc.o
HOSTCCscripts/dtc/flattree.o
HOSTCCscripts/dtc/fstree.o
HOSTCCscripts/dtc/data.o
HOSTCCscripts/dtc/livetree.o
HOSTCCscripts/dtc/treesource.o
HOSTCCscripts/dtc/srcpos.o
HOSTCCscripts/dtc/checks.o
HOSTCCscripts/dtc/util.o
SHIPPED scripts/dtc/dtc-lexer.lex.c
SHIPPED scripts/dtc/dtc-parser.tab.h
SHIPPED scripts/dtc/dtc-parser.tab.c
HOSTCCscripts/dtc/dtc-lexer.lex.o
HOSTCCscripts/dtc/dtc-parser.tab.o
CHK include/config.h
CFG u-boot.cfg
UPD include/config/uboot.release
CHK include/generated/version_autogenerated.h
UPD include/generated/version_autogenerated.h
CC lib/asm-offsets.s
CC arch/arm/lib/asm-offsets.s
CHK include/generated/asm-offsets.h
UPD include/generated/asm-offsets.h
HOSTLDscripts/dtc/dtc
CHK include/generated/generic-asm-offsets.h
/usr/bin/ld: scripts/dtc/dtc-parser.tab.o:(.bss+0x10): multiple definition of `yylloc'; scripts/dtc/dtc-lexer.lex.o:(.bss+0x0): first defined here
UPD include/generated/generic-asm-offsets.h
collect2: error: ld returned 1 exit status
LDS u-boot.lds
make: *** Error 1
make: *** Error 2
make: *** Error 2
make: *** Waiting for unfinished jobs....
ERROR: Running build_uboot failed!
ERROR: exit code 2 from line 523:
./make.sh $RK_UBOOT_DEFCONFIG $UBOOT_COMPILE_COMMANDS
本帖最后由 ljn 于 2022-8-16 09:13 编辑
把dtc-parser.tab.c_shipped文件里面的yylloc注释掉,能编译通过。但uboot编译到后面又报错,提示dtc文件语法错误:
DTC arch/arm/dts/rk3126-evb.dtb
DTC arch/arm/dts/rk3188-radxarock.dtb
DTC arch/arm/dts/rk3128-evb.dtb
DTC arch/arm/dts/rk3288-evb.dtb
Error: arch/arm/dts/.rk3036-sdk.dtb.pre.tmp:77.1-10 syntax error
FATAL ERROR: Unable to parse input tree
make: *** Error 1
make: *** Waiting for unfinished jobs....
Error: arch/arm/dts/.rk3188-radxarock.dtb.pre.tmp:383.1-10 syntax error
FATAL ERROR: Unable to parse input tree
make: *** Error 1
make: *** Error 2
make: *** Error 2
make: *** Waiting for unfinished jobs....
ERROR: Running build_uboot failed!
ERROR: exit code 2 from line 523:
./make.sh $RK_UBOOT_DEFCONFIG $UBOOT_COMPILE_COMMANDS
这些dtc文件,使用系统自带的dtc命令,也会报错。
建议用ubuntu18系统进行编译
页:
[1]