[peterz-queue:x86/fineibt 3/4] ld.lld: error: undefined symbol: ftrace_stub_graph
From: kernel test robot
Date: Fri Jul 29 2022 - 22:03:23 EST
tree: https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git x86/fineibt
head: 365543b24a9e31c0c89457717391cdb819cc5501
commit: 311ed6d0d57a551f834efd610dc8b14867012a68 [3/4] ftrace,kcfi: Separate ftrace_stub() and ftrace_stub_graph()
config: i386-randconfig-a013 (https://download.01.org/0day-ci/archive/20220730/202207300957.x0WDB02K-lkp@xxxxxxxxx/config)
compiler: clang version 16.0.0 (https://github.com/llvm/llvm-project 52cd00cabf479aa7eb6dbb063b7ba41ea57bce9e)
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/peterz/queue.git/commit/?id=311ed6d0d57a551f834efd610dc8b14867012a68
git remote add peterz-queue https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git
git fetch --no-tags peterz-queue x86/fineibt
git checkout 311ed6d0d57a551f834efd610dc8b14867012a68
# 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: ftrace_stub_graph
>>> referenced by fgraph.c
>>> trace/fgraph.o:(unregister_ftrace_graph) in archive kernel/built-in.a
>>> referenced by fgraph.c
>>> trace/fgraph.o:(ftrace_graph_return) in archive kernel/built-in.a
--
0-DAY CI Kernel Test Service
https://01.org/lkp