[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 15:20:37 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 eborisch):

 Replying to [comment:7 cjones051073]:
 > 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++). Genrially speaking
 its better to just stick to the defaults, which in this case work.

 Chris, the CXXFLAGS are missing `-stdlib=libc++`, while it is set in
 LDFLAGS. I can reproduce this on my x86_64 system, FWIW. The hdf5 port,
 following the discussion in https://github.com/macports/macports-
 ports/pull/16629 , leaves these details to the compilers (via mpi)
 PortGroup. Let me know if there is something I can test to help resolve
 this.

 That said, I echo your concerns; is there a reason you (massonseb) need to
 use gcc12? (Or is there some port that is trying to install this that
 thinks it needs it?)

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


More information about the macports-tickets mailing list