[x] Ubuntu pkg-config is broken for hdf5-fortran: add the Fortran High-Level (hl_fortran) libraries manually (see meson)
[x] oneAPI compilers: upgrade to 2024.1.0 (HDF5 build fails with <=2023), move to setup-fortran action
[x] oneAPI + HDF5: install HDF5 using CMake (apt version uses gfortran only)
[x] oneAPI: remove -standard-semantics from default flags: it changes module name mangling from _mp_ to _MP_ which crashes linking against external libraries (HDF5 but also #1034)
HDF5 comes with compiler wrappers (h5fc, h5cc, h5cxx). These are often unreliable.
For example, they do not work when the library is built with CMake for Homebrew.
So, do like meson: get hdf5 information via pkg-config.
To achieve that, implement a pkg-config backend for the metapackages.
setup-fortran
actiongfortran
only)-standard-semantics
from default flags: it changes module name mangling from_mp_
to_MP_
which crashes linking against external libraries (HDF5 but also #1034)HDF5 comes with compiler wrappers (
h5fc
,h5cc
,h5cxx
). These are often unreliable. For example, they do not work when the library is built with CMake for Homebrew. So, do like meson: get hdf5 information via pkg-config. To achieve that, implement a pkg-config backend for the metapackages.cc: @henilp105 @arteevraina @awvwgk @gnikit @fortran-lang/fpm