Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple definitions of 'yyloc,' prevents compilation. #8

Open
KayvK opened this issue May 28, 2023 · 1 comment
Open

Multiple definitions of 'yyloc,' prevents compilation. #8

KayvK opened this issue May 28, 2023 · 1 comment

Comments

@KayvK
Copy link

KayvK commented May 28, 2023

[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.

@emulti
Copy link

emulti commented Jan 2, 2024

See BPI-SINOVOIP/BPI-M4-bsp#4

Possibly use an older version of gcc or make the edit described

and see [https://lkml.org/lkml/2020/4/1/1206]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants