[arm-platforms:kvm-arm64/pkvm-flags 103/103] stacktrace.c:undefined reference to `kvm_arm_hyp_stacktrace_page'

kernel test robot lkp at intel.com
Tue Jun 21 23:16:11 PDT 2022


tree:   https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git kvm-arm64/pkvm-flags
head:   04afeb466c4c982055b9d859b85133893d3f97b2
commit: 04afeb466c4c982055b9d859b85133893d3f97b2 [103/103] KVM: arm64: Unwind and dump nVHE hypervisor stacktrace
config: arm64-buildonly-randconfig-r001-20220622 (https://download.01.org/0day-ci/archive/20220622/202206221407.nRmt6OQM-lkp@intel.com/config)
compiler: aarch64-linux-gcc (GCC) 11.3.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://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git/commit/?id=04afeb466c4c982055b9d859b85133893d3f97b2
        git remote add arm-platforms https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git
        git fetch --no-tags arm-platforms kvm-arm64/pkvm-flags
        git checkout 04afeb466c4c982055b9d859b85133893d3f97b2
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.3.0 make.cross W=1 O=build_dir ARCH=arm64 SHELL=/bin/bash

If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp at intel.com>

All errors (new ones prefixed by >>):

   aarch64-linux-ld: arch/arm64/kernel/stacktrace.o: in function `hyp_dump_backtrace':
>> stacktrace.c:(.text+0x3a0): undefined reference to `kvm_arm_hyp_stacktrace_page'
   aarch64-linux-ld: arch/arm64/kernel/stacktrace.o: relocation R_AARCH64_ADR_PREL_PG_HI21 against symbol `kvm_arm_hyp_stacktrace_page' which may bind externally can not be used when making a shared object; recompile with -fPIC
   stacktrace.c:(.text+0x3a0): dangerous relocation: unsupported relocation
>> aarch64-linux-ld: stacktrace.c:(.text+0x3a4): undefined reference to `kvm_arm_hyp_stacktrace_page'

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



More information about the linux-arm-kernel mailing list