gcc15 and cmake 4.0.1: errors at cross-building cmake

Hi guys,
I’m in upgrade process of gcc from 14.2.0 to 15.1.0 in my distros and have issue with cross-compiling cmake 4.0.1 for my toolchain.

Cross-build erorr is like this: gist:d171eaf91b52dd999a2cf9019342d558 · GitHub

I’m not sure is it: gcc15 bug or cmake 4.0.1 incompability with gcc15?

Can somebody hint me how to move froward with this issue?