Re: [PATCH] gcc-plugins: Disable GCC plugins for compile test builds

From: Mark Brown
Date: Wed Apr 09 2025 - 08:20:14 EST


On Tue, Apr 08, 2025 at 04:32:24PM -0700, Kees Cook wrote:
> On Mon, Apr 07, 2025 at 09:57:32PM +0100, Mark Brown wrote:

> > Arnd bisected this to c56f649646ec ("landlock: Log mount-related
> > denials") but that commit is fairly obviously not really at fault here,
> > most likely this is an issue in the plugin. Given how disruptive having
> > key configs like this failing let's disable the plugins for compile test
> > builds until a fix is found.

> Looks like this is a randstruct bug. We'll need to disable that one for
> now (rather than all plugins).

Note that the patch is only disabling for build coverage builds where
the resulting binaries generally aren't going to actually be run.

> I can reproduce this for GCC 14, but I can't reproduce this with GCC
> 13. Which minor release is failing for you? My GCC 13 is:
> gcc (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0

Should have been x86_64-linux-gnu-gcc (Debian 13.3.0-5) 13.3.0.

Attachment: signature.asc
Description: PGP signature