All of lore.kernel.org
 help / color / mirror / Atom feed
From: Nathan Chancellor <nathan@kernel.org>
To: Klaus Kusche <klaus.kusche@computerix.info>
Cc: llvm@lists.linux.dev, Josh Poimboeuf <jpoimboe@kernel.org>,
	peterz@infradead.org, linux-kernel@vger.kernel.org
Subject: Re: linux 7.0.4 + clang 22.1.5 with thin or full lto still fails with objtool error
Date: Fri, 15 May 2026 01:00:02 +0900	[thread overview]
Message-ID: <20260514160002.GA2229579@ax162> (raw)
In-Reply-To: <98f7c318-c571-4204-a4df-f70221ef8c39@computerix.info>

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

      reply	other threads:[~2026-05-14 16:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260514160002.GA2229579@ax162 \
    --to=nathan@kernel.org \
    --cc=jpoimboe@kernel.org \
    --cc=klaus.kusche@computerix.info \
    --cc=linux-kernel@vger.kernel.org \
    --cc=llvm@lists.linux.dev \
    --cc=peterz@infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.