Bug 14014

Summary: kernels from meta-arm are incompatible with gcc 10 on the host machine (yylloc issue)
Product: [Build System, Metadata & Runtime] Other YP Layers Reporter: Alexander Kanavin <alex.kanavin>
Component: layersAssignee: Jon Mason <jon.mason>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: High CC: jon.mason, poky.bs.watcher, poky.watcher, randy.macleod, ross.burton
Version: unspecified   
Target Milestone: 3.2 M3   
Hardware: x86   
OS: Multiple   
Whiteboard: AB-INT
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Alexander Kanavin 2020-08-18 08:53:19 UTC
Specifically, the following is observed when building on opensuse tumbleweed:
https://autobuilder.yoctoproject.org/typhoon/#/builders/113/builds/160

  HOSTCC  scripts/dtc/dtc-lexer.lex.o
  HOSTCC  scripts/dtc/dtc-parser.tab.o
  HOSTLD  scripts/dtc/dtc
/usr/lib64/gcc/x86_64-suse-linux/10/../../../../x86_64-suse-linux/bin/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
Comment 1 Jon Mason 2020-08-18 11:02:00 UTC
Juno dropped use of this kernel as of meta-arm commit:

commit 7bf455636aa7fb5b1b8b68000474e38b0208fa60
Author: Damodar Santhapuri <damodar.santhapuri@arm.com>
Date:   Fri Aug 14 21:28:14 2020 +0530

    arm-bsp/juno: Move to linux-yocto 5.4
    
    This commit includes
    1. Move from linux-linaro-arm 4.9 to linux-yocto 5.4
    2. MHU patches for SCMI
    3. add patch to remove stale configs in v5.4
    
    Observed the below error in kernel boot
    
    [    7.177114] arm-scmi firmware:scmi: mbox timed out in resp(caller: scmi_power_state_set+0x78/0xc0)
    [    7.197984] arm-scmi firmware:scmi: mbox timed out in resp(caller: scmi_power_state_set+0x78/0xc0)
    [    7.201125] smsc911x 18000000.ethernet eth1: SMSC911x/921x identified at 0xffff800012a70000, IRQ: 8
    [    7.206968] arm-scmi firmware:scmi: mbox timed out in resp(caller: scmi_power_state_set+0x78/0xc0)
    [    7.206978] arm-scmi firmware:scmi: mbox timed out in resp(caller: scmi_power_state_set+0x78/0xc0)
    [    7.216073] arm-scmi firmware:scmi: message for 5 is not expected!
    
    Change-Id: I4651a142bcee06ba95faa315e3caaf871f406b5a
    Signed-off-by: Damodar Santhapuri <damodar.santhapuri@arm.com>
    Signed-off-by: Jon Mason <jon.mason@arm.com>


Since no other platforms are using this kernel, it should no longer be an issue.
Comment 2 Alexander Kanavin 2020-08-18 11:52:22 UTC
Sorry, I have to reopen: meta-arm-bsp/conf/machine/n1sdp.conf still uses the kernel, and the link provided have a failure happening with that machine too.
Comment 3 Jon Mason 2020-08-20 07:51:14 UTC
n1sdp kernel problem should be resolved in http://git.yoctoproject.org/cgit/cgit.cgi/meta-arm/commit/?id=75b337d909e191b20fcac4f1e4dad9737cb47e7e