From: kernel test robot <lkp@intel.com>
To: Masahiro Yamada <masahiroy@kernel.org>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
linux-kernel@vger.kernel.org
Subject: ld.lld: error: relocation R_RISCV_HI20 cannot be used against symbol 'errata_list'; recompile with -fPIC
Date: Sun, 11 Aug 2024 18:35:00 +0800 [thread overview]
Message-ID: <202408111803.JqO5xaZe-lkp@intel.com> (raw)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 5189dafa4cf950e675f02ee04b577dfbbad0d9b1
commit: f79dc03fe68c79d388908182e68d702f7f1786bc kconfig: refactor choice value calculation
date: 4 weeks ago
config: riscv-randconfig-002-20240811 (https://download.01.org/0day-ci/archive/20240811/202408111803.JqO5xaZe-lkp@intel.com/config)
compiler: clang version 20.0.0git (https://github.com/llvm/llvm-project f86594788ce93b696675c94f54016d27a6c21d18)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240811/202408111803.JqO5xaZe-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202408111803.JqO5xaZe-lkp@intel.com/
All errors (new ones prefixed by >>):
>> ld.lld: error: relocation R_RISCV_HI20 cannot be used against symbol 'errata_list'; recompile with -fPIC
>>> defined in vmlinux.a(arch/riscv/errata/sifive/errata.o)
>>> referenced by errata.c:99 (arch/riscv/errata/sifive/errata.c:99)
>>> arch/riscv/errata/sifive/errata.o:(sifive_errata_patch_func) in archive vmlinux.a
--
>> ld.lld: error: relocation R_RISCV_LO12_I cannot be used against symbol 'errata_list'; recompile with -fPIC
>>> defined in vmlinux.a(arch/riscv/errata/sifive/errata.o)
>>> referenced by errata.c:0 (arch/riscv/errata/sifive/errata.c:0)
>>> arch/riscv/errata/sifive/errata.o:(sifive_errata_patch_func) in archive vmlinux.a
--
>> ld.lld: error: relocation R_RISCV_HI20 cannot be used against symbol '.L.str.8'; recompile with -fPIC
>>> defined in vmlinux.a(arch/riscv/errata/sifive/errata.o)
>>> referenced by errata.c:71 (arch/riscv/errata/sifive/errata.c:71)
>>> arch/riscv/errata/sifive/errata.o:(sifive_errata_patch_func) in archive vmlinux.a
--
>> ld.lld: error: relocation R_RISCV_LO12_I cannot be used against symbol '.L.str.8'; recompile with -fPIC
>>> defined in vmlinux.a(arch/riscv/errata/sifive/errata.o)
>>> referenced by errata.c:71 (arch/riscv/errata/sifive/errata.c:71)
>>> arch/riscv/errata/sifive/errata.o:(sifive_errata_patch_func) in archive vmlinux.a
--
>> ld.lld: error: relocation R_RISCV_HI20 cannot be used against symbol 'errata_list'; recompile with -fPIC
>>> defined in vmlinux.a(arch/riscv/errata/sifive/errata.o)
>>> referenced by errata.c:71 (arch/riscv/errata/sifive/errata.c:71)
>>> arch/riscv/errata/sifive/errata.o:(sifive_errata_patch_func) in archive vmlinux.a
--
>> ld.lld: error: relocation R_RISCV_LO12_I cannot be used against symbol 'errata_list'; recompile with -fPIC
>>> defined in vmlinux.a(arch/riscv/errata/sifive/errata.o)
>>> referenced by errata.c:71 (arch/riscv/errata/sifive/errata.c:71)
>>> arch/riscv/errata/sifive/errata.o:(sifive_errata_patch_func) in archive vmlinux.a
--
>> ld.lld: error: relocation R_RISCV_HI20 cannot be used against symbol '.L.str'; recompile with -fPIC
>>> defined in vmlinux.a(arch/riscv/errata/sifive/errata.o)
>>> referenced by errata.c:0 (arch/riscv/errata/sifive/errata.c:0)
>>> arch/riscv/errata/sifive/errata.o:(sifive_errata_patch_func) in archive vmlinux.a
--
>> ld.lld: error: relocation R_RISCV_LO12_I cannot be used against symbol '.L.str'; recompile with -fPIC
>>> defined in vmlinux.a(arch/riscv/errata/sifive/errata.o)
>>> referenced by errata.c:0 (arch/riscv/errata/sifive/errata.c:0)
>>> arch/riscv/errata/sifive/errata.o:(sifive_errata_patch_func) in archive vmlinux.a
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next reply other threads:[~2024-08-11 10:35 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-08-11 10:35 kernel test robot [this message]
-- strict thread matches above, loose matches on Subject: below --
2024-08-19 13:55 ld.lld: error: relocation R_RISCV_HI20 cannot be used against symbol 'errata_list'; recompile with -fPIC kernel test robot
2025-02-15 0:00 kernel test robot
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=202408111803.JqO5xaZe-lkp@intel.com \
--to=lkp@intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=llvm@lists.linux.dev \
--cc=masahiroy@kernel.org \
--cc=oe-kbuild-all@lists.linux.dev \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox