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>(Λ)