Created attachment 4552 [details] oe-core.patch As defined in the following kernel source, a kernel security/hardening option CONFIG_PLUGIN_HOSTCC depends on gcc-plugins feature which is provided by gcc-cross, but cannot be used from Yocto build environment. And thus it and the related kernel options cannot be enabled. https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/scripts/gcc-plugins/Kconfig https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/scripts/gcc-plugin.sh With my effort and the patches attached, I still cannot make it pass. The following misplacing of the file cannot be properly fixed by simply moving the missing file. /build/tmp-glibc/work/intel_x86_64-wrs-linux/linux-yocto-dev/5.3-rc++gitAUTOINC+5e432442d5_31a7feab3b-r0/recipe-sysroot-native/usr/bin/x86_64-wrs-linux/../../lib/x86_64-wrs-linux/gcc/x86_64-wrs-linux/9.1.0/plugin/include/tm.h:39:36: fatal error: ./config/i386/linux64.h: No such file or directory
Created attachment 4553 [details] kernel-source.patch
The attached kernel-source.patch or similar one needs to be applied to enable the error print.
The attached oe-core is simply for testing "bitbake virtual/kernel -cmenuconfig". Further change is still needed for do_configure.
Khem and Zhe please work on this. It's not clear if it's a toolchain issue or not.
Richard is going to check on this. I"ve CCed Sundeep since I think he worked on a bug for WR that is related.
The same error was reported in WR Linux when below flags are enabled. CONFIG_GCC_PLUGIN_LATENT_ENTROPY=y CONFIG_GCC_PLUGIN_STRUCTLEAK=y CONFIG_GCC_PLUGIN_STRUCTLEAK_BYREF_ALL=y The build issue was resolved with the patch from below link. https://www.mail-archive.com/openembedded-core@lists.openembedded.org/msg157205.html Hope this helps...
Bulk move from 4.99 or 0.00 to 5.99
Sundeep - for post-6.0. The attached patches are potentially the wrong approach.
Sundeep, Always nice to enable a standard kernel feature so let's investigate.