[linux-stable-rc:linux-5.4.y 1325/4536] lib/ubsan.c:422: undefined reference to `__ashrti3'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Julien,

FYI, the error/warning still remains.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git linux-5.4.y
head:   6ccc74c083c0d472ac64f3733f5b7bf3f99f261e
commit: 735e7a12a639c6c196ac1acf41f024f84281e491 [1325/4536] lib/ubsan: don't serialize UBSAN report
config: riscv-randconfig-a001-20200421 (attached as .config)
compiler: riscv64-linux-gcc (GCC) 9.3.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
        COMPILER_INSTALL_PATH=$HOME/0day GCC_VERSION=9.3.0 make.cross ARCH=riscv 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp@xxxxxxxxx>

All errors (new ones prefixed by >>):

   riscv64-linux-ld: lib/ubsan.o: in function `test_and_set_bit':
>> arch/riscv/include/asm/bitops.h:74: undefined reference to `__ashlti3'
   riscv64-linux-ld: lib/ubsan.o: in function `get_signed_val':
>> lib/ubsan.c:422: undefined reference to `__ashrti3'

vim +422 lib/ubsan.c

c6d308534aef6c Andrey Ryabinin 2016-01-20  405  
c6d308534aef6c Andrey Ryabinin 2016-01-20  406  void __ubsan_handle_load_invalid_value(struct invalid_value_data *data,
f0996bc2978e02 Andrey Ryabinin 2019-05-06  407  				void *val)
c6d308534aef6c Andrey Ryabinin 2016-01-20  408  {
c6d308534aef6c Andrey Ryabinin 2016-01-20  409  	char val_str[VALUE_LENGTH];
c6d308534aef6c Andrey Ryabinin 2016-01-20  410  
c6d308534aef6c Andrey Ryabinin 2016-01-20  411  	if (suppress_report(&data->location))
c6d308534aef6c Andrey Ryabinin 2016-01-20  412  		return;
c6d308534aef6c Andrey Ryabinin 2016-01-20  413  
735e7a12a639c6 Julien Grall    2019-12-04  414  	ubsan_prologue(&data->location);
c6d308534aef6c Andrey Ryabinin 2016-01-20  415  
c6d308534aef6c Andrey Ryabinin 2016-01-20  416  	val_to_string(val_str, sizeof(val_str), data->type, val);
c6d308534aef6c Andrey Ryabinin 2016-01-20  417  
c6d308534aef6c Andrey Ryabinin 2016-01-20  418  	pr_err("load of value %s is not a valid value for type %s\n",
c6d308534aef6c Andrey Ryabinin 2016-01-20  419  		val_str, data->type->type_name);
c6d308534aef6c Andrey Ryabinin 2016-01-20  420  
735e7a12a639c6 Julien Grall    2019-12-04  421  	ubsan_epilogue();
c6d308534aef6c Andrey Ryabinin 2016-01-20 @422  }

:::::: The code at line 422 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


[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux