Re: [linux-next:master 10827/11993] ERROR: modpost: "__sanitizer_cov_trace_pc" [arch/s390/mm/cmm.ko] undefined!

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, Oct 2, 2022 at 3:20 PM kernel test robot <lkp@xxxxxxxxx> wrote:
>
> Hi Masahiro,
>
> First bad commit (maybe != root cause):
>
> tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
> head:   274d7803837da78dfc911bcda0d593412676fc20
> commit: 4f62512adbe9a2fed6c99011a5a3ece929b2f633 [10827/11993] kbuild: use obj-y instead extra-y for objects placed at the head
> config: s390-randconfig-r011-20221002
> compiler: clang version 16.0.0 (https://github.com/llvm/llvm-project 791a7ae1ba3efd6bca96338e10ffde557ba83920)
> 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
>         # install s390 cross compiling tool for clang build
>         # apt-get install binutils-s390x-linux-gnu
>         # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=4f62512adbe9a2fed6c99011a5a3ece929b2f633
>         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 4f62512adbe9a2fed6c99011a5a3ece929b2f633
>         # 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=s390 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 >>, old ones prefixed by <<):
>
> >> ERROR: modpost: "__sanitizer_cov_trace_pc" [arch/s390/mm/cmm.ko] undefined!
> >> ERROR: modpost: "del_timer_sync" [arch/s390/mm/cmm.ko] undefined!
> >> ERROR: modpost: "unregister_oom_notifier" [arch/s390/mm/cmm.ko] undefined!
> >> ERROR: modpost: "kthread_stop" [arch/s390/mm/cmm.ko] undefined!
> >> ERROR: modpost: "del_timer" [arch/s390/mm/cmm.ko] undefined!
> >> ERROR: modpost: "_raw_spin_lock" [arch/s390/mm/cmm.ko] undefined!
> >> ERROR: modpost: "free_pages" [arch/s390/mm/cmm.ko] undefined!
> >> ERROR: modpost: "__ubsan_handle_out_of_bounds" [arch/s390/mm/cmm.ko] undefined!
> >> ERROR: modpost: "_raw_spin_unlock" [arch/s390/mm/cmm.ko] undefined!
> >> ERROR: modpost: "__wake_up" [arch/s390/mm/cmm.ko] undefined!
> WARNING: modpost: suppressed 16881 unresolved symbol warnings because there were too many)
>
> --
> 0-DAY CI Kernel Test Service
> https://01.org/lkp




I will apply the following to fix a TRIM_UNUSED_KSYMS bug,
but the given config cannot yet be built successfully.

Presumably, the rest are unrelated to my patches because
even the mainline kernel is broken for s390 in multiple ways.








diff --git a/Makefile b/Makefile
index eaa7096da5f1..8da45f76ec31 100644
--- a/Makefile
+++ b/Makefile
@@ -1150,10 +1150,10 @@ quiet_cmd_ar_vmlinux.a = AR      $@
        $(AR) mPiT $$($(AR) t $@ | head -n1) $@ $(head-y)

 targets += vmlinux.a
-vmlinux.a: $(KBUILD_VMLINUX_OBJS) FORCE
+vmlinux.a: $(KBUILD_VMLINUX_OBJS) autoksyms_recursive FORCE
        $(call if_changed,ar_vmlinux.a)

-vmlinux.o: autoksyms_recursive vmlinux.a $(KBUILD_VMLINUX_LIBS) FORCE
+vmlinux.o: vmlinux.a $(KBUILD_VMLINUX_LIBS) FORCE
        $(Q)$(MAKE) -f $(srctree)/scripts/Makefile.vmlinux_o

 ARCH_POSTLINK := $(wildcard $(srctree)/arch/$(SRCARCH)/Makefile.postlink)






--
Best Regards
Masahiro Yamada




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux