Error: failed to link '/no_alu32/linked_vars1.o': Unknown error -2 (-2)

From: kernel test robot
Date: Wed Jun 23 2021 - 09:30:32 EST


Hi Andrii,

First bad commit (maybe != root cause):

tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 0c18f29aae7ce3dadd26d8ee3505d07cc982df75
commit: 14f1aae17ee13d08315873d4b68d573e91df892f selftests/bpf: Add global variables linking selftest
date: 9 weeks ago
config: x86_64-rhel-8.3-kselftests (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=14f1aae17ee13d08315873d4b68d573e91df892f
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 14f1aae17ee13d08315873d4b68d573e91df892f
# save the attached .config to linux build tree
make W=1 ARCH=x86_64

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

All errors (new ones prefixed by >>):

libbpf: failed to find BTF info for global/extern symbol 'input_rodata_weak'
>> Error: failed to link '/no_alu32/linked_vars1.o': Unknown error -2 (-2)

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

Attachment: .config.gz
Description: application/gzip