Re: Build error in next-20260223 gcc-plugins/latent_entropy_plugin.so

From: Kees Cook

Date: Wed Feb 25 2026 - 02:37:13 EST


On Wed, Feb 25, 2026 at 12:20:01AM -0500, Valdis Klētnieks wrote:
> Building next-20260223 dies an early death:
>
> HOSTLD arch/x86/tools/relocs
> HOSTCC arch/x86/tools/vdso2c
> HOSTCXX scripts/gcc-plugins/latent_entropy_plugin.so
> In file included from scripts/gcc-plugins/latent_entropy_plugin.c:78:
> scripts/gcc-plugins/gcc-common.h: In function 'void debug_tree(const_tree)':
> scripts/gcc-plugins/gcc-common.h:417:20: error: 'CONST_CAST_TREE' was not declared in this scope; did you mean 'CONST_CAST_EXPR'?
> 417 | debug_tree(CONST_CAST_TREE(t));
> | ^~~~~~~~~~~~~~~
> | CONST_CAST_EXPR
> scripts/gcc-plugins/gcc-common.h: In function 'void debug_gimple_stmt(const_gimple_ptr)':
> scripts/gcc-plugins/gcc-common.h:312:47: error: expected primary-expression before ',' token
> 312 | #define CONST_CAST_GIMPLE(X) CONST_CAST(gimple, (X))
> | ^
> scripts/gcc-plugins/gcc-common.h:422:27: note: in expansion of macro 'CONST_CAST_GIMPLE'
> 422 | debug_gimple_stmt(CONST_CAST_GIMPLE(s));
> | ^~~~~~~~~~~~~~~~~
> scripts/gcc-plugins/gcc-common.h:312:30: error: 'CONST_CAST' was not declared in this scope; did you mean 'CONST_INT'?
> 312 | #define CONST_CAST_GIMPLE(X) CONST_CAST(gimple, (X))
> | ^~~~~~~~~~
> scripts/gcc-plugins/gcc-common.h:422:27: note: in expansion of macro 'CONST_CAST_GIMPLE'
> 422 | debug_gimple_stmt(CONST_CAST_GIMPLE(s));
> | ^~~~~~~~~~~~~~~~~
> make[3]: *** [scripts/gcc-plugins/Makefile:54: scripts/gcc-plugins/latent_entropy_plugin.so] Error 1
> make[2]: *** [scripts/Makefile.build:546: scripts/gcc-plugins] Error 2
> make[1]: *** [/usr/src/linux-next/Makefile:1316: scripts] Error 2
> make: *** [Makefile:248: __sub-make] Error 2
>
> 'git blame' isn't showing any recent changes..
>
> next-20260109 built OK. Any ideas before I start bisecting in more detail?
>
> ????????

Which GCC version?

--
Kees Cook