nios2-linux-ld: blake2s.c:undefined reference to `blake2s_compress'

From: kernel test robot
Date: Mon Dec 27 2021 - 11:57:37 EST


tree: https://github.com/0day-ci/linux/commits/UPDATE-20211227-222159/Jason-A-Donenfeld/lib-crypto-blake2s-include-as-built-in/20211223-221318
head: cf9c5e5cba1ba852d4c4482fef47ecd0842b645b
commit: 2607be0046b083ed690e8176d93f8c8f52676224 lib/crypto: blake2s: include as built-in
date: 2 hours ago
config: nios2-defconfig (https://download.01.org/0day-ci/archive/20211228/202112280006.qBjwc9v6-lkp@xxxxxxxxx/config)
compiler: nios2-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/0day-ci/linux/commit/2607be0046b083ed690e8176d93f8c8f52676224
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review UPDATE-20211227-222159/Jason-A-Donenfeld/lib-crypto-blake2s-include-as-built-in/20211223-221318
git checkout 2607be0046b083ed690e8176d93f8c8f52676224
# 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=nios2 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 >>):

nios2-linux-ld: lib/crypto/blake2s.o: in function `blake2s_final':
blake2s.c:(.text+0x50): undefined reference to `blake2s_compress'
blake2s.c:(.text+0x50): relocation truncated to fit: R_NIOS2_CALL26 against `blake2s_compress'
nios2-linux-ld: lib/crypto/blake2s.o: in function `blake2s_update':
blake2s.c:(.text+0x13c): undefined reference to `blake2s_compress'
blake2s.c:(.text+0x13c): relocation truncated to fit: R_NIOS2_CALL26 against `blake2s_compress'
>> nios2-linux-ld: blake2s.c:(.text+0x16c): undefined reference to `blake2s_compress'
blake2s.c:(.text+0x16c): relocation truncated to fit: R_NIOS2_CALL26 against `blake2s_compress'
nios2-linux-ld: lib/crypto/blake2s.o: in function `blake2s256_hmac':
blake2s.c:(.text+0x284): undefined reference to `blake2s_compress'
blake2s.c:(.text+0x284): relocation truncated to fit: R_NIOS2_CALL26 against `blake2s_compress'
nios2-linux-ld: blake2s.c:(.text+0x534): undefined reference to `blake2s_compress'
blake2s.c:(.text+0x534): relocation truncated to fit: R_NIOS2_CALL26 against `blake2s_compress'
nios2-linux-ld: lib/crypto/blake2s.o:blake2s.c:(.text+0x564): more undefined references to `blake2s_compress' follow
lib/crypto/blake2s.o: in function `blake2s256_hmac':
blake2s.c:(.text+0x564): relocation truncated to fit: R_NIOS2_CALL26 against `blake2s_compress'
blake2s.c:(.text+0x5a8): relocation truncated to fit: R_NIOS2_CALL26 against `blake2s_compress'
blake2s.c:(.text+0x5e0): relocation truncated to fit: R_NIOS2_CALL26 against `blake2s_compress'
blake2s.c:(.text+0x614): relocation truncated to fit: R_NIOS2_CALL26 against `blake2s_compress'

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