[esmil:visionfive 1/42] string.c:undefined reference to `_mcount'

From: kernel test robot
Date: Tue Sep 13 2022 - 06:57:14 EST


tree: https://github.com/esmil/linux visionfive
head: 044c1f5e968de7d30940431fbb90da599074ea1c
commit: c247f6e6c7ba6abb92177ba2a742f60a3244d6d2 [1/42] riscv: optimized memcpy
config: riscv-randconfig-c023-20220911 (https://download.01.org/0day-ci/archive/20220913/202209131806.Fx9g1fDl-lkp@xxxxxxxxx/config)
compiler: riscv64-linux-gcc (GCC) 12.1.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/esmil/linux/commit/c247f6e6c7ba6abb92177ba2a742f60a3244d6d2
git remote add esmil https://github.com/esmil/linux
git fetch --no-tags esmil visionfive
git checkout c247f6e6c7ba6abb92177ba2a742f60a3244d6d2
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=riscv SHELL=/bin/bash

If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@xxxxxxxxx>

All errors (new ones prefixed by >>):

riscv64-linux-ld: arch/riscv/purgatory/purgatory.ro: in function `.L247':
>> string.c:(.text+0x2240): undefined reference to `_mcount'

Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for DRM_TTM
Depends on [n]: HAS_IOMEM [=y] && DRM [=y] && MMU [=n]
Selected by [y]:
- DRM_TTM_HELPER [=y] && HAS_IOMEM [=y] && DRM [=y]
- DRM_HISI_HIBMC [=y] && HAS_IOMEM [=y] && DRM [=y] && PCI [=y] && (ARM64 || COMPILE_TEST [=y])

--
0-DAY CI Kernel Test Service
https://01.org/lkp