I compiled and ran HYCOM with gfortran 8.2.1 with no issues.
I have switched to using clang and flang now.
The unused command line argument is not critical. The boldface error is more worrisome:
flang -DIA32 -DREAL8 -DMPI -DENDIAN_IO -DTIMER -DARCTIC -DRELO -fPIC -O2 -mavx -m64 -fdefault-real-8 -fdefault-double-8 -fopenmp -march=znver1 -L/mnt/share/codes/hycom/LIBRARIES/openmpi-4.0.0_64_rhel_75/lib -I/mnt/share/codes/hycom/LIBRARIES/openmpi-4.0.0_64_rhel_75/include -c mod_xc.F
clang-7: warning: argument unused during compilation: '-fdefault-double-8' [-Wunused-command-line-argument]
clang-7: warning: argument unused during compilation: '-L/mnt/share/codes/hycom/LIBRARIES/openmpi-4.0.0_64_rhel_75/lib' [-Wunused-command-line-argument]
F90-S-0047-More than seven dimensions specified for array (/mnt/share/codes/hycom/LIBRARIES/openmpi-4.0.0_64_rhel_75/include/mpif-sizeof.h: 66)
SUBROUTINE MPI_Sizeof_character_r8(x, size, ierror)
CHARACTER, DIMENSION(1,1,1,1,1,1,1,*)::x
INTEGER, INTENT(OUT) :: size
INTEGER, INTENT(OUT) :: ierror
END SUBROUTINE MPI_Sizeof_character_r8
Has anyone ever seen this error before?
I did not get this error when compiling with gfortran. This is my first time trying flang on HYCOM.
It may be a syntactic corner case because it is a character buffer?
Still, I don't see how this has not happened before.