Open KayvK opened 1 year ago
[kk@fedora u-boot]$ make midas_defconfig && make -j2 #
# scripts/kconfig/conf --syncconfig Kconfig CHK include/config.h CFG u-boot.cfg GEN include/autoconf.mk.dep CFG spl/u-boot.cfg GEN include/autoconf.mk GEN spl/include/autoconf.mk CHK include/config/uboot.release CHK include/generated/timestamp_autogenerated.h UPD include/generated/timestamp_autogenerated.h HOSTLD scripts/dtc/dtc /usr/bin/ld: scripts/dtc/dtc-parser.tab.o:(.bss+0x10): multiple definitions of `yylloc'; scripts/dtc/dtc-lexer.lex.o:(.bss+0x0): first defined here collect2: error: ld returned error code 1 make[2]: [scripts/Makefile.host:106: scripts/dtc/dtc] Error 1 make[1]: [scripts/Makefile.build:432: scripts/dtc] Error 2 make: [Makefile:551: scripts] Error 2 make: Waiting for other tasks to finish... [kk@fedora u-boot]$
Any help is appreciated.
See https://github.com/BPI-SINOVOIP/BPI-M4-bsp/issues/4
Possibly use an older version of gcc or make the edit described
and see [https://lkml.org/lkml/2020/4/1/1206]
[kk@fedora u-boot]$ make midas_defconfig && make -j2 #
configuration written to .config
# scripts/kconfig/conf --syncconfig Kconfig CHK include/config.h CFG u-boot.cfg GEN include/autoconf.mk.dep CFG spl/u-boot.cfg GEN include/autoconf.mk GEN spl/include/autoconf.mk CHK include/config/uboot.release CHK include/generated/timestamp_autogenerated.h UPD include/generated/timestamp_autogenerated.h HOSTLD scripts/dtc/dtc /usr/bin/ld: scripts/dtc/dtc-parser.tab.o:(.bss+0x10): multiple definitions of `yylloc'; scripts/dtc/dtc-lexer.lex.o:(.bss+0x0): first defined here collect2: error: ld returned error code 1 make[2]: [scripts/Makefile.host:106: scripts/dtc/dtc] Error 1 make[1]: [scripts/Makefile.build:432: scripts/dtc] Error 2 make: [Makefile:551: scripts] Error 2 make: Waiting for other tasks to finish... [kk@fedora u-boot]$
Any help is appreciated.