[MacPorts] #67355: Compiling hdf5 with +gcc12

MacPorts noreply at macports.org
Thu May 4 20:42:24 UTC 2023


#67355: Compiling hdf5 with +gcc12
--------------------------+----------------------
  Reporter:  jvianalopes  |      Owner:  eborisch
      Type:  defect       |     Status:  assigned
  Priority:  Normal       |  Milestone:
 Component:  ports        |    Version:
Resolution:               |   Keywords:
      Port:  hdf5         |
--------------------------+----------------------

Comment (by jvianalopes):

 I was able to change CXXFLAGS using:
 sudo port -v install hdf5 +gcc12 +cxx +hl
 configure.ldflags="-stdlib=libstdc++" configure.cxx_stdlib="libstdc++"
 configure.cxxflags="-std=c++17"

 I was able to compile my code.

 trying to install with
 sudo port -v install hdf5 +gcc12 +cxx +hl configure.cxx_stdlib="libstdc++"

 fails to compile because to compile due Undefined symbols because LDFLAGS
 has "-stdlib=libc++":
 LDFLAGS: -L/opt/local/lib -Wl,-headerpad_max_install_names -stdlib=libc++
 -Wl,-rpath,/opt/local/lib/libgcc
 -Wl,-syslibroot,/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk
 -arch x86_64

 Thank you for the help!
 Cheers
 João

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


More information about the macports-tickets mailing list