Missing libhdf5_fortran in 1.12.1 version

I am installing hdf5-1.12.1 (this version needed by another software) with --enable-fortran and --enable-parallel in my $HOME on Ace-Net Linux cluster using default intel and openmpi modules. The “make” finishes without error. However, in the /lib folder, I have the followings:

libhdf5.a libhdf5.settings libhdf5.so.200
libhdf5.la libhdf5.so libhdf5.so.200.1.0

It seems that libhdf5_fortran is not made.

Another issue is that I get the following error with “make install”:

make[2]: Entering directory ‘/home/vaskarpo/bin/hdf5-1.12.1/bin’
/cvmfs/soft.computecanada.ca/gentoo/2023/x86-64-v3/usr/bin/mkdir -p ‘/home/vaskarpo/bin/hdf5-1.12.1/bin’
/cvmfs/soft.computecanada.ca/custom/bin/install -c h5redeploy ‘/home/vaskarpo/bin/hdf5-1.12.1/bin’
/cvmfs/soft.computecanada.ca/gentoo/2023/x86-64-v3/usr/bin/install: ‘h5redeploy’ and ‘/home/vaskarpo/bin/hdf5-1.12.1/bin/h5redeploy’ are the same file
make[2]: *** [Makefile:815: install-binSCRIPTS] Error 1
make[2]: Leaving directory ‘/home/vaskarpo/bin/hdf5-1.12.1/bin’
make[1]: *** [Makefile:1050: install-am] Error 2
make[1]: Leaving directory ‘/home/vaskarpo/bin/hdf5-1.12.1/bin’
make: *** [Makefile:715: install-recursive] Error 1

Any suggestions would be appreciated as to how to get the -lhdf5_fortran and to avoid the “make install” error.

Thanks,
Vahid

I ran …/hdf5-1.12.1/configure --enable-parallel --enable-fortran; make; makeinstall where hdf5-1.12.1 is the source from GitHub - HDFGroup/hdf5: Official HDF5® Library Repository with the hdf5-1_12_1 tag for the HDF5 1.12.1 release. I didn’t specify an install prefix, consequently make install installed to the default <build directory>/hdf5. <build directory>/hdf5/lib included libhdf5_fortran.a, libhdf5_fortran.so.200.1.0, libhdf5hl_fortran.a, libhdf5hl_fortran.so.200.0.1, and the usual symlinks to those .so libs.

Comparing my make install log to what you’ve posted, it looks like your install tried to install to the same bin directory as the bin directory in the source, and possibly make install stopped running after that error, before it finished installing the fortran lib files. I suggest that if possible you try mkdir <build directory> either as a subdirectory of the source or outside the source, then …/configure … or <path to configure>/configure …, and either let the install directory use the default <build directory>/hdf5 directory, or use --prefix=<an install directory> that is different from the source directory.

Hopefully that will help.
Larry