[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20250806221935.GA1397381@ax162>
Date: Wed, 6 Aug 2025 15:19:35 -0700
From: Nathan Chancellor <nathan@...nel.org>
To: kernel test robot <lkp@...el.com>
Cc: Samuel Holland <samuel.holland@...ive.com>, llvm@...ts.linux.dev,
oe-kbuild-all@...ts.linux.dev, linux-kernel@...r.kernel.org,
Palmer Dabbelt <palmer@...osinc.com>,
Jesse Taube <mr.bossman075@...il.com>
Subject: Re: ld.lld: error: Function Import: link error: linking module flags
'Code Model': IDs have conflicting values: 'i32 3' from vmlinux.a(init.o at
861458), and 'i32 1' from vmlinux.a(net-traces.o at 1004198)
On Wed, Aug 06, 2025 at 07:06:34PM +0800, kernel test robot wrote:
...
> config: riscv-randconfig-002-20250806 (https://download.01.org/0day-ci/archive/20250806/202508061842.68gt097v-lkp@intel.com/config)
...
> ld.lld: error: Function Import: link error: linking module flags 'Code Model': IDs have conflicting values: 'i32 3' from vmlinux.a(init.o at 861458), and 'i32 1' from vmlinux.a(trace.o at 871118)
> ld.lld: error: Function Import: link error: linking module flags 'Code Model': IDs have conflicting values: 'i32 3' from vmlinux.a(init.o at 861458), and 'i32 1' from vmlinux.a(memcontrol.o at 876278)
> ld.lld: error: Function Import: link error: linking module flags 'Code Model': IDs have conflicting values: 'i32 3' from vmlinux.a(init.o at 861458), and 'i32 1' from vmlinux.a(mballoc.o at 886958)
> >> ld.lld: error: Function Import: link error: linking module flags 'Code Model': IDs have conflicting values: 'i32 3' from vmlinux.a(init.o at 861458), and 'i32 1' from vmlinux.a(net-traces.o at 1004198)
As this configuration has CONFIG_CMODEL_MEDLOW, I expect
https://lore.kernel.org/20250710-riscv-restrict-lto-to-medany-v1-1-b1dac9871ecf@kernel.org/
to avoid this.
Cheers,
Nathan
Powered by blists - more mailing lists