<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>13924</bug_id>
          
          <creation_ts>2020-05-31 10:52:00 +0000</creation_ts>
          <short_desc>bealebone 5.4.20 fails to build with gcc 10</short_desc>
          <delta_ts>2020-06-30 08:50:48 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>kernel</component>
          <version>3.2</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard>AB-INT</status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>3.2 M2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Richard Purdie">richard.purdie</reporter>
          <assigned_to name="Bruce Ashfield">bruce.ashfield</assigned_to>
          <cc>bunk</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>tom.zanussi</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>87367</commentid>
    <comment_count>0</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2020-05-31 10:52:00 +0000</bug_when>
    <thetext>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 &apos;/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&apos; 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&apos;; 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</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>87369</commentid>
    <comment_count>1</comment_count>
    <who name="Adrian Bunk">bunk</who>
    <bug_when>2020-05-31 13:24:30 +0000</bug_when>
    <thetext>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</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>87372</commentid>
    <comment_count>2</comment_count>
    <who name="Bruce Ashfield">bruce.ashfield</who>
    <bug_when>2020-05-31 19:52:21 +0000</bug_when>
    <thetext>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&apos;t get to it this week, I can bump the SRCREVs based on compile tests.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>87583</commentid>
    <comment_count>3</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2020-06-25 02:05:02 +0000</bug_when>
    <thetext>*** Bug 13956 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>87629</commentid>
    <comment_count>4</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2020-06-26 04:48:07 +0000</bug_when>
    <thetext>Happened again https://autobuilder.yoctoproject.org/typhoon/#/builders/65/builds/2085</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>87633</commentid>
    <comment_count>5</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2020-06-27 01:00:53 +0000</bug_when>
    <thetext>and again: https://autobuilder.yoctoproject.org/typhoon/#/builders/111/builds/641</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>87663</commentid>
    <comment_count>6</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2020-06-30 08:50:48 +0000</bug_when>
    <thetext>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&amp;id=24e569ad235eb224251df8045b3e51ab9513b82a</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>