Messages in this thread | | | Date | Wed, 19 Jan 2022 15:20:25 +0800 | From | kernel test robot <> | Subject | [esmil:visionfive 21/80] string.c:(.text+0x1184): multiple definition of `memset'; mm/kasan/shadow.o:shadow.c:(.text+0xfc): first defined here |
| |
tree: https://github.com/esmil/linux visionfive head: e46c3a7e373e6faa03399f1a41c29cf7546c37cb commit: 55f013c0bc3e224cf34271c3cc11f7443b11553f [21/80] riscv: optimized memset config: riscv-randconfig-r042-20220119 (https://download.01.org/0day-ci/archive/20220119/202201191551.ZXYUjRiZ-lkp@intel.com/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/esmil/linux/commit/55f013c0bc3e224cf34271c3cc11f7443b11553f git remote add esmil https://github.com/esmil/linux git fetch --no-tags esmil visionfive git checkout 55f013c0bc3e224cf34271c3cc11f7443b11553f # 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@intel.com>
All error/warnings (new ones prefixed by >>):
riscv64-linux-ld: lib/string.o: in function `memset': >> string.c:(.text+0x1184): multiple definition of `memset'; mm/kasan/shadow.o:shadow.c:(.text+0xfc): first defined here riscv64-linux-ld: lib/string.o: in function `memcpy': string.c:(.text+0x1414): multiple definition of `memcpy'; mm/kasan/shadow.o:shadow.c:(.text+0x174): first defined here -- >> mm/kasan/shadow.c:42:7: warning: no previous prototype for 'memset' [-Wmissing-prototypes] 42 | void *memset(void *addr, int c, size_t len) | ^~~~~~ mm/kasan/shadow.c:63:7: warning: no previous prototype for 'memcpy' [-Wmissing-prototypes] 63 | void *memcpy(void *dest, const void *src, size_t len) | ^~~~~~
--- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
| |