[csky-linux:riscv_compat_v12 20/20] riscv64-linux-ld: arch/riscv/kernel/compat_syscall_table.o:undefined reference to `compat_sys_fadvise64_64'
From: kernel test robot
Date: Wed Apr 06 2022 - 01:57:14 EST
tree: https://github.com/c-sky/csky-linux riscv_compat_v12
head: 55a9982536831dca39b4334923e5446e870cdfaf
commit: 55a9982536831dca39b4334923e5446e870cdfaf [20/20] riscv: compat: Add COMPAT Kbuild skeletal support
config: riscv-randconfig-c004-20220405 (https://download.01.org/0day-ci/archive/20220406/202204060829.hZRXlFGY-lkp@xxxxxxxxx/config)
compiler: riscv64-linux-gcc (GCC) 11.2.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/c-sky/csky-linux/commit/55a9982536831dca39b4334923e5446e870cdfaf
git remote add csky-linux https://github.com/c-sky/csky-linux
git fetch --no-tags csky-linux riscv_compat_v12
git checkout 55a9982536831dca39b4334923e5446e870cdfaf
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=riscv SHELL=/bin/bash
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>
All errors (new ones prefixed by >>):
>> riscv64-linux-ld: arch/riscv/kernel/compat_syscall_table.o:(.rodata+0x6f8): undefined reference to `compat_sys_fadvise64_64'
pahole: .tmp_vmlinux.btf: No such file or directory
.btf.vmlinux.bin.o: file not recognized: file format not recognized
--
0-DAY CI Kernel Test Service
https://01.org/lkp