All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Ard Biesheuvel <ardb@kernel.org>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev
Subject: [ardb:x86-pie-v4 25/25] ld.lld: error: relocation R_X86_64_32S cannot be used against symbol 'kernel::module_param::set_param::ONCE'; recompile with -fPIC
Date: Mon, 02 Nov 2026 04:47:56 +0100	[thread overview]
Message-ID: <202611020415.N9TL79Gy-lkp@intel.com> (raw)

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/ardb/linux.git x86-pie-v4
head:   39ce2e7cf56af29147a3a3e23013d147afaa3ebc
commit: 70604084d1e8fe0325f4d86cb7c43df4ce31fe2a [25/25] x86/kernel: Switch to PIE linking for the relocatable kernel
config: x86_64-randconfig-2001-20261101 (https://download.01.org/0day-ci/archive/20261102/202611020415.N9TL79Gy-lkp@intel.com/config)
compiler: clang version 22.1.8 (https://github.com/llvm/llvm-project ca7933e47d3a3451d81e72ac174dcb5aa28b59d1)
rustc: rustc 1.96.0 (ac68faa20 2026-05-25)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261102/202611020415.N9TL79Gy-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/202611020415.N9TL79Gy-lkp@intel.com/

All errors (new ones prefixed by >>):

>> ld.lld: error: relocation R_X86_64_32S cannot be used against symbol 'kernel::module_param::set_param::ONCE'; recompile with -fPIC
   >>> defined in vmlinux.o
   >>> referenced by print.rs:506 (rust/kernel/print.rs:506)
   >>>               vmlinux.o:(kernel::module_param::set_param::<i8>)
--
>> ld.lld: error: relocation R_X86_64_32S cannot be used against local symbol; recompile with -fPIC
   >>> defined in vmlinux.o
   >>> referenced by ub_checks.rs:73 (/opt/cross/rustc-1.96.0-bindgen-0.72.1/rustup/toolchains/1.96.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ub_checks.rs:73)
   >>>               vmlinux.o:(kernel::module_param::set_param::<i8>)
--
>> ld.lld: error: relocation R_X86_64_32S cannot be used against local symbol; recompile with -fPIC
   >>> defined in vmlinux.o
   >>> referenced by ub_checks.rs:73 (/opt/cross/rustc-1.96.0-bindgen-0.72.1/rustup/toolchains/1.96.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ub_checks.rs:73)
   >>>               vmlinux.o:(kernel::module_param::set_param::<u8>)
--
>> ld.lld: error: relocation R_X86_64_32S cannot be used against local symbol; recompile with -fPIC
   >>> defined in vmlinux.o
   >>> referenced by mod.rs:289 (/opt/cross/rustc-1.96.0-bindgen-0.72.1/rustup/toolchains/1.96.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/macros/mod.rs:289)
   >>>               vmlinux.o:(kernel::module_param::set_param::<u8>)
--
>> ld.lld: error: relocation R_X86_64_32S cannot be used against local symbol; recompile with -fPIC
   >>> defined in vmlinux.o
   >>> referenced by module_param.rs:78 (rust/kernel/module_param.rs:78)
>> >>>               vmlinux.o:(kernel::error::from_result::<i32, kernel::module_param::set_param<u8>::{closure#0}>)
--
>> ld.lld: error: relocation R_X86_64_32S cannot be used against local symbol; recompile with -fPIC
   >>> defined in vmlinux.o
   >>> referenced by mod.rs:289 (/opt/cross/rustc-1.96.0-bindgen-0.72.1/rustup/toolchains/1.96.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/macros/mod.rs:289)
   >>>               vmlinux.o:(kernel::module_param::set_param::<i8>)
--
>> ld.lld: error: relocation R_X86_64_32S cannot be used against local symbol; recompile with -fPIC
   >>> defined in vmlinux.o
   >>> referenced by module_param.rs:78 (rust/kernel/module_param.rs:78)
>> >>>               vmlinux.o:(kernel::error::from_result::<i32, kernel::module_param::set_param<i8>::{closure#0}>)
--
>> ld.lld: error: relocation R_X86_64_32S cannot be used against local symbol; recompile with -fPIC
   >>> defined in vmlinux.o
   >>> referenced by module_param.rs:82 (rust/kernel/module_param.rs:82)
>> >>>               vmlinux.o:(kernel::error::from_result::<i32, kernel::module_param::set_param<i8>::{closure#0}>)
--
>> ld.lld: error: relocation R_X86_64_32S cannot be used against local symbol; recompile with -fPIC
   >>> defined in vmlinux.o
   >>> referenced by print.rs:0 (rust/kernel/print.rs:0)
   >>>               vmlinux.o:(<kernel::print::OnceLite>::call_once::<kernel::module_param::set_param<i8>::{closure#1}>)
--
>> ld.lld: error: relocation R_X86_64_32S cannot be used against symbol 'kernel::print::format_strings::WARNING'; recompile with -fPIC
   >>> defined in vmlinux.o
   >>> referenced by print.rs:114 (rust/kernel/print.rs:114)
   >>>               vmlinux.o:(<kernel::print::OnceLite>::call_once::<kernel::module_param::set_param<i8>::{closure#1}>)
--
>> ld.lld: error: relocation R_X86_64_32S cannot be used against local symbol; recompile with -fPIC
   >>> defined in vmlinux.o
   >>> referenced by print.rs:114 (rust/kernel/print.rs:114)
   >>>               vmlinux.o:(<kernel::print::OnceLite>::call_once::<kernel::module_param::set_param<i8>::{closure#1}>)
..

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

                 reply	other threads:[~2026-11-02  3:48 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=202611020415.N9TL79Gy-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=ardb@kernel.org \
    --cc=llvm@lists.linux.dev \
    --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 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.