furkantokac / buildroot

Buildroot fork customized for RPI3, iMX6, TK1, Qt, FastBoot.
Other
157 stars 37 forks source link

multiple definition of `yylloc'; scripts/dtc/dtc-lexer.lex.o #19

Closed konsumer closed 3 years ago

konsumer commented 3 years ago

Here is how I tried to build it:

git clone --depth=1 https://github.com/furkantokac/buildroot.git pi-build
cd pi-build

# sidenote: this failed once with " *** No rule to make target 'output/.br-external.mk'" but worked on second run
make ftdev_rpi3_fastboot_defconfig

make -j8

It chugs for a little while, then I get this error:

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[4]: *** [scripts/Makefile.host:111: scripts/dtc/dtc] Error 1
make[3]: *** [scripts/Makefile.build:587: scripts/dtc] Error 2
make[3]: *** Waiting for unfinished jobs....
  HOSTLD  scripts/mod/modpost
make[2]: *** [Makefile:569: scripts] Error 2
make[1]: *** [package/pkg-generic.mk:241: /home/konsumer/Documents/otherdev/pi-build/output/build/linux-c117a8bccf37bfba323065b566cf999ed4629a4a/.stamp_built] Error 2
make: *** [Makefile:84: _all] Error 2
furkantokac commented 3 years ago

This may be related to your gcc version. What gcc version you use ?