Fixed
Created: May 31, 2019
Updated: Aug 15, 2019
Resolved Date: Jun 18, 2019
Found In Version: 10.17.41.14
Fix Version: 10.17.41.17
Severity: Standard
Applicable for: Wind River Linux LTS 17
Component/s: Kernel
MACHINE ??= "intel-x86-64"
When using attached kernel configuration kernel.config, compilation fails with:
In file included from /intelx86-64-rcpl14-lts17/tmp-glibc/work-shared/intel-x86-64/kernel-source/arch/x86/kernel/cpu/mcheck/threshold.c:9:0:
/intelx86-64-rcpl14-lts17/tmp-glibc/work-shared/intel-x86-64/kernel-source/arch/x86/include/asm/mce.h:203:46: warning: 'struct notifier_block' declared inside parameter list will not be visible outside of this definition or declaration
extern void mce_register_decode_chain(struct notifier_block *nb);
^~~~~~~~~~~~~~
/intelx86-64-rcpl14-lts17/tmp-glibc/work-shared/intel-x86-64/kernel-source/arch/x86/include/asm/mce.h:204:48: warning: 'struct notifier_block' declared inside parameter list will not be visible outside of this definition or declaration
extern void mce_unregister_decode_chain(struct notifier_block *nb);
^~~~~~~~~~~~~~
Full log attached: log.do_compile.195480
conf/local.conf attached
Solution - it appears a header might be missing from arch/x86/kernel/kprobes/opt.c
header is asm-generic/sections.h
This appears fixed in later kernel versions on kernel.org
line 42:
*#include <asm/sections.h>*
Clone and setup project
Copy local.conf attached in your build/conf/local.conf
Configure your kernel with attached kernel.config
bitbake linux-yocto