ld.lld: error: Function Import: link error: linking module flags 'Code Model': IDs have conflicting values in 'vmlinux.a(init.o at 681384)' and 'vmlinux.a(xprtsock.o at 797124)'

From: kernel test robot
Date: Thu Feb 13 2025 - 00:28:18 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 9946eaf552b194bb352c2945b54ff98c8193b3f1
commit: 695ed93bb30e03e9f826ee70abdd83f970741a37 kbuild: fix Clang LTO with CONFIG_OBJTOOL=n
date: 8 days ago
:::::: branch date: 4 hours ago
:::::: commit date: 8 days ago
config: riscv-randconfig-001-20250209 (https://download.01.org/0day-ci/archive/20250209/202502090914.AnKPmldC-lkp@xxxxxxxxx/config)
compiler: clang version 18.1.8 (https://github.com/llvm/llvm-project 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250209/202502090914.AnKPmldC-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/202502090914.AnKPmldC-lkp@xxxxxxxxx/

All errors (new ones prefixed by >>):

>> ld.lld: error: Function Import: link error: linking module flags 'Code Model': IDs have conflicting values in 'vmlinux.a(init.o at 681384)' and 'vmlinux.a(xprtsock.o at 797124)'
>> ld.lld: error: Function Import: link error: linking module flags 'Code Model': IDs have conflicting values in 'vmlinux.a(init.o at 681384)' and 'vmlinux.a(xhci.o at 751764)'
ld.lld: error: Function Import: link error: linking module flags 'Code Model': IDs have conflicting values in 'vmlinux.a(init.o at 681384)' and 'vmlinux.a(page_alloc.o at 694044)'
ld.lld: error: Function Import: link error: linking module flags 'Code Model': IDs have conflicting values in 'vmlinux.a(init.o at 681384)' and 'vmlinux.a(ring_buffer.o at 690504)'
ld.lld: error: Function Import: link error: linking module flags 'Code Model': IDs have conflicting values in 'vmlinux.a(init.o at 681384)' and 'vmlinux.a(tcp.o at 791604)'
ld.lld: error: Function Import: link error: linking module flags 'Code Model': IDs have conflicting values in 'vmlinux.a(init.o at 681384)' and 'vmlinux.a(trace.o at 690564)'
ld.lld: error: Function Import: link error: linking module flags 'Code Model': IDs have conflicting values in 'vmlinux.a(init.o at 681384)' and 'vmlinux.a(slub.o at 694284)'
ld.lld: error: Function Import: link error: linking module flags 'Code Model': IDs have conflicting values in 'vmlinux.a(init.o at 681384)' and 'vmlinux.a(dir.o at 703464)'
>> ld.lld: error: Function Import: link error: linking module flags 'Code Model': IDs have conflicting values in 'vmlinux.a(init.o at 681384)' and 'vmlinux.a(ip6_output.o at 794544)'
ld.lld: error: Function Import: link error: linking module flags 'Code Model': IDs have conflicting values in 'vmlinux.a(init.o at 681384)' and 'vmlinux.a(spi.o at 748404)'
ld.lld: error: Function Import: link error: linking module flags 'Code Model': IDs have conflicting values in 'vmlinux.a(init.o at 681384)' and 'vmlinux.a(skbuff.o at 786204)'
ld.lld: error: Function Import: link error: linking module flags 'Code Model': IDs have conflicting values in 'vmlinux.a(init.o at 681384)' and 'vmlinux.a(namei.o at 695544)'
ld.lld: error: Function Import: link error: linking module flags 'Code Model': IDs have conflicting values in 'vmlinux.a(init.o at 681384)' and 'vmlinux.a(filter.o at 787284)'
>> ld.lld: error: Function Import: link error: linking module flags 'Code Model': IDs have conflicting values in 'vmlinux.a(init.o at 681384)' and 'vmlinux.a(auth_gss.o at 798444)'
ld.lld: error: Function Import: link error: linking module flags 'Code Model': IDs have conflicting values in 'vmlinux.a(init.o at 681384)' and 'vmlinux.a(af_packet.o at 796884)'
>> ld.lld: error: Function Import: link error: linking module flags 'Code Model': IDs have conflicting values in 'vmlinux.a(init.o at 681384)' and 'vmlinux.a(xdr.o at 797904)'
>> ld.lld: error: Function Import: link error: linking module flags 'Code Model': IDs have conflicting values in 'vmlinux.a(init.o at 681384)' and 'vmlinux.a(ip_output.o at 791304)'
>> ld.lld: error: Function Import: link error: linking module flags 'Code Model': IDs have conflicting values in 'vmlinux.a(init.o at 681384)' and 'vmlinux.a(svcsock.o at 797544)'
>> ld.lld: error: Function Import: link error: linking module flags 'Code Model': IDs have conflicting values in 'vmlinux.a(init.o at 681384)' and 'vmlinux.a(svcauth_gss.o at 798624)'
>> ld.lld: error: Function Import: link error: linking module flags 'Code Model': IDs have conflicting values in 'vmlinux.a(init.o at 681384)' and 'vmlinux.a(xhci-ring.o at 751944)'
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