All of lore.kernel.org
 help / color / mirror / Atom feed
* [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
@ 2026-11-02  3:47 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-11-02  3:47 UTC (permalink / raw)
  To: Ard Biesheuvel; +Cc: llvm, oe-kbuild-all

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2026-11-02  3:48 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-02  3:47 [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 kernel test robot

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.