All of lore.kernel.org
 help / color / mirror / Atom feed
* [linux-stable-rc:linux-5.4.y 1325/3645] lib/ubsan.c:88: undefined reference to `__ashlti3'
@ 2020-03-10  9:01 ` kbuild test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kbuild test robot @ 2020-03-10  9:01 UTC (permalink / raw)
  To: Julien Grall
  Cc: kbuild-all, Greg Kroah-Hartman, Andrew Morton,
	Linux Memory Management List, Sasha Levin

[-- Attachment #1: Type: text/plain, Size: 2518 bytes --]

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@intel.com>

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@virtuozzo.com>
:::::: CC: Linus Torvalds <torvalds@linux-foundation.org>

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

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 26328 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [linux-stable-rc:linux-5.4.y 1325/3645] lib/ubsan.c:88: undefined reference to `__ashlti3'
@ 2020-03-10  9:01 ` kbuild test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kbuild test robot @ 2020-03-10  9:01 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 2569 bytes --]

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@intel.com>

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@virtuozzo.com>
:::::: CC: Linus Torvalds <torvalds@linux-foundation.org>

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

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 26328 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-03-10  9:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-10  9:01 [linux-stable-rc:linux-5.4.y 1325/3645] lib/ubsan.c:88: undefined reference to `__ashlti3' kbuild test robot
2020-03-10  9:01 ` kbuild test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.