ld.lld: error: Function Import: link error: linking module flags 'Code Model': IDs have conflicting values: 'i32 3' from vmlinux.a(init.o at 1794328), and 'i32 1' from vmlinux.a(target_core_transport.o at 1969228)

From: kernel test robot
Date: Thu Jul 03 2025 - 17:44:58 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 17bbde2e1716e2ee4b997d476b48ae85c5a47671
commit: 1b3291f00013c86a9bb349d6158a9a7a4f0334fe MAINTAINERS: Remove myself
date: 5 months ago
config: riscv-randconfig-001-20250704 (https://download.01.org/0day-ci/archive/20250704/202507040514.0TP3wH3T-lkp@xxxxxxxxx/config)
compiler: clang version 21.0.0git (https://github.com/llvm/llvm-project f1a4bb62452d88a0edd9340b3ca7c9b11ad9193f)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250704/202507040514.0TP3wH3T-lkp@xxxxxxxxx/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@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202507040514.0TP3wH3T-lkp@xxxxxxxxx/

All errors (new ones prefixed by >>):

ld.lld: error: Function Import: link error: linking module flags 'Code Model': IDs have conflicting values: 'i32 3' from vmlinux.a(init.o at 1794328), and 'i32 1' from vmlinux.a(alloc.o at 1845388)
ld.lld: error: Function Import: link error: linking module flags 'Code Model': IDs have conflicting values: 'i32 3' from vmlinux.a(init.o at 1794328), and 'i32 1' from vmlinux.a(mad.o at 2031628)
ld.lld: error: Function Import: link error: linking module flags 'Code Model': IDs have conflicting values: 'i32 3' from vmlinux.a(init.o at 1794328), and 'i32 1' from vmlinux.a(skbuff.o at 2043568)
ld.lld: error: Function Import: link error: linking module flags 'Code Model': IDs have conflicting values: 'i32 3' from vmlinux.a(init.o at 1794328), and 'i32 1' from vmlinux.a(trace.o at 1806688)
ld.lld: error: Function Import: link error: linking module flags 'Code Model': IDs have conflicting values: 'i32 3' from vmlinux.a(init.o at 1794328), and 'i32 1' from vmlinux.a(net-traces.o at 2045788)
ld.lld: error: Function Import: link error: linking module flags 'Code Model': IDs have conflicting values: 'i32 3' from vmlinux.a(init.o at 1794328), and 'i32 1' from vmlinux.a(slub.o at 1815328)
ld.lld: error: Function Import: link error: linking module flags 'Code Model': IDs have conflicting values: 'i32 3' from vmlinux.a(init.o at 1794328), and 'i32 1' from vmlinux.a(osd_client.o at 2079268)
ld.lld: error: Function Import: link error: linking module flags 'Code Model': IDs have conflicting values: 'i32 3' from vmlinux.a(init.o at 1794328), and 'i32 1' from vmlinux.a(protocol.o at 2082568)
ld.lld: error: Function Import: link error: linking module flags 'Code Model': IDs have conflicting values: 'i32 3' from vmlinux.a(init.o at 1794328), and 'i32 1' from vmlinux.a(volumes.o at 1849168)
ld.lld: error: Function Import: link error: linking module flags 'Code Model': IDs have conflicting values: 'i32 3' from vmlinux.a(init.o at 1794328), and 'i32 1' from vmlinux.a(tcp.o at 2052088)
ld.lld: error: Function Import: link error: linking module flags 'Code Model': IDs have conflicting values: 'i32 3' from vmlinux.a(init.o at 1794328), and 'i32 1' from vmlinux.a(super.o at 1848028)
ld.lld: error: Function Import: link error: linking module flags 'Code Model': IDs have conflicting values: 'i32 3' from vmlinux.a(init.o at 1794328), and 'i32 1' from vmlinux.a(segment.o at 1853908)
ld.lld: error: Function Import: link error: linking module flags 'Code Model': IDs have conflicting values: 'i32 3' from vmlinux.a(init.o at 1794328), and 'i32 1' from vmlinux.a(syscall.o at 1808908)
ld.lld: error: Function Import: link error: linking module flags 'Code Model': IDs have conflicting values: 'i32 3' from vmlinux.a(init.o at 1794328), and 'i32 1' from vmlinux.a(e1000_main.o at 1980208)
ld.lld: error: Function Import: link error: linking module flags 'Code Model': IDs have conflicting values: 'i32 3' from vmlinux.a(init.o at 1794328), and 'i32 1' from vmlinux.a(core.o at 1966588)
ld.lld: error: Function Import: link error: linking module flags 'Code Model': IDs have conflicting values: 'i32 3' from vmlinux.a(init.o at 1794328), and 'i32 1' from vmlinux.a(filter.o at 2044648)
ld.lld: error: Function Import: link error: linking module flags 'Code Model': IDs have conflicting values: 'i32 3' from vmlinux.a(init.o at 1794328), and 'i32 1' from vmlinux.a(core.o at 1811668)
ld.lld: error: Function Import: link error: linking module flags 'Code Model': IDs have conflicting values: 'i32 3' from vmlinux.a(init.o at 1794328), and 'i32 1' from vmlinux.a(super.o at 1853548)
ld.lld: error: Function Import: link error: linking module flags 'Code Model': IDs have conflicting values: 'i32 3' from vmlinux.a(init.o at 1794328), and 'i32 1' from vmlinux.a(smc_core.o at 2075128)
>> ld.lld: error: Function Import: link error: linking module flags 'Code Model': IDs have conflicting values: 'i32 3' from vmlinux.a(init.o at 1794328), and 'i32 1' from vmlinux.a(target_core_transport.o at 1969228)
ld.lld: error: too many errors emitted, stopping now (use --error-limit=0 to see all errors)

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