Fixed
Created: Nov 3, 2014
Updated: Dec 3, 2018
Resolved Date: Nov 9, 2014
Found In Version: 6.0.0.13
Fix Version: 6.0.0.14
Severity: Standard
Applicable for: Wind River Linux 6
Component/s: Kernel
when building x86 kernel of RCPL 13, it failed. logs are as below:
CC arch/x86/vdso/vdso32-setup.o
X32 arch/x86/vdso/vgetcpu-x32.o
CC arch/x86/mm/physaddr.o
AS arch/x86/realmode/rm/wakeup_asm.o
/home/wrl6/acpi6-bsp/build/WRL/wrl6_64/bitbake_build/tmp/work/intel_x86_64-wrs-linux/linux-windriver/3.10-r0/linux/arch/x86/mm/init_64.c: In function 'free_pagetable':
/home/wrl6/acpi6-bsp/build/WRL/wrl6_64/bitbake_build/tmp/work/intel_x86_64-wrs-linux/linux-windriver/3.10-r0/linux/arch/x86/mm/init_64.c:730:4: error: implicit declaration of function '__free_pages_bootmem' [-Werror=implicit-function-declaration]
__free_pages_bootmem(page, order);
^
cc1: some warnings being treated as errors
make[4]: *** [arch/x86/mm/init_64.o] Error 1
make[4]: *** Waiting for unfinished jobs....
add below line in 'build/linux-windriver/linux/include/linux/bootmem.h'
extern void __free_pages_bootmem(struct page *page, unsigned int order);
1. create a x86 project of RCPL 13: /WindRiver-6.0.0/wrlinux-6/wrlinux/configure --enable-board=intel-x86-64 --enable-kernel=standard --enable-rootfs=glibc-std+initramfs --with-template=feature/initramfs,feature/intel-ras,feature/kexec,feature/kdump --enable-parallel-pkgbuilds=4 --enable-jobs=4 --enable-reconfig --with-rcpl-version=0013
2. build kernel: make -C build linux-windriver