-
-
Notifications
You must be signed in to change notification settings - Fork 265
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
hdf5 fails to build with Xcode 15 / macOS Sonoma #3571
Comments
I've filed the bug with Apple as FB13194355 |
@fxcoudert, thank you for the report. Macports users are now running into this, unknown |
Note: |
@fxcoudert, can you test with |
History: |
@Dave-Allured we build HDF5 with Fortran support in Homebrew. We've worked around the issue by forcing use of the old linker: Homebrew/homebrew-core#144559 |
@fxcoudert, thanks. I will see if that can be worked into Macports. |
It also will fail with Fortran disabled but with parallel enabled. At least with mpich, since it includes the -commons in the mpicc wrapper. |
I searched several versions of HDF5 source code. COMMON and EQUIVALENCE were used only in fortran, and only in the 1.8 release series (and maybe earlier), lately in the single file H5f90global.f90. I believe that Would someone at HDF5 please verify this finding? Thank you. User programs that use COMMON or EQUIVALENCE will probably still need to compile and link with |
You are correct, it was overlooked when we removed the use of COMMON and EQUIVALENCE in the switch to Fortran 2003. Thanks. |
Will also be fixed in 1.10.11 and 1.12.3 |
. Revert workaround for Sonoma/Xcode 15.0. `ld_classic` is no longer needed with HDF5 1.14.3. HDFGroup/hdf5#3571 HDFGroup/hdf5#3581 "Removed "-commons" linking option on Darwin" https://github.com/HDFGroup/hdf5/blob/hdf5_1_14_3/release_docs/RELEASE.txt
. Revert workaround for Sonoma/Xcode 15.0. `ld_classic` is no longer needed with HDF5 1.14.3. HDFGroup/hdf5#3571 HDFGroup/hdf5#3581 "Removed "-commons" linking option on Darwin" https://github.com/HDFGroup/hdf5/blob/hdf5_1_14_3/release_docs/RELEASE.txt
Describe the bug
Compilation with Xcode 15 (on macOS Sonoma) leads to a build error:
Apple ships with Xcode 15 and macOS Sonoma a new linker, which does not accept the
-commons
option.This commons from hdf5 configure at
hdf5/configure.ac
Line 1082 in 95907ba
Expected behavior
Successful install :)
Platform (please complete the following information)
./configure --disable-dependency-tracking --disable-silent-rules --enable-build-mode=production --enable-fortran --enable-cxx --prefix=/opt/homebrew/Cellar/hdf5/1.14.2 --with-szlib=/opt/homebrew/opt/libaec
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: