public inbox for linux-hardening@vger.kernel.org
 help / color / mirror / Atom feed
From: Ingo Saitz <ingo@hannover.ccc.de>
To: "Valdis Klētnieks" <valdis.kletnieks@vt.edu>
Cc: Kees Cook <kees@kernel.org>,
	linux-hardening@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: Build error in next-20260223 gcc-plugins/latent_entropy_plugin.so
Date: Sat, 14 Mar 2026 14:50:46 +0100	[thread overview]
Message-ID: <abVntmj9O7uXnES2@spatz.zoo> (raw)
In-Reply-To: <4147110.1772032451@turing-police>

I get the same error with

    gcc (Debian 16-20260308-1) 16.0.1 20260308 (experimental) [trunk r16-7949-g6c5de6335f5]

It seems gcc removed the CONST_CAST macros in gcc-16. CONST_CAST_TREE
got removed in commit c3d96ff, CONST_CAST in commit 458c792.

    https://github.com/gcc-mirror/gcc/commit/c3d96ff9e916c02584aa081f03ab999292efbb50
    https://github.com/gcc-mirror/gcc/commit/458c7926d48959abcb2c1adaa22458e27459a551

So this does not seem to be a gcc bug, but the CONST_CAST macros being
gone for good.

I attached a quick patch to get the kernel build with the current gcc-16
development version, but it still needs to be guarded against different
gcc versions.

    Ingo
-- 
const_cast<long double>(Λ)

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

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-02-25  5:20 Build error in next-20260223 gcc-plugins/latent_entropy_plugin.so Valdis Klētnieks
2026-02-25  7:33 ` Kees Cook
2026-02-25 15:14   ` Valdis Klētnieks
2026-03-14 13:50     ` Ingo Saitz [this message]
2026-03-14 14:44       ` Ingo Saitz
2026-03-20 19:23         ` Kees Cook
2026-03-21 12:25           ` Ingo Saitz

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=abVntmj9O7uXnES2@spatz.zoo \
    --to=ingo@hannover.ccc.de \
    --cc=kees@kernel.org \
    --cc=linux-hardening@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=valdis.kletnieks@vt.edu \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox