Re: [Bug Report] A compilation failure occurs when landlock and RANDSTRUCT are combined with GCC 14.2.0.
From: WangYuli
Date: Thu Apr 10 2025 - 22:51:20 EST
Hi Günther and Mickaël Salaün,
On 2025/4/11 01:05, Mickaël Salaün wrote:
This is in my understanding a duplicate of the discussion in
https://lore.kernel.org/all/20250407-kbuild-disable-gcc-plugins-v1-1-5d46ae583f5e@xxxxxxxxxx/
Yes, a new patch has been submitted:
https://lore.kernel.org/all/20250409151154.work.872-kees@xxxxxxxxxx/
Thank you both for the reminder!
But I'm still a bit lost.
With GCC 14, I can reproduce this problem by merely enabling landlock
and RANDSTRUCT on top of the base x86_64_defconfig.
It doesn't appear that making GCC_PLUGINS depend on !COMPILE_TEST or
restricting RANDSTRUCT to only be enabled when CC_HAS_RANDSTRUCT is set
actually addresses the root cause.
I'm quite curious to know what the actual direct cause of this internal
GCC error is.
Thanks,
--
WangYuli
Attachment:
OpenPGP_0xC5DA1F3046F40BEE.asc
Description: OpenPGP public key
Attachment:
OpenPGP_signature.asc
Description: OpenPGP digital signature