Error: failed to load BTF from /kbuild/obj/consumer/x86_64-rhel-8.3-kselftests/vmlinux: Invalid argument

From: kernel test robot
Date: Mon Dec 20 2021 - 12:02:36 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: a7904a538933c525096ca2ccde1e60d0ee62c08e
commit: db16c1fe92d7ba7d39061faef897842baee2c887 bpf: Generate BTF_KIND_FLOAT when linking vmlinux
date: 8 months ago
config: x86_64-rhel-8.3-kselftests (https://download.01.org/0day-ci/archive/20211221/202112210104.lQLxELOy-lkp@xxxxxxxxx/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=db16c1fe92d7ba7d39061faef897842baee2c887
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout db16c1fe92d7ba7d39061faef897842baee2c887
# save the config file to linux build tree
make W=1 ARCH=x86_64 SHELL=/bin/bash tools/all

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

All errors (new ones prefixed by >>):

>> Error: failed to load BTF from /kbuild/obj/consumer/x86_64-rhel-8.3-kselftests/vmlinux: Invalid argument
make[5]: *** [Makefile:140: /kbuild/worktree/build-ktools-consumer/tools/bpf/runqslower/.output/vmlinux.h] Error 22
make[4]: *** [Makefile:84: .output/sbin/bpftool] Error 2
make[3]: *** [Makefile:119: runqslower] Error 2
make[3]: *** Waiting for unfinished jobs....
>> Error: failed to load BTF from /kbuild/obj/consumer/x86_64-rhel-8.3-kselftests/vmlinux: Invalid argument
make[4]: *** [Makefile:140: /kbuild/obj/consumer/x86_64-rhel-8.3-kselftests/tools/bpf/bpftool/vmlinux.h] Error 22
make[3]: *** [Makefile:110: bpftool] Error 2

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