Re: x86_64 clang-20 clang-nightly config lto-full failed - ld.lld: error: linking module flags 'Code Model': IDs have conflicting values: 'i32 1' from vmlinux.a(gdt_idt.o at 1321040), and 'i32 2' from ld-temp.o

From: Nathan Chancellor
Date: Mon Apr 14 2025 - 12:20:10 EST


Hi Naresh,

On Mon, Apr 14, 2025 at 09:37:51PM +0530, Naresh Kamboju wrote:
> Regressions on x86_64 config LTO_CLANG_FULL with korg-clang-20 and
> clang-nightly on the
> Linux next-20250407 and found again on next-20250414 tag
>
> First seen on the next-20250407.
> Bad: next-20250407 and next-20250414
> Good:next-20250404
>
> * x86_64, Build
> - Build/korg-clang-20-lkftconfig-lto-full
> - Build/clang-nightly-lkftconfig-lto-full
>
> Regression Analysis:
> - New regression? Yes
> - Reproducibility? Yes
>
> Build regression: x86_64 clang-20 clang-nightly config lto-full failed
>
> Reported-by: Linux Kernel Functional Testing <lkft@xxxxxxxxxx>
>
> ## Build log
> ld.lld: error: linking module flags 'Code Model': IDs have conflicting
> values: 'i32 1'
> from vmlinux.a(gdt_idt.o at 1321040), and 'i32 2' from ld-temp.o

Thanks for the report, I will be sending a patch to fix this today.

Cheers,
Nathan