[ammarfaizi2-block:powerpc/linux/next-test 41/56] powerpc64-linux-ld: arch/powerpc/kernel/trace/ftrace.o:undefined reference to `_mcount'

From: kernel test robot
Date: Thu Feb 10 2022 - 18:11:22 EST


tree: https://github.com/ammarfaizi2/linux-block powerpc/linux/next-test
head: 14cc509e7b686ce5db7175d0fb084cacae046d96
commit: 3a1a8f078670c24a1c0c7fef172ea5c0e2385b61 [41/56] powerpc/ftrace: Remove ftrace_32.S
config: powerpc64-randconfig-r012-20220210 (https://download.01.org/0day-ci/archive/20220211/202202110717.hZrWu55Z-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://github.com/ammarfaizi2/linux-block/commit/3a1a8f078670c24a1c0c7fef172ea5c0e2385b61
git remote add ammarfaizi2-block https://github.com/ammarfaizi2/linux-block
git fetch --no-tags ammarfaizi2-block powerpc/linux/next-test
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: orphan section `.stubs' from `drivers/i2c/busses/i2c-pasemi-core.o' being placed in section `.stubs'
powerpc64-linux-ld: warning: orphan section `.ftrace.tramp' from `drivers/i2c/busses/i2c-pasemi-core.o' being placed in section `.ftrace.tramp'
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+0x18): undefined reference to `._mcount'
powerpc64-linux-ld: init/main.o: in function `.__traceiter_initcall_start':
(.text+0x88): undefined reference to `._mcount'
powerpc64-linux-ld: init/main.o: in function `.__traceiter_initcall_finish':
(.text+0xf4): undefined reference to `._mcount'
powerpc64-linux-ld: init/main.o: in function `.trace_initcall_finish_cb':
>> main.c:(.text+0x16c): undefined reference to `._mcount'
powerpc64-linux-ld: init/main.o: in function `.initcall_blacklisted':
main.c:(.text+0x4cc): undefined reference to `._mcount'
powerpc64-linux-ld: init/main.o:(.text+0x5bc): 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/iomap.o: in function `.ioport_map':
(.text+0x14): undefined reference to `._mcount'
powerpc64-linux-ld: arch/powerpc/kernel/iomap.o: in function `.pci_iounmap':
(.text+0x48): undefined reference to `._mcount'
powerpc64-linux-ld: arch/powerpc/kernel/compat_audit.o: in function `.ppc32_classify_syscall':
>> compat_audit.c:(.text+0x14): undefined reference to `._mcount'
powerpc64-linux-ld: arch/powerpc/mm/fault.o: in function `.__bad_area_nosemaphore':
>> fault.c:(.text+0x5c): undefined reference to `._mcount'
powerpc64-linux-ld: arch/powerpc/mm/fault.o: in function `.bad_area_nosemaphore':
fault.c:(.text+0xb0): undefined reference to `._mcount'
powerpc64-linux-ld: arch/powerpc/mm/fault.o:fault.c:(.text+0x2bc): 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_adj_delta_to_imm':
>> core.c:(.text+0x24): undefined reference to `._mcount'
powerpc64-linux-ld: kernel/bpf/core.o: in function `.bpf_adj_branches':
core.c:(.text+0xdc): undefined reference to `._mcount'
powerpc64-linux-ld: kernel/bpf/core.o: in function `.__bpf_call_base':
(.text+0x250): undefined reference to `._mcount'
powerpc64-linux-ld: kernel/bpf/core.o: in function `.__bpf_prog_ret1':
core.c:(.text+0x278): undefined reference to `._mcount'
powerpc64-linux-ld: kernel/bpf/core.o: in function `.bpf_prog_array_copy_core':
core.c:(.text+0x2ac): undefined reference to `._mcount'
powerpc64-linux-ld: kernel/bpf/core.o:(.text+0x31c): more undefined references to `._mcount' follow
powerpc64-linux-ld: drivers/i2c/busses/i2c-pasemi-core.o:(.toc+0x0): undefined reference to `__this_module'
powerpc64-linux-ld: drivers/i2c/busses/i2c-pasemi-platform.o: in function `.pasemi_platform_i2c_remove':
>> i2c-pasemi-platform.c:(.text+0xc): undefined reference to `._mcount'
powerpc64-linux-ld: drivers/i2c/busses/i2c-pasemi-platform.o: in function `.pasemi_platform_i2c_probe':
i2c-pasemi-platform.c:(.text+0x44): undefined reference to `._mcount'
powerpc64-linux-ld: drivers/i2c/busses/i2c-pasemi-platform.o: in function `.pasemi_platform_i2c_driver_init':
>> i2c-pasemi-platform.c:(.init.text+0x14): undefined reference to `._mcount'
powerpc64-linux-ld: drivers/i2c/busses/i2c-pca-platform.o: in function `.i2c_pca_pf_readbyte8':
>> i2c-pca-platform.c:(.text+0x34): undefined reference to `._mcount'
powerpc64-linux-ld: drivers/i2c/busses/i2c-pca-platform.o: in function `.i2c_pca_pf_readbyte16':
i2c-pca-platform.c:(.text+0x70): undefined reference to `._mcount'
powerpc64-linux-ld: drivers/i2c/busses/i2c-pca-platform.o:i2c-pca-platform.c:(.text+0xb4): more undefined references to `._mcount' follow

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