Kernel Compile error
Hi:
I have a Intel Atom CPU, use Ubuntu 16.04, Kernel version:4.14.71, patch with xenomai 3.0.9, using ipipe-core-4.14.71-x86-1.patch:
Here is the patch command:./prepare-kernel.sh --linux=/home/googol/work/linux-4.14.71 --ipipe=/home/googol/work/ipipe-core-4.14.71-x86-1.patch --arch=i386 Then when I goto the linux src path compile the kernel, and I get error message as follow:make ARCH=i386 -j4
/*****************************************************************************************************************************************************/scripts/kconfig/conf --silentoldconfig Kconfigwarning: (XENOMAI) selects IPIPE which has unmet direct dependencies (HAVE_IPIPE_SUPPORT)warning: (X86_VSMP && HYPERV) selects PARAVIRT which has unmet direct dependencies (HYPERVISOR_GUEST && !IPIPE)warning: (XENOMAI) selects IPIPE which has unmet direct dependencies (HAVE_IPIPE_SUPPORT)warning: (X86_VSMP && HYPERV) selects PARAVIRT which has unmet direct dependencies (HYPERVISOR_GUEST && !IPIPE) CHK include/config/kernel.release CHK include/generated/uapi/linux/version.h CHK include/generated/utsrelease.h CHK scripts/mod/devicetable-offsets.h CHK include/generated/timeconst.h CHK include/generated/bounds.h CC arch/x86/kernel/asm-offsets.sIn file included from ./arch/x86/include/asm/uaccess.h:10:0, from ./include/linux/uaccess.h:14, from ./include/linux/crypto.h:26, from arch/x86/kernel/asm-offsets.c:9:./include/linux/ipipe.h:55:28: error: field ‘arch’ has incomplete type struct ipipe_arch_sysinfo arch; ^Kbuild:57: recipe for target 'arch/x86/kernel/asm-offsets.s' failedmake[1]: *** [arch/x86/kernel/asm-offsets.s] Error 1Makefile:1084: recipe for target 'prepare0' failedmake: *** [prepare0] Error 2make: *** Waiting for unfinished jobs..../*******************************************************************************************************************************************/
Please help me whether if I were using the wrong kernel version?--------------------------------
Best regards
Kevin
Hi Kevin,
Quoted 6 lines · 鲁克文 via Xenomai
Hi:
I have a Intel Atom CPU, use Ubuntu 16.04, Kernel version:4.14.71, patch with xenomai 3.0.9, using ipipe-core-4.14.71-x86-1.patch:
Here is the patch command:./prepare-kernel.sh --linux=/home/googol/work/linux-4.14.71 --ipipe=/home/googol/work/ipipe-core-4.14.71-x86-1.patch --arch=i386 Then when I goto the linux src path compile the kernel, and I get error message as follow:make ARCH=i386 -j4
/*****************************************************************************************************************************************************/scripts/kconfig/conf --silentoldconfig Kconfigwarning: (XENOMAI) selects IPIPE which has unmet direct dependencies (HAVE_IPIPE_SUPPORT)warning: (X86_VSMP&& HYPERV) selects PARAVIRT which has unmet direct dependencies (HYPERVISOR_GUEST&& !IPIPE)warning: (XENOMAI) selects IPIPE which has unmet direct dependencies (HAVE_IPIPE_SUPPORT)warning: (X86_VSMP&& HYPERV) selects PARAVIRT which has unmet direct dependencies (HYPERVISOR_GUEST&& !IPIPE) CHKinclude/config/kernel.releaseCHKinclude/generated/uapi/linux/version.hCHKinclude/generated/utsrelease.hCHKscripts/mod/devicetable-offsets.hCHKinclude/generated/timeconst.hCHKinclude/generated/bounds.hCCarch/x86/kernel/asm-offsets.sInfile included from./arch/x86/include/asm/uaccess.h:10:0, from./include/linux/uaccess.h:14, from./include/linux/crypto.h:26, from arch/x86/kernel/asm-offsets.c:9:./include/linux/ipipe.h:55:28: error: field ‘arch’ has incomplete type structipipe_arch_sysinfoarch; ^Kbuild:57: recipe for target 'arch/x86/kernel/asm-offsets.s' failedmake[1]: *** [arch/x86/kernel/asm-offsets.s] Error 1Makefile:1084: recipe for target 'prepare0' failedmake: *** [prepare0] Error 2make: *** Waiting for unfinished jobs..../*******************************************************************************************************************************************/
Please help me whether if I were using the wrong kernel version?--------------------------------
Your mail got heavily mangled which makes it hard to parse. Please only use plain-text emails on public lists.
I suspect you have some kernel feature enabled that trigger a circular dependency issue. Is CONFIG_HYPERV on? Try turning it off. In general, it's good to tune-down a config for the particular use case when doing real-time, i.e. start with the defconfig and then add what you really needs (in contrast to using the distro config e.g.).
Also consider moving to 4.19 as 4.14 is no longer seeing I-pipe updates.
Jan
Signature · 2 lines
Siemens AG, Corporate Technology, CT RDA IOT SES-DE Corporate Competence Center Embedded Linux