alliedvision / linux_nvidia_jetson

Allied Vision CSI-2 camera driver for NVIDIA Jetson Systems.
105 stars 41 forks source link

Failed to cross-compile kernel as build.sh step #26

Open dimaxano opened 3 years ago

dimaxano commented 3 years ago

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?

ghost commented 2 years ago

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.