Problem installing hdf5-1.10.5

I’m trying to compile and install hdf5-1.10.5 on CentOS 7 linux box, and got the error complaing h5fortkit.mod was compiled by a different gfortran version (see below). Does any one what I need to install to have the right h5fortkit.mod version? Thank you! -Jianfu

PPFC H5Pff.lo
libtool: compile: gfortran -I. -I…/…/src -pedantic -Wall -Wextra -Wunderflow -Wimplicit-interface -Wsurprising -Wno-c-binding-type -s -O2 -I…/…/src -I…/…/fortran/src -c H5Pff.F90 -fPIC -o .libs/H5Pff.o
H5Pff.F90:43:6:
USE H5fortkit
Fatal Error: Cannot read module file ‘h5fortkit.mod’ opened at (1), because it was created by a different version of GNU Fortran