[jolsa-perf:bpf/tramp_11 16/21] ld.lld: error: undefined symbol: btf_obj_id

From: kernel test robot
Date: Thu Jun 23 2022 - 15:25:06 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/jolsa/perf.git bpf/tramp_11
head: c807110aa605281263da02a78af57847f5c4275e
commit: 314f5bc24b05d05202084c23723269fe449b067b [16/21] bpf: Add bpf_tramp_id object
config: i386-randconfig-a006 (https://download.01.org/0day-ci/archive/20220624/202206240253.PHH3073a-lkp@xxxxxxxxx/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project 46be5faaf03466c3751f8a2882bef5a217e15926)
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/jolsa/perf.git/commit/?id=314f5bc24b05d05202084c23723269fe449b067b
git remote add jolsa-perf https://git.kernel.org/pub/scm/linux/kernel/git/jolsa/perf.git
git fetch --no-tags jolsa-perf bpf/tramp_11
git checkout 314f5bc24b05d05202084c23723269fe449b067b
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=i386 SHELL=/bin/bash

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

All errors (new ones prefixed by >>):

>> ld.lld: error: undefined symbol: btf_obj_id
>>> referenced by trampoline.c:98 (kernel/bpf/trampoline.c:98)
>>> vmlinux.o:(bpf_tramp_id_init)

--
0-DAY CI Kernel Test Service
https://01.org/lkp