decompress.c:undefined reference to `__bswapdi2'

From: kernel test robot
Date: Tue Nov 09 2021 - 10:07:51 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: d2f38a3c6507b2520101f9a3807ed98f1bdc545a
commit: 0652035a57945e14e611dafae2ec5b46a05bc1d1 asm-generic: unaligned: remove byteshift helpers
date: 6 months ago
config: mips-randconfig-r015-20211010 (attached as .config)
compiler: mips-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/torvalds/linux.git/commit/?id=0652035a57945e14e611dafae2ec5b46a05bc1d1
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 0652035a57945e14e611dafae2ec5b46a05bc1d1
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=mips 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 >>):

mips-linux-ld: arch/mips/boot/compressed/decompress.o: in function `HUF_decompress1X2_usingDTable_internal':
decompress.c:(.text+0x6c8): undefined reference to `__bswapsi2'
mips-linux-ld: decompress.c:(.text+0x740): undefined reference to `__bswapsi2'
mips-linux-ld: decompress.c:(.text+0x798): undefined reference to `__bswapsi2'
mips-linux-ld: decompress.c:(.text+0x8bc): undefined reference to `__bswapsi2'
mips-linux-ld: decompress.c:(.text+0x944): undefined reference to `__bswapsi2'
mips-linux-ld: arch/mips/boot/compressed/decompress.o:decompress.c:(.text+0x9ac): more undefined references to `__bswapsi2' follow
mips-linux-ld: arch/mips/boot/compressed/decompress.o: in function `xxh64':
>> decompress.c:(.text+0x49dc): undefined reference to `__bswapdi2'
>> mips-linux-ld: decompress.c:(.text+0x4a74): undefined reference to `__bswapdi2'
mips-linux-ld: decompress.c:(.text+0x4b00): undefined reference to `__bswapdi2'
mips-linux-ld: decompress.c:(.text+0x4b88): undefined reference to `__bswapdi2'
mips-linux-ld: decompress.c:(.text+0x4fcc): undefined reference to `__bswapdi2'
mips-linux-ld: decompress.c:(.text+0x509c): undefined reference to `__bswapsi2'
mips-linux-ld: arch/mips/boot/compressed/decompress.o: in function `xxh32_update':
decompress.c:(.text+0x5534): undefined reference to `__bswapsi2'
mips-linux-ld: decompress.c:(.text+0x5558): undefined reference to `__bswapsi2'
mips-linux-ld: decompress.c:(.text+0x557c): undefined reference to `__bswapsi2'
mips-linux-ld: decompress.c:(.text+0x55a0): undefined reference to `__bswapsi2'
mips-linux-ld: arch/mips/boot/compressed/decompress.o:decompress.c:(.text+0x5670): more undefined references to `__bswapsi2' follow
mips-linux-ld: arch/mips/boot/compressed/decompress.o: in function `xxh64_update':
decompress.c:(.text+0x5a60): undefined reference to `__bswapdi2'
mips-linux-ld: decompress.c:(.text+0x5adc): undefined reference to `__bswapdi2'
mips-linux-ld: decompress.c:(.text+0x5b54): undefined reference to `__bswapdi2'
mips-linux-ld: decompress.c:(.text+0x5bdc): undefined reference to `__bswapdi2'
mips-linux-ld: decompress.c:(.text+0x5d34): undefined reference to `__bswapdi2'
mips-linux-ld: arch/mips/boot/compressed/decompress.o:decompress.c:(.text+0x5dd8): more undefined references to `__bswapdi2' follow
mips-linux-ld: arch/mips/boot/compressed/decompress.o: in function `xxh64_digest':
decompress.c:(.text+0x6190): undefined reference to `__bswapsi2'
mips-linux-ld: arch/mips/boot/compressed/decompress.o: in function `FSE_readNCount':
decompress.c:(.text+0x66d4): undefined reference to `__bswapsi2'
mips-linux-ld: decompress.c:(.text+0x67d4): undefined reference to `__bswapsi2'
mips-linux-ld: decompress.c:(.text+0x6868): undefined reference to `__bswapsi2'
mips-linux-ld: decompress.c:(.text+0x6954): undefined reference to `__bswapsi2'
mips-linux-ld: arch/mips/boot/compressed/decompress.o:decompress.c:(.text+0x69dc): more undefined references to `__bswapsi2' follow
mips-linux-ld: arch/mips/boot/compressed/decompress.o: in function `ZSTD_getFrameParams':
decompress.c:(.text+0x9c9c): undefined reference to `__bswapdi2'
mips-linux-ld: decompress.c:(.text+0x9cb8): undefined reference to `__bswapsi2'
mips-linux-ld: arch/mips/boot/compressed/decompress.o: in function `ZSTD_decodeLiteralsBlock':
decompress.c:(.text+0xa018): undefined reference to `__bswapsi2'
mips-linux-ld: arch/mips/boot/compressed/decompress.o: in function `ZSTD_decompressSequences':
decompress.c:(.text+0xa704): undefined reference to `__bswapsi2'
mips-linux-ld: decompress.c:(.text+0xa7a4): undefined reference to `__bswapsi2'
mips-linux-ld: decompress.c:(.text+0xa838): undefined reference to `__bswapsi2'
mips-linux-ld: arch/mips/boot/compressed/decompress.o:decompress.c:(.text+0xa8cc): more undefined references to `__bswapsi2' follow

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

Attachment: .config.gz
Description: application/gzip