ld.lld: error: Function Import: link error: linking module flags 'Code Model': IDs have conflicting values: 'i32 3' from vmlinux.a(init.o at 870780), and 'i32 1' from vmlinux.a(mballoc.o at 901800)
From: kernel test robot
Date: Fri Jun 06 2025 - 20:47:51 EST
Hi Masahiro,
FYI, the error/warning still remains.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: c0c9379f235df33a12ceae94370ad80c5278324d
commit: 695ed93bb30e03e9f826ee70abdd83f970741a37 kbuild: fix Clang LTO with CONFIG_OBJTOOL=n
date: 4 months ago
:::::: branch date: 3 hours ago
:::::: commit date: 4 months ago
config: riscv-randconfig-001-20250607 (https://download.01.org/0day-ci/archive/20250607/202506070617.O7yPB5MW-lkp@xxxxxxxxx/config)
compiler: clang version 21.0.0git (https://github.com/llvm/llvm-project f819f46284f2a79790038e1f6649172789734ae8)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250607/202506070617.O7yPB5MW-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/r/202506070617.O7yPB5MW-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 870780), and 'i32 1' from vmlinux.a(e1000_main.o at 975540)
ld.lld: error: Function Import: link error: linking module flags 'Code Model': IDs have conflicting values: 'i32 3' from vmlinux.a(init.o at 870780), and 'i32 1' from vmlinux.a(net-traces.o at 999960)
ld.lld: error: Function Import: link error: linking module flags 'Code Model': IDs have conflicting values: 'i32 3' from vmlinux.a(init.o at 870780), and 'i32 1' from vmlinux.a(hugetlb.o at 890520)
ld.lld: error: Function Import: link error: linking module flags 'Code Model': IDs have conflicting values: 'i32 3' from vmlinux.a(init.o at 870780), and 'i32 1' from vmlinux.a(trace.o at 881700)
ld.lld: error: Function Import: link error: linking module flags 'Code Model': IDs have conflicting values: 'i32 3' from vmlinux.a(init.o at 870780), and 'i32 1' from vmlinux.a(tcp.o at 1003740)
ld.lld: error: Function Import: link error: linking module flags 'Code Model': IDs have conflicting values: 'i32 3' from vmlinux.a(init.o at 870780), and 'i32 1' from vmlinux.a(skbuff.o at 997800)
ld.lld: error: Function Import: link error: linking module flags 'Code Model': IDs have conflicting values: 'i32 3' from vmlinux.a(init.o at 870780), and 'i32 1' from vmlinux.a(core.o at 973860)
ld.lld: error: Function Import: link error: linking module flags 'Code Model': IDs have conflicting values: 'i32 3' from vmlinux.a(init.o at 870780), and 'i32 1' from vmlinux.a(syscall.o at 883920)
ld.lld: error: Function Import: link error: linking module flags 'Code Model': IDs have conflicting values: 'i32 3' from vmlinux.a(init.o at 870780), and 'i32 1' from vmlinux.a(slub.o at 890400)
ld.lld: error: Function Import: link error: linking module flags 'Code Model': IDs have conflicting values: 'i32 3' from vmlinux.a(init.o at 870780), and 'i32 1' from vmlinux.a(super.o at 912660)
ld.lld: error: Function Import: link error: linking module flags 'Code Model': IDs have conflicting values: 'i32 3' from vmlinux.a(init.o at 870780), and 'i32 1' from vmlinux.a(filter.o at 998880)
>> ld.lld: error: Function Import: link error: linking module flags 'Code Model': IDs have conflicting values: 'i32 3' from vmlinux.a(init.o at 870780), and 'i32 1' from vmlinux.a(mballoc.o at 901800)
ld.lld: error: Function Import: link error: linking module flags 'Code Model': IDs have conflicting values: 'i32 3' from vmlinux.a(init.o at 870780), and 'i32 1' from vmlinux.a(page_alloc.o at 890100)
ld.lld: error: Function Import: link error: linking module flags 'Code Model': IDs have conflicting values: 'i32 3' from vmlinux.a(init.o at 870780), and 'i32 1' from vmlinux.a(core.o at 886860)
ld.lld: error: Function Import: link error: linking module flags 'Code Model': IDs have conflicting values: 'i32 3' from vmlinux.a(init.o at 870780), and 'i32 1' from vmlinux.a(vmscan.o at 888060)
>> ld.lld: error: Function Import: link error: linking module flags 'Code Model': IDs have conflicting values: 'i32 3' from vmlinux.a(init.o at 870780), and 'i32 1' from vmlinux.a(volumes.o at 913800)
ld.lld: error: Function Import: link error: linking module flags 'Code Model': IDs have conflicting values: 'i32 3' from vmlinux.a(init.o at 870780), and 'i32 1' from vmlinux.a(af_packet.o at 1009260)
ld.lld: error: Function Import: link error: linking module flags 'Code Model': IDs have conflicting values: 'i32 3' from vmlinux.a(init.o at 870780), and 'i32 1' from vmlinux.a(ring_buffer.o at 881640)
>> ld.lld: error: Function Import: link error: linking module flags 'Code Model': IDs have conflicting values: 'i32 3' from vmlinux.a(init.o at 870780), and 'i32 1' from vmlinux.a(inode.o at 913260)
ld.lld: error: Function Import: link error: linking module flags 'Code Model': IDs have conflicting values: 'i32 3' from vmlinux.a(init.o at 870780), and 'i32 1' from vmlinux.a(core.o at 883860)
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