linux-sunxi / u-boot-sunxi

Allwinner A1x native u-boot support
https://github.com/linux-sunxi/u-boot-sunxi/wiki
315 stars 333 forks source link

Not being able to compile: multiple definition of 'yylloc' #108

Open deeg05 opened 2 years ago

deeg05 commented 2 years ago

/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