Problem with HDF5 and cmake


#1

I downloaded a source code, installed HDF5 and LABLAS (which were require by this code) and then tried to compile FASTMM with cmake but unfortunately I got the following error:

9 | use hdf5
 |    1
Fatal Error: Cannot read module file ‘hdf5.mod’ opened at (1), because it was created by a different version of GNU Fortran
compilation terminated.
make[2]: *** [CMakeFiles/FaSTMM.dir/build.make:115: CMakeFiles/FaSTMM.dir/io.f90.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:76: CMakeFiles/FaSTMM.dir/all] Error 2

make: *** [Makefile:84: all] Error 2

Does somebody have idea about how to solve it?
Thanks a lot in advance.


#2

Do you have more than one compiler installed on your system?

If you did a parallel build of HDF5, maybe your MPI install was built using a different compiler version then what your other programs used.

I would double-check that all your builds are using the same compiler, and explicitly set the FC ENV if needed.