[MacPorts] #67893: hdf5 needs -D_GLIBCXX_USE_CXX11_ABI=0 (at least on older systems)

MacPorts noreply at macports.org
Wed Aug 2 13:07:04 UTC 2023


#67893: hdf5 needs -D_GLIBCXX_USE_CXX11_ABI=0 (at least on older systems)
---------------------------+----------------------
  Reporter:  barracuda156  |      Owner:  eborisch
      Type:  defect        |     Status:  assigned
  Priority:  Normal        |  Milestone:
 Component:  ports         |    Version:  2.8.1
Resolution:                |   Keywords:
      Port:  hdf5          |
---------------------------+----------------------

Comment (by barracuda156):

 Replying to [comment:1 kencu]:
 > it looks like hdf5 doesn’t build c++ by default…
 >
 > https://github.com/macports/macports-
 ports/blob/master/science/hdf5/Portfile
 >
 > have you manually added the experimental c++ variant?
 >
 > https://github.com/macports/macports-
 ports/blob/818e6a772d912d74344f887f0a500e68feacb38f/science/hdf5/Portfile#L127
 >
 > I don’t see a c++ standard set in the portfile, so there could be issues
 if other ports that use the library do set one.
 >
 > basically, libraries, and consumers of libraries, generally need to use
 a matching c++ standard.

 Looks like it is among default ones:
 https://github.com/macports/macports-
 ports/blob/818e6a772d912d74344f887f0a500e68feacb38f/science/hdf5/Portfile#L73
 It might have issues with MPICH though, possibly.

 What would be a solution to try? Set cxx_standard 2011, rebuild and see if
 that solves the issue?

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


More information about the macports-tickets mailing list