#22480: Fortran and MPI support for hdf5-18 ---------------------------------------+------------------------------------ Reporter: ryusuke.numata@… | Owner: mmoll@… Type: enhancement | Status: reopened Priority: Normal | Milestone: Component: ports | Version: 1.8.1 Resolution: | Keywords: Port: hdf5-18 | ---------------------------------------+------------------------------------ Changes (by jcharris@…): * status: closed => reopened * resolution: invalid => Comment: As far as I can tell, HDF5 does work with Fortran and MPI at this point, and it is relatively simple to setup. See attached patch. Some combination of the originally submitted patch and my attached patch may work best. For an openmpi variant, openmpi depends on gcc44, so Fortran is already installed. In order to get hdf5-18 to work with Fortran, one just needs to set the --enable-fortran flag and remove the -arch flag, as in the gcc44 variant (because gfortran, as configured in MacPorts, does not support it -- although this is an issue of how it's setup in MacPorts, as gfortran, as I understand it, can be setup to support -arch). One could point out that the patch that I have attached does not allow one to do something like "sudo port install hdf5-18 +openmpi +gcc44" to combine the MPI-enabling and Fortran-enabling variants -- but (a) openmpi depends on gcc44 already, so the functionality should be added into hdf5-18; (b) if desired, instead of having +openmpi set the compiler, one could have the Fortran compiler set by the +gcc44 variant, and have +openmpi add the necessary flags "-I/opt/local/include/openmpi -I/opt/local/lib -L/opt/local/lib -lmpi_f90 -lmpi_f77 -lmpi" (which one can see by running 'openmpif90 -showme'). -- Ticket URL: <https://trac.macports.org/ticket/22480#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS