Currently-xCORE-AVX2 flags are set in the CMake build:
https://github.com/ACCESS-NRI/MOM5/blob/master/cmake/CMakeLists.txt#L54-L58
This causes an error on AMD architectures. We have a Pawsey porting goal which uses a similar architecture, which would also trip over the same issue.