[mark:linkage/alias-rework 3/5] string.c:(.text+0x9b0): multiple definition of `strchr'; arch/arm64/lib/strchr.o:(.text+0x0): first defined here

From: kernel test robot
Date: Sat Dec 04 2021 - 07:03:53 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/mark/linux.git linkage/alias-rework
head: 237447148f41ca99a7b980037060b7a6f3afe535
commit: 5b1a122bc457e6f09d2bf79a8902d859447e105f [3/5] WIP: arm64: remove SYM_FUNC_*_PI()
config: arm64-randconfig-r036-20211203 (https://download.01.org/0day-ci/archive/20211204/202112041951.birTgnqD-lkp@xxxxxxxxx/config)
compiler: aarch64-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://git.kernel.org/pub/scm/linux/kernel/git/mark/linux.git/commit/?id=5b1a122bc457e6f09d2bf79a8902d859447e105f
git remote add mark https://git.kernel.org/pub/scm/linux/kernel/git/mark/linux.git
git fetch --no-tags mark linkage/alias-rework
git checkout 5b1a122bc457e6f09d2bf79a8902d859447e105f
# 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=arm64 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 >>):

aarch64-linux-ld: lib/string.o: in function `strchr':
>> string.c:(.text+0x9b0): multiple definition of `strchr'; arch/arm64/lib/strchr.o:(.text+0x0): first defined here

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx