* 7.0.3 with clang 22.1.4 and full lto: objtool error
@ 2026-05-04 18:46 Klaus Kusche
2026-05-07 19:31 ` linux 7.0.4 + clang 22.1.5 with thin or full lto still fails with " Klaus Kusche
0 siblings, 1 reply; 3+ messages in thread
From: Klaus Kusche @ 2026-05-04 18:46 UTC (permalink / raw)
To: linux-kernel, Josh Poimboeuf, peterz, Nathan Chancellor
I've no idea why this message was filtered,
but for some reason, my mailer shows it as sucessfully sent,
but it never arrived at LKML...
Hello,
with clang 22.1.4, I get an error in the "LD vmlinux.o" step
(full lto):
"objtool: bad .discard.annotate_insn entry: 609 of type 8"
Same kernel & same config compiles and runs nicely with clang 21.1.8.
I've attached the kernel config to
https://bugzilla.kernel.org/show_bug.cgi?id=221460
--
Prof. Dr. Klaus Kusche
Privat: Söllmnitz 32 d, D-07554 Gera/Söllmnitz
036695/859909 klaus.kusche@computerix.info https://www.computerix.info
Dienstlich: DHGE Gera, Weg der Freundschaft 4, D-07546 Gera
klaus.kusche@dhge.de https://www.dhge.de
^ permalink raw reply [flat|nested] 3+ messages in thread
* linux 7.0.4 + clang 22.1.5 with thin or full lto still fails with objtool error
2026-05-04 18:46 7.0.3 with clang 22.1.4 and full lto: objtool error Klaus Kusche
@ 2026-05-07 19:31 ` Klaus Kusche
2026-05-14 16:00 ` Nathan Chancellor
0 siblings, 1 reply; 3+ messages in thread
From: Klaus Kusche @ 2026-05-07 19:31 UTC (permalink / raw)
To: llvm, Nathan Chancellor, Josh Poimboeuf, peterz, linux-kernel
The error I reported for linux 7.0.3 and clang 22.1.4 (see below)
still occurs with 7.0.4 and 22.1.5:
Compiling the kernel fails in the "LD vmlinux.o" step with
"vmlinux.o: error: objtool: bad .discard.annotate_insn entry:
599 of type 8"
This time, I reproduced it with the vanilla kernel,
not the gentoo kernel, so there is no gentoo involved in the build.
It happens with both full LTO and thin LTO, only no LTO works.
My kernel config reproducing the error with vanilla 7.0.4 is in
https://bugzilla.kernel.org/show_bug.cgi?id=221460
--
Klaus Kusche
-------- Forwarded Message --------
Subject: 7.0.3 with clang 22.1.4 and full lto: objtool error
Date: Mon, 4 May 2026 20:46:50 +0200
From: Klaus Kusche <klaus.kusche@computerix.info>
To: linux-kernel@vger.kernel.org, Josh Poimboeuf <jpoimboe@kernel.org>, peterz@infradead.org, Nathan Chancellor <nathan@kernel.org>
Hello,
with clang 22.1.4, I get an error in the "LD vmlinux.o" step
(full lto):
"objtool: bad .discard.annotate_insn entry: 609 of type 8"
Same kernel & same config compiles and runs nicely with clang 21.1.8.
I've attached the kernel config to
https://bugzilla.kernel.org/show_bug.cgi?id=221460
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: linux 7.0.4 + clang 22.1.5 with thin or full lto still fails with objtool error
2026-05-07 19:31 ` linux 7.0.4 + clang 22.1.5 with thin or full lto still fails with " Klaus Kusche
@ 2026-05-14 16:00 ` Nathan Chancellor
0 siblings, 0 replies; 3+ messages in thread
From: Nathan Chancellor @ 2026-05-14 16:00 UTC (permalink / raw)
To: Klaus Kusche; +Cc: llvm, Josh Poimboeuf, peterz, linux-kernel
On Thu, May 07, 2026 at 09:31:36PM +0200, Klaus Kusche wrote:
>
> The error I reported for linux 7.0.3 and clang 22.1.4 (see below)
> still occurs with 7.0.4 and 22.1.5:
> Compiling the kernel fails in the "LD vmlinux.o" step with
> "vmlinux.o: error: objtool: bad .discard.annotate_insn entry:
> 599 of type 8"
>
> This time, I reproduced it with the vanilla kernel,
> not the gentoo kernel, so there is no gentoo involved in the build.
>
> It happens with both full LTO and thin LTO, only no LTO works.
>
> My kernel config reproducing the error with vanilla 7.0.4 is in
> https://bugzilla.kernel.org/show_bug.cgi?id=221460
Just to close the loop for other folks in this thread, this is now being
tracked in our downstream issue:
https://github.com/ClangBuiltLinux/linux/issues/2162
> -------- Forwarded Message --------
> Subject: 7.0.3 with clang 22.1.4 and full lto: objtool error
> Date: Mon, 4 May 2026 20:46:50 +0200
> From: Klaus Kusche <klaus.kusche@computerix.info>
> To: linux-kernel@vger.kernel.org, Josh Poimboeuf <jpoimboe@kernel.org>, peterz@infradead.org, Nathan Chancellor <nathan@kernel.org>
>
> Hello,
>
> with clang 22.1.4, I get an error in the "LD vmlinux.o" step
> (full lto):
> "objtool: bad .discard.annotate_insn entry: 609 of type 8"
>
> Same kernel & same config compiles and runs nicely with clang 21.1.8.
>
> I've attached the kernel config to
> https://bugzilla.kernel.org/show_bug.cgi?id=221460
>
--
Cheers,
Nathan
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2026-05-14 16:00 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-04 18:46 7.0.3 with clang 22.1.4 and full lto: objtool error Klaus Kusche
2026-05-07 19:31 ` linux 7.0.4 + clang 22.1.5 with thin or full lto still fails with " Klaus Kusche
2026-05-14 16:00 ` Nathan Chancellor
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox