tree: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git linux-5.4.y head: 6201d69ba49e810a10a557a4f41fd95c55a61983 commit: 735e7a12a639c6c196ac1acf41f024f84281e491 [1325/3645] lib/ubsan: don't serialize UBSAN report config: riscv-randconfig-a001-20200309 (attached as .config) compiler: riscv64-linux-gcc (GCC) 9.2.0 reproduce: wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross git checkout 735e7a12a639c6c196ac1acf41f024f84281e491 # save the attached .config to linux build tree GCC_VERSION=9.2.0 make.cross ARCH=riscv If you fix the issue, kindly add following tag Reported-by: kbuild test robot <lkp@xxxxxxxxx> All errors (new ones prefixed by >>): riscv64-linux-ld: lib/ubsan.o: in function `get_signed_val': >> lib/ubsan.c:88: undefined reference to `__ashlti3' >> riscv64-linux-ld: lib/ubsan.c:92: undefined reference to `__ashrti3' vim +88 lib/ubsan.c c6d308534aef6c Andrey Ryabinin 2016-01-20 85 f0996bc2978e02 Andrey Ryabinin 2019-05-06 86 static s_max get_signed_val(struct type_descriptor *type, void *val) c6d308534aef6c Andrey Ryabinin 2016-01-20 87 { c6d308534aef6c Andrey Ryabinin 2016-01-20 @88 if (is_inline_int(type)) { c6d308534aef6c Andrey Ryabinin 2016-01-20 89 unsigned extra_bits = sizeof(s_max)*8 - type_bit_width(type); f0996bc2978e02 Andrey Ryabinin 2019-05-06 90 unsigned long ulong_val = (unsigned long)val; f0996bc2978e02 Andrey Ryabinin 2019-05-06 91 f0996bc2978e02 Andrey Ryabinin 2019-05-06 @92 return ((s_max)ulong_val) << extra_bits >> extra_bits; c6d308534aef6c Andrey Ryabinin 2016-01-20 93 } c6d308534aef6c Andrey Ryabinin 2016-01-20 94 c6d308534aef6c Andrey Ryabinin 2016-01-20 95 if (type_bit_width(type) == 64) c6d308534aef6c Andrey Ryabinin 2016-01-20 96 return *(s64 *)val; c6d308534aef6c Andrey Ryabinin 2016-01-20 97 c6d308534aef6c Andrey Ryabinin 2016-01-20 98 return *(s_max *)val; c6d308534aef6c Andrey Ryabinin 2016-01-20 99 } c6d308534aef6c Andrey Ryabinin 2016-01-20 100 :::::: The code at line 88 was first introduced by commit :::::: c6d308534aef6c99904bf5862066360ae067abc4 UBSAN: run-time undefined behavior sanity checker :::::: TO: Andrey Ryabinin <aryabinin@xxxxxxxxxxxxx> :::::: CC: Linus Torvalds <torvalds@xxxxxxxxxxxxxxxxxxxx> --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx
Attachment:
.config.gz
Description: application/gzip