Error compiling Gromacs 2023's checks on Mac M2

I see now that I have the same issue after upgrading the operating system on my M2 MacBook Air to Venture 13.2.1 and my macports to the newest version with gcc 12.2.0.

But the issue is only in building the test and the gmx binary seems to work fine.