u-boot-sunxi
u-boot-sunxi copied to clipboard
Not being able to compile: multiple definition of 'yylloc'
/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.1/../../../../x86_64-pc-linux-gnu/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 collect2: error: ld returned 1 exit status make[2]: *** [scripts/Makefile.host:106: scripts/dtc/dtc] Error 1 make[1]: *** [scripts/Makefile.build:434: scripts/dtc] Error 2 make: *** [Makefile:508: scripts] Error 2
https://source.denx.de/u-boot/u-boot/-/commit/018921ee79d3f30893614b3b2b63b588d8544f73 this is the fix i've found