Skip to content
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 does not build on macOS Monterey with GCC 11.2 #1157

Closed
eschnett opened this issue Nov 2, 2021 · 1 comment
Closed

HDF5 does not build on macOS Monterey with GCC 11.2 #1157

eschnett opened this issue Nov 2, 2021 · 1 comment
Assignees

Comments

@eschnett
Copy link

eschnett commented Nov 2, 2021

I want to build HDF5 1.10.7 with GCC 11.2 on macOS Monterey. This used
to work fine on the previous version of macOS. It currently fails
because the autodetection of the Fortran kind variables fails. I tried
HDF5 1.10.6 and 1.12.1 as well, with the same result.

I found that the problem is that the output file is not closed by the
Fortran program that is run at configuration time. The enclosed patch
corrects the issue by adding respective "close" statements that are
present in all other, similar Fortran programs.

--- a/config/cmake/HDF5UseFortran.cmake
+++ a/config/cmake/HDF5UseFortran.cmake
@@ -181,6 +181,7 @@
          WRITE(8,'(I0)') max_decimal_prec
          WRITE(8,'(I0)') num_ikinds
          WRITE(8,'(I0)') num_rkinds
+         CLOSE(8)
       END PROGRAM FC_AVAIL_KINDS
   "
 )
--- a/m4/aclocal_fc.f90
+++ b/m4/aclocal_fc.f90
@@ -151,6 +151,7 @@
      WRITE(8,'(I0)') max_decimal_prec
      WRITE(8,'(I0)') num_ikinds
      WRITE(8,'(I0)') num_rkinds
+     CLOSE(8)
 END PROGRAM FC_AVAIL_KINDS
 !---- END ----- Determine the available KINDs for REALs and INTEGERs
 
@byrnHDF byrnHDF self-assigned this Nov 3, 2021
lrknox pushed a commit that referenced this issue Nov 18, 2021
* Use stdout instead of file for configure check

* Make change requested by #1157

* Change fortran to use stderr for configure

* Correct typo

* remove obsolete file check

* Fortran statement fix
lrknox pushed a commit that referenced this issue Dec 8, 2021
* Convert SWMR shell scripts to Windows powershell.

* Use $LastExitCode instead of $? in script

* Prevent execution in a different window

* Github #969 Use stdout instead of file for configure check (#1089)

* Use stdout instead of file for configure check

* Make change requested by #1157

* Change fortran to use stderr for configure

* Correct typo

* remove obsolete file check

* Fortran statement fix

* Don't allow H5Pset(get)_all_coll_metadata_ops for DXPLs (#1201)

* Fixes const warnings in H5ES package (#1211)

* Quiets a 'set but not used' warning in h5diff_array.c (#1210)

* Convert vds swmr test script to powershell

* Enable vdsswmr powershell test

* Add configure vdsswmr statement

* Correct powershell script vars

* Convert SWMR shell scripts to Windows powershell.

* Use $LastExitCode instead of $? in script

* Prevent execution in a different window

* Github #969 Use stdout instead of file for configure check (#1089)

* Use stdout instead of file for configure check

* Make change requested by #1157

* Change fortran to use stderr for configure

* Correct typo

* remove obsolete file check

* Fortran statement fix

* Convert vds swmr test script to powershell

* Enable vdsswmr powershell test

* Add configure vdsswmr statement

* Correct powershell script vars

* Cleanup review issues

* Fix variable assignment

* Change the wait function to pass in the path

* Disable actual test execution until programs fixed

* Adjust copyright text

* Fix spelling

Co-authored-by: jhendersonHDF <jhenderson@hdfgroup.org>
Co-authored-by: Dana Robinson <43805+derobins@users.noreply.github.com>
@byrnHDF
Copy link
Contributor

byrnHDF commented Jan 7, 2022

#969 and other merges fix this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants