Bug 13924 - bealebone 5.4.20 fails to build with gcc 10
Summary: bealebone 5.4.20 fails to build with gcc 10
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: kernel (show other bugs)
Version: 3.2
Hardware: x86 Multiple
: Medium+ normal
Target Milestone: 3.2 M2
Assignee: Bruce Ashfield
QA Contact:
URL:
Whiteboard: AB-INT
: 13956 (view as bug list)
Depends on:
Blocks:
 
Reported: 2020-05-31 10:52 UTC by Richard Purdie
Modified: 2020-06-30 08:50 UTC (History)
3 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Richard Purdie 2020-05-31 10:52:00 UTC
https://autobuilder.yoctoproject.org/typhoon/#/builders/65/builds/1993

ERROR: linux-yocto-5.4.20+gitAUTOINC+aafb8f095e_f4d7dbafb1-r0 do_compile: oe_runmake failed
ERROR: linux-yocto-5.4.20+gitAUTOINC+aafb8f095e_f4d7dbafb1-r0 do_compile: Execution of '/home/pokybuild/yocto-worker/beaglebone/build/build/tmp/work/beaglebone_yocto-poky-linux-gnueabi/linux-yocto/5.4.20+gitAUTOINC+aafb8f095e_f4d7dbafb1-r0/temp/run.do_compile.3089865' failed with exit code 1:
  GEN     Makefile
scripts/kconfig/conf  --syncconfig Kconfig
  GEN     Makefile
  SYSHDR  arch/arm/include/generated/uapi/asm/unistd-common.h
  SYSHDR  arch/arm/include/generated/uapi/asm/unistd-oabi.h
  SYSHDR  arch/arm/include/generated/uapi/asm/unistd-eabi.h
  HOSTCC  scripts/dtc/dtc.o
  HOSTCC  scripts/dtc/flattree.o
  HOSTCC  scripts/dtc/data.o
  HOSTCC  scripts/dtc/fstree.o
  HOSTCC  scripts/dtc/livetree.o
  HOSTCC  scripts/dtc/srcpos.o
  HOSTCC  scripts/dtc/treesource.o
  HOSTCC  scripts/dtc/checks.o
  HOSTCC  scripts/dtc/util.o
  LEX     scripts/dtc/dtc-lexer.lex.c
  YACC    scripts/dtc/dtc-parser.tab.[ch]
  HOSTCC  scripts/dtc/dtc-lexer.lex.o
  HOSTCC  scripts/dtc/dtc-parser.tab.o
  HOSTLD  scripts/dtc/dtc
/home/pokybuild/yocto-worker/beaglebone/build/build/tmp/hosttools/ld: scripts/dtc/dtc-parser.tab.o:(.bss+0x20): 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:116: scripts/dtc/dtc] Error 1
make[1]: *** [/home/pokybuild/yocto-worker/beaglebone/build/build/tmp/work-shared/beaglebone-yocto/kernel-source/Makefile:1263: scripts_dtc] Error 2
make: *** [/home/pokybuild/yocto-worker/beaglebone/build/build/tmp/work-shared/beaglebone-yocto/kernel-source/Makefile:179: sub-make] Error 2
Comment 1 Adrian Bunk 2020-05-31 13:24:30 UTC
This is not a build race, this is the -fno-common default in gcc 10:
https://gcc.gnu.org/gcc-10/porting_to.html

The fix should be (untested):
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=35b34d264cb347909ec89d9fa895900035d5438c
Comment 2 Bruce Ashfield 2020-05-31 19:52:21 UTC
We already have those commits in linux-yocto.

We just need Kevin @ Wind River to bump the version in the reference BSP once it has been boot tested.

If he can't get to it this week, I can bump the SRCREVs based on compile tests.
Comment 3 Richard Purdie 2020-06-25 02:05:02 UTC
*** Bug 13956 has been marked as a duplicate of this bug. ***
Comment 4 Richard Purdie 2020-06-26 04:48:07 UTC
Happened again https://autobuilder.yoctoproject.org/typhoon/#/builders/65/builds/2085
Comment 5 Richard Purdie 2020-06-27 01:00:53 UTC
and again: https://autobuilder.yoctoproject.org/typhoon/#/builders/111/builds/641
Comment 6 Richard Purdie 2020-06-30 08:50:48 UTC
Was able to reproduce this on f32 at will, apply the updates and then this was resolved, thanks Bruce. http://git.yoctoproject.org/cgit.cgi/poky/commit/?h=master-next&id=24e569ad235eb224251df8045b3e51ab9513b82a