UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Observer keyshavmor2611
Observer
115 Views
Registered: ‎06-07-2018

CentOS8 Kernel(version 4.18) not getting compiled by PetaLinux

Hi,

I am trying to compile an external kernel source namely the CentOS8 4.18 kernel with Petalinux 2019.1. I have put version sanity skip to 1 and the compilation process reaches upto 98% before showing only one consistent warning and one consistnt error. I have added all Xilinx specific files to the kernel source. All ZynqMP specific files have also been added.

The warning I get is:

WARNING: Unable to get checksum for linux-xlnx SRC_URI entry configs: [Errno 2] No such file or directory: '/home/kmor/petalinux/2019.1/CentOS8_Trial_v1.1/build/../components/ext_sources/linux-4.18.0-80.el8/configs'

What does the warning mean?

The error I get is this:

NOTE: linux-xlnx: compiling from external source tree /home/kmor/petalinux/2019.1/CentOS8_Trial_v1.1/build/../components/ext_sources/linux-4.18.0-80.el8
ERROR: linux-xlnx-4.19-xilinx-v2019.1+git999-r0 do_compile: oe_runmake failed
ERROR: linux-xlnx-4.19-xilinx-v2019.1+git999-r0 do_compile: Function failed: do_compile (log file is located at /home/kmor/petalinux/2019.1/CentOS8_Trial_v1.1/build/tmp/work/zcu102_zynqmp-xilinx-linux/linux-xlnx/4.19-xilinx-v2019.1+git999-r0/temp/log.do_compile.24865)
ERROR: Logfile of failure stored in: /home/kmor/petalinux/2019.1/CentOS8_Trial_v1.1/build/tmp/work/zcu102_zynqmp-xilinx-linux/linux-xlnx/4.19-xilinx-v2019.1+git999-r0/temp/log.do_compile.24865

--sysroot=/home/kmor/petalinux/2019.1/CentOS8_Trial_v1.1/build/tmp/work/zcu102_zynqmp-xilinx-linux/linux-xlnx/4.19-xilinx-v2019.1+git999-r0/recipe-sysroot
| GEN ./Makefile
| Using /home/kmor/petalinux/2019.1/CentOS8_Trial_v1.1/components/ext_sources/linux-4.18.0-80.el8 as source for kernel
| CALL /home/kmor/petalinux/2019.1/CentOS8_Trial_v1.1/components/ext_sources/linux-4.18.0-80.el8/scripts/checksyscalls.sh
| <stdin>:1335:2: warning: #warning syscall rseq not implemented [-Wcpp]
| CHK include/generated/compile.h
| CC arch/arm64/kernel/sys32.o
| /home/kmor/petalinux/2019.1/CentOS8_Trial_v1.1/components/ext_sources/linux-4.18.0-80.el8/arch/arm64/kernel/sys32.c: In function '__do_compat_sys_aarch32_statfs64':
| /home/kmor/petalinux/2019.1/CentOS8_Trial_v1.1/components/ext_sources/linux-4.18.0-80.el8/arch/arm64/kernel/sys32.c:49:9: error: implicit declaration of function 'kcompat_sys_statfs64'; did you mean 'compat_sys_sigreturn'? [-Werror=implicit-function-declaration]
| return kcompat_sys_statfs64(pathname, sz, buf);
| ^~~~~~~~~~~~~~~~~~~~
| compat_sys_sigreturn
| /home/kmor/petalinux/2019.1/CentOS8_Trial_v1.1/components/ext_sources/linux-4.18.0-80.el8/arch/arm64/kernel/sys32.c: In function '__do_compat_sys_aarch32_fstatfs64':
| /home/kmor/petalinux/2019.1/CentOS8_Trial_v1.1/components/ext_sources/linux-4.18.0-80.el8/arch/arm64/kernel/sys32.c:59:9: error: implicit declaration of function 'kcompat_sys_fstatfs64'; did you mean 'compat_sys_sigreturn'? [-Werror=implicit-function-declaration]
| return kcompat_sys_fstatfs64(fd, sz, buf);
| ^~~~~~~~~~~~~~~~~~~~~
| compat_sys_sigreturn
| cc1: some warnings being treated as errors
| CC security/keys/gc.o
| make[3]: *** [/home/kmor/petalinux/2019.1/CentOS8_Trial_v1.1/components/ext_sources/linux-4.18.0-80.el8/scripts/Makefile.build:315: arch/arm64/kernel/sys32.o] Error 1
| make[2]: *** [/home/kmor/petalinux/2019.1/CentOS8_Trial_v1.1/components/ext_sources/linux-4.18.0-80.el8/Makefile:1051: arch/arm64/kernel] Error 2
| make[2]: *** Waiting for unfinished jobs....

| make[2]: *** Waiting for unfinished jobs....
| CC security/keys/key.o
| CC security/keys/keyring.o
| CC security/commoncap.o
| CC security/keys/keyctl.o
| CC security/keys/permission.o
| CC security/min_addr.o
| CC security/lsm_audit.o
| CC security/keys/process_keys.o
| CC security/keys/request_key.o
| CC security/keys/request_key_auth.o
| CC security/keys/user_defined.o
| CC security/keys/compat.o
| CC security/keys/proc.o
| CC security/keys/sysctl.o
| AR security/keys/built-in.a
| AR security/built-in.a
| make[1]: *** [Makefile:150: sub-make] Error 2
| make: *** [Makefile:24: __sub-make] Error 2
| ERROR: oe_runmake failed
| WARNING: /home/kmor/petalinux/2019.1/CentOS8_Trial_v1.1/build/tmp/work/zcu102_zynqmp-xilinx-linux/linux-xlnx/4.19-xilinx-v2019.1+git999-r0/temp/run.do_compile.24865:1 exit 1 from 'exit 1'
| ERROR: Function failed: do_compile (log file is located at /home/kmor/petalinux/2019.1/CentOS8_Trial_v1.1/build/tmp/work/zcu102_zynqmp-xilinx-linux/linux-xlnx/4.19-xilinx-v2019.1+git999-r0/temp/log.do_compile.24865)
ERROR: Task (/home/kmor/petalinux/2019.1/components/yocto/source/aarch64/layers/meta-xilinx/meta-xilinx-bsp/recipes-kernel/linux/linux-xlnx_2019.1.bb:do_compile) failed with exit code '1'

I am very close to source code compilation and I am willing to share a fully working version with everyone here. Please help me out.

Regards,

Keyshav

I have attached the log file for your reference.

0 Kudos