All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [ak:lto-5.12-3 14/54] ld.lld: error: can't create dynamic relocation R_PPC64_ADDR64 against symbol: __kstrtab_strict_msr_control in readonly segment; recompile object files with -fPIC or pass '-Wl,-z,notext' to allow text relocations in the output
Date: Thu, 06 May 2021 06:15:15 +0800	[thread overview]
Message-ID: <202105060608.fI9zWe2Z-lkp@intel.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 6071 bytes --]

TO: Andi Kleen <ak@linux.intel.com>

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/ak/linux-misc.git lto-5.12-3
head:   3fb2a4dd065a905fdd7748ed55cd52eaad3695a3
commit: 85666fc0e1dbacdfde2bb08baf7ef9f52d00b684 [14/54] lto: Export export symbol assembler symbols for LTO
config: powerpc-randconfig-r016-20210505 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 8f5a2a5836cc8e4c1def2bdeb022e7b496623439)
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 powerpc cross compiling tool for clang build
        # apt-get install binutils-powerpc-linux-gnu
        # https://git.kernel.org/pub/scm/linux/kernel/git/ak/linux-misc.git/commit/?id=85666fc0e1dbacdfde2bb08baf7ef9f52d00b684
        git remote add ak https://git.kernel.org/pub/scm/linux/kernel/git/ak/linux-misc.git
        git fetch --no-tags ak lto-5.12-3
        git checkout 85666fc0e1dbacdfde2bb08baf7ef9f52d00b684
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=powerpc 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

>> ld.lld: error: can't create dynamic relocation R_PPC64_ADDR64 against symbol: __kstrtab_strict_msr_control in readonly segment; recompile object files with -fPIC or pass '-Wl,-z,notext' to allow text relocations in the output
   >>> defined in arch/powerpc/built-in.a(kernel/process.o)
   >>> referenced by process.c
   >>> kernel/process.o:(__ksymtab_strict_msr_control) in archive arch/powerpc/built-in.a
--
>> ld.lld: error: can't create dynamic relocation R_PPC64_ADDR64 against symbol: __kstrtabns_strict_msr_control in readonly segment; recompile object files with -fPIC or pass '-Wl,-z,notext' to allow text relocations in the output
   >>> defined in arch/powerpc/built-in.a(kernel/process.o)
   >>> referenced by process.c
   >>> kernel/process.o:(__ksymtab_strict_msr_control) in archive arch/powerpc/built-in.a
--
>> ld.lld: error: can't create dynamic relocation R_PPC64_ADDR64 against symbol: __kstrtab___msr_check_and_clear in readonly segment; recompile object files with -fPIC or pass '-Wl,-z,notext' to allow text relocations in the output
   >>> defined in arch/powerpc/built-in.a(kernel/process.o)
   >>> referenced by process.c
   >>> kernel/process.o:(__ksymtab___msr_check_and_clear) in archive arch/powerpc/built-in.a
--
>> ld.lld: error: can't create dynamic relocation R_PPC64_ADDR64 against symbol: __kstrtabns___msr_check_and_clear in readonly segment; recompile object files with -fPIC or pass '-Wl,-z,notext' to allow text relocations in the output
   >>> defined in arch/powerpc/built-in.a(kernel/process.o)
   >>> referenced by process.c
   >>> kernel/process.o:(__ksymtab___msr_check_and_clear) in archive arch/powerpc/built-in.a
--
>> ld.lld: error: can't create dynamic relocation R_PPC64_ADDR64 against symbol: __kstrtab_enable_kernel_fp in readonly segment; recompile object files with -fPIC or pass '-Wl,-z,notext' to allow text relocations in the output
   >>> defined in arch/powerpc/built-in.a(kernel/process.o)
   >>> referenced by process.c
   >>> kernel/process.o:(__ksymtab_enable_kernel_fp) in archive arch/powerpc/built-in.a
--
>> ld.lld: error: can't create dynamic relocation R_PPC64_ADDR64 against symbol: __kstrtabns_enable_kernel_fp in readonly segment; recompile object files with -fPIC or pass '-Wl,-z,notext' to allow text relocations in the output
   >>> defined in arch/powerpc/built-in.a(kernel/process.o)
   >>> referenced by process.c
   >>> kernel/process.o:(__ksymtab_enable_kernel_fp) in archive arch/powerpc/built-in.a
--
>> ld.lld: error: can't create dynamic relocation R_PPC64_ADDR64 against symbol: __kstrtab_enable_kernel_altivec in readonly segment; recompile object files with -fPIC or pass '-Wl,-z,notext' to allow text relocations in the output
   >>> defined in arch/powerpc/built-in.a(kernel/process.o)
   >>> referenced by process.c
   >>> kernel/process.o:(__ksymtab_enable_kernel_altivec) in archive arch/powerpc/built-in.a
--
>> ld.lld: error: can't create dynamic relocation R_PPC64_ADDR64 against symbol: __kstrtabns_enable_kernel_altivec in readonly segment; recompile object files with -fPIC or pass '-Wl,-z,notext' to allow text relocations in the output
   >>> defined in arch/powerpc/built-in.a(kernel/process.o)
   >>> referenced by process.c
   >>> kernel/process.o:(__ksymtab_enable_kernel_altivec) in archive arch/powerpc/built-in.a
--
>> ld.lld: error: can't create dynamic relocation R_PPC64_ADDR64 against symbol: __kstrtab_enable_kernel_vsx in readonly segment; recompile object files with -fPIC or pass '-Wl,-z,notext' to allow text relocations in the output
   >>> defined in arch/powerpc/built-in.a(kernel/process.o)
   >>> referenced by process.c
   >>> kernel/process.o:(__ksymtab_enable_kernel_vsx) in archive arch/powerpc/built-in.a
--
>> ld.lld: error: can't create dynamic relocation R_PPC64_ADDR64 against symbol: __kstrtabns_enable_kernel_vsx in readonly segment; recompile object files with -fPIC or pass '-Wl,-z,notext' to allow text relocations in the output
   >>> defined in arch/powerpc/built-in.a(kernel/process.o)
   >>> referenced by process.c
   >>> kernel/process.o:(__ksymtab_enable_kernel_vsx) in archive arch/powerpc/built-in.a
--
>> ld.lld: error: can't create dynamic relocation R_PPC64_ADDR64 against symbol: __kstrtab_system_state in readonly segment; recompile object files with -fPIC or pass '-Wl,-z,notext' to allow text relocations in the output
   >>> defined in init/built-in.a(main.o)
   >>> referenced by main.c
   >>> main.o:(__ksymtab_system_state) in archive init/built-in.a
..

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

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 21911 bytes --]

                 reply	other threads:[~2021-05-05 22:15 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202105060608.fI9zWe2Z-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.