[MacPorts] #67355: Compiling hdf5 with +gcc12
MacPorts
noreply at macports.org
Wed May 3 08:22:27 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):
Hi,
I think this option is root of my problem.
In gcc12, using the -stdlib=libc++, deactivates the c++17 and as a
consequence in my code I have the error:
error: 'cyl_bessel_j' is not a member of 'std'
Compiling my code with -stdlib=libstdc++ works fine until the linking with
hdf5.
If hdf5 was compiled with -stdlib=libc++ it is not able to link because
the symbols are different.
Compiling hdf5 with -stdlib=libstdc++ it links without problems.
These options is set in the CXXFLAGS. Editing the PortFile with port edit,
configure.cxx_stdlib libstdc++
Doesn't change the CXXFLAGS variable (Checked with sudo port configure
hdf5 +gcc12 +cxx ; port logfile hdf5).
I don't know how to change CXXFLAGS with MacPorts.
Thanks in advance
--
Ticket URL: <https://trac.macports.org/ticket/67355#comment:6>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list