[MacPorts] #66208: hdf5 @1.12.2_0+cxx+gcc12+hl: Port hdf5 is still broken (cxx_stdlib mismatch) after rebuilding it more than 3 times.

MacPorts noreply at macports.org
Tue Nov 29 16:52:35 UTC 2022


#66208: hdf5 @1.12.2_0+cxx+gcc12+hl: Port hdf5 is still broken (cxx_stdlib
mismatch) after rebuilding it more than 3 times.
------------------------+----------------------
  Reporter:  massonseb  |      Owner:  eborisch
      Type:  defect     |     Status:  assigned
  Priority:  Normal     |  Milestone:
 Component:  ports      |    Version:  2.8.0
Resolution:             |   Keywords:
      Port:  hdf5       |
------------------------+----------------------

Comment (by massonseb):

 >Just curious. *why* are you trying to install using gcc12 ? Using gcc to
 build c++ sources is problematic on macOS, due to the potential for mixing
 incompatible c++ runtimes (libstdc++ versus libc++). Generally speaking
 its better to just stick to the defaults, which in this case work.

 I need to compile a fortran code with with MPI. This code also needs
 NetCDF that must be linked with an hdf5 library compiled with `--enable-
 parallel` (so the NetCDF command `nc-config --has-parallel` returns
 `yes`). \\
 Having said that, I would like to try gcc and openmpi to compile my code.
 \\

 I thought (but I may be wrong) that I should use gcc+openmpi to compile
 NetCDF and HDF5, as I will use gcc+openmpi to compile my fortran code.
 I am always afraid to mix-up libraries compiled with different compilers…

 Another point that is not clear to me: \\
 If I select `openmpi-gcc12-fortran` as the default version for mpi with
 `sudo port select —set mpi openmpi-gcc12-fortran` Which openmpi is used
 when doing `sudo port install hdf5 +openmpi`? is it openmpi-gcc12 that I
 selected?

-- 
Ticket URL: <https://trac.macports.org/ticket/66208#comment:10>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list