I tried upgrading my Xcode and CLI Tools to 14.2, but unfortunately the error persists. Downgrading is not an option because MacOS complains that version 13.x is too old for the current version of the OS. I wouldn’t like to use Clang because openmp parallelization is incompatible with it, only MPI. I’ll upgrade Xcode and CLI to 14.3 beta, and if it doesn’t work, then I’ll go for Clang.
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.
Thanks for your comment. Have you performed some tests with it? The nice thing about being able to perform the tests, I guess, is that one would be sure that no unexpected results would come by due to some weird bug due to compiler issues.