celaxodon / buildroot

Other
20 stars 6 forks source link

L4T kernel fails to build on hosts with GCC 10.x #2

Closed celaxodon closed 3 years ago

celaxodon commented 3 years ago

Fails during linking stage due to GCC 10's default of -fno-common. See GCC 10 porting guide.

Example output generated with gcc version 10.2.1 20201016 (Red Hat 10.2.1-6) (GCC)

Example output:

$ make jetson_nano_defconfig
$ make clean && make all
...
 HOSTLD  scripts/dtc/dtc
/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
collect2: error: ld returned 1 exit status
make[4]: *** [scripts/Makefile.host:110: scripts/dtc/dtc] Error 1
make[3]: *** [scripts/Makefile.build:649: scripts/dtc] Error 2
make[3]: *** Waiting for unfinished jobs....
...

Issue affects:

Upstream kernel team may be open to taking on the patch.

celaxodon commented 3 years ago

Closed with commit 836bf8491 on branch feat/jetson-nano-support-latest.