No, this issue is not restricted to Mac. I compile on Merlin6 with gcc/9.3.0 getting the same compile error.
A warning -Waggressive-loop-optimizations is thrown due to Trilinos/12.18.1. Since we force -Werror in OPAL, we get a compile error. The warning disappears when we reduce the optimization level from -O3 to -O2.
When I compile OPAL with Trilinos/12.14.1 and gcc/7.3.0, I have not experienced this issue. Since I assume that gcc/7.3.0 would also catch this warning, I think, this issue was introduced in a later version of Trilinos.
If I try to compile with ENABLE_IPPL_TESTS=ON I got more aggressive loop optimisation errors. Maybe the best solution is to disable this optimisation with -fno-aggressive-loop-optimizations global. This way we do not loose the other optimisations.