Wind River Support Network

HomeDefectsLIN1021-3524
Fixed

LIN1021-3524 : linux-kernel fails to compile using GCC options with RCPL 11

Created: May 10, 2022    Updated: Jun 29, 2022
Resolved Date: Jun 7, 2022
Found In Version: 10.21.20.11
Fix Version: 10.21.20.13
Severity: Standard
Applicable for: Wind River Linux LTS 21
Component/s: Kernel, Toolchain

Description

LTS 21 with the RCPL 11 if we enable any of the following flags in the .configure the kernel building fails.

CONFIG_GCC_PLUGIN_LATENT_ENTROPY=y
CONFIG_GCC_PLUGIN_STRUCTLEAK=y
CONFIG_GCC_PLUGIN_STRUCTLEAK_BYREF_ALL=y

Fix compile of gcc plugins patch is applied and fixes the issue

Steps to Reproduce

* Build a standard image 

 

mkdir -p my-project
cd my-project

git clone --branch WRLINUX_10_21_LTS_RCPL0011 \
https://gateway.delivers.windriver.com/git/linux-lts/release/wrlinux-lts.21/WRLinux-lts-21-Core/wrlinux-x

./wrlinux-x/setup.sh --machines intel-x86-64

source ./environment-setup-x86_64-wrlinuxsdk-linux

source ./oe-init-build-env
 * Add the kernel fragment by bbappend 


mkdir -p layers/local/recipes-kernel/linux/files
cd $_/.. 
 * BBappend file:


FILESEXTRAPATHS_prepend := "${THISDIR}/files:" SRC_URI += "\ file://config_baseline.cfg \ "

 * config_baseline.cfg file:


CONFIG_GCC_PLUGIN_LATENT_ENTROPY=y
CONFIG_GCC_PLUGIN_STRUCTLEAK=y
CONFIG_GCC_PLUGIN_STRUCTLEAK_BYREF_ALL=y 

bitbake -c clean linux-yocto 
bitbake -c build linux-yocto

 

 
Live chat
Online