[MacPorts] #71930: hdf5 +gcc14: Undefined symbols

MacPorts noreply at macports.org
Sat Mar 15 22:12:05 UTC 2025


#71930: hdf5 +gcc14: Undefined symbols
--------------------------+----------------------
  Reporter:  jvianalopes  |      Owner:  eborisch
      Type:  defect       |     Status:  assigned
  Priority:  Normal       |  Milestone:
 Component:  ports        |    Version:
Resolution:               |   Keywords:
      Port:  hdf5         |
--------------------------+----------------------

Comment (by jvianalopes):

 Installing the hdf5 with

 * sudo port -v install hdf5 +gcc14 +cxx +hl
 configure.cxx_stdlib="libstdc++"

 Looking to the config.log file I see

 * LDFLAGS='-L/opt/local/lib -Wl,-headerpad_max_install_names
 -stdlib=libc++
 -Wl,-syslibroot,/Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk
 -arch arm64'

 I believe the problem is in the option -stdlib=libc++
 ----

 Installing hdf5 with:

 * sudo port -v install hdf5 +gcc14 +cxx +hl
 configure.cxx_stdlib="libstdc++" \

   configure.ldflags="-L/opt/local/lib -Wl,-headerpad_max_install_names
 -Wl,-syslibroot,/Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk
 -arch arm64"

 I can compile it without problems.

 Is there a way of removing the "-stdlib=libc++" from the LDFLAGS?

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


More information about the macports-tickets mailing list