tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: 6d9bd4ad4ca08b1114e814c2c42383b8b13be631 commit: 3a1a8f078670c24a1c0c7fef172ea5c0e2385b61 [3877/5417] powerpc/ftrace: Remove ftrace_32.S config: powerpc64-randconfig-r005-20220211 (https://download.01.org/0day-ci/archive/20220212/202202120046.84Ueq6fk-lkp@xxxxxxxxx/config) compiler: powerpc64-linux-gcc (GCC) 11.2.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/next/linux-next.git/commit/?id=3a1a8f078670c24a1c0c7fef172ea5c0e2385b61 git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git git fetch --no-tags linux-next master git checkout 3a1a8f078670c24a1c0c7fef172ea5c0e2385b61 # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=powerpc SHELL=/bin/bash If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot <lkp@xxxxxxxxx> All errors (new ones prefixed by >>): powerpc64-linux-ld: warning: discarding dynamic section .glink powerpc64-linux-ld: warning: discarding dynamic section .plt powerpc64-linux-ld: linkage table error against `_mcount' powerpc64-linux-ld: stubs don't match calculated size powerpc64-linux-ld: can not build stubs: bad value powerpc64-linux-ld: init/main.o: in function `.__traceiter_initcall_level': (.text+0x40): undefined reference to `._mcount' powerpc64-linux-ld: init/main.o: in function `.__traceiter_initcall_start': (.text+0xd4): undefined reference to `._mcount' powerpc64-linux-ld: init/main.o: in function `.__traceiter_initcall_finish': (.text+0x164): undefined reference to `._mcount' powerpc64-linux-ld: init/main.o: in function `.trace_initcall_finish_cb': main.c:(.text+0x200): undefined reference to `._mcount' powerpc64-linux-ld: init/main.o: in function `.initcall_blacklisted': main.c:(.text+0x744): undefined reference to `._mcount' powerpc64-linux-ld: init/main.o:(.text+0xdac): more undefined references to `._mcount' follow powerpc64-linux-ld: arch/powerpc/kernel/trace/ftrace.o:(.toc+0x0): undefined reference to `_mcount' powerpc64-linux-ld: arch/powerpc/kernel/trace/ftrace.o:(.toc+0x8): undefined reference to `ftrace_tramp_text' powerpc64-linux-ld: arch/powerpc/kernel/trace/ftrace.o:(.toc+0x10): undefined reference to `ftrace_tramp_init' powerpc64-linux-ld: arch/powerpc/kernel/epapr_paravirt.o: in function `.epapr_idle_init': >> epapr_paravirt.c:(.init.text+0xc): undefined reference to `._mcount' powerpc64-linux-ld: arch/powerpc/kernel/epapr_paravirt.o: in function `.early_init_dt_scan_epapr': epapr_paravirt.c:(.init.text+0x38): undefined reference to `._mcount' powerpc64-linux-ld: arch/powerpc/kernel/epapr_paravirt.o: in function `.epapr_paravirt_early_init': epapr_paravirt.c:(.init.text+0x148): undefined reference to `._mcount' powerpc64-linux-ld: arch/powerpc/kernel/kvm.o: in function `.kvm_map_magic_page': >> kvm.c:(.init.text+0x14): undefined reference to `._mcount' powerpc64-linux-ld: arch/powerpc/kernel/kvm.o: in function `.kvm_alloc': kvm.c:(.init.text+0xa0): undefined reference to `._mcount' powerpc64-linux-ld: arch/powerpc/kernel/kvm.o:kvm.c:(.init.text+0x14c): more undefined references to `._mcount' follow powerpc64-linux-ld: kernel/trace/ftrace.o:(.toc+0x0): undefined reference to `_mcount' powerpc64-linux-ld: kernel/bpf/core.o: in function `.__bpf_call_base': (.text+0xc): undefined reference to `._mcount' powerpc64-linux-ld: kernel/bpf/core.o: in function `.__bpf_prog_ret1': core.c:(.text+0x34): undefined reference to `._mcount' powerpc64-linux-ld: kernel/bpf/core.o: in function `.bpf_event_output': (.text+0x5c): undefined reference to `._mcount' powerpc64-linux-ld: kernel/bpf/core.o: in function `.bpf_adj_delta_to_imm': core.c:(.text+0x9c): undefined reference to `._mcount' powerpc64-linux-ld: kernel/bpf/core.o: in function `.bpf_adj_delta_to_off': core.c:(.text+0x1c0): undefined reference to `._mcount' powerpc64-linux-ld: kernel/bpf/core.o:core.c:(.text+0x2e8): more undefined references to `._mcount' follow --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx