linux_nvidia_jetson icon indicating copy to clipboard operation
linux_nvidia_jetson copied to clipboard

Failed to cross-compile kernel as build.sh step

Open dimaxano opened this issue 3 years ago • 1 comments

After successfully running prepare.sh I run ./build.sh work_dir nx all all, but at some point I'm getting

/usr/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
  CHK     scripts/mod/devicetable-offsets.h
collect2: error: ld returned 1 exit status
make[2]: *** [scripts/Makefile.host:110: scripts/dtc/dtc] Error 1
make[1]: *** [scripts/Makefile.build:649: scripts/dtc] Error 2
make: *** [Makefile:593: scripts] Error 2
make: *** Waiting for unfinished jobs....

Any Ideas what is wrong?

dimaxano avatar Sep 20 '21 13:09 dimaxano

What operating system are you using? I had the same problem today when using an up-to-date Debian. Using Ubuntu 18.04 then worked.

ghost avatar May 20 '22 17:05 ghost