NexGenAnalytics / MIT-MUQ

BSD 3-Clause "New" or "Revised" License
0 stars 1 forks source link

hdf5 build on mac M1 does not work via the new build_tpls script #50

Closed fnrizzi closed 2 months ago

fnrizzi commented 2 months ago

we get errors as:

[  0%] Generating H5TEST/tsizeslheap.h5
[  0%] Building C object src/CMakeFiles/H5detect.dir/H5detect.c.o
[  0%] Building C object src/CMakeFiles/H5make_libsettings.dir/H5make_libsettings.c.o
[  0%] Generating testfiles/h5diff_104.txt
[  0%] Generating H5TEST/tnullspace.h5
[  0%] Generating testfiles/h5diff_basic1.h5
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/_stdio.h:68,
                 from /opt/homebrew/Cellar/gcc@11/11.4.0/lib/gcc/11/gcc/aarch64-apple-darwin23/11/include-fixed/stdio.h:78,
                 from /Users/fnrizzi/Desktop/test/hdf5/hdf5-hdf5-1_8_19/src/H5make_libsettings.c:40:
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:554:30: error: missing ')' after "__has_attribute"
  554 | #if __has_cpp_attribute(clang::unsafe_buffer_usage)
      |                              ^
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/types.h:75,
                 from /Users/fnrizzi/Desktop/test/hdf5/hdf5-hdf5-1_8_19/src/H5public.h:38,
                 from /Users/fnrizzi/Desktop/test/hdf5/hdf5-hdf5-1_8_19/src/H5private.h:27,
                 from /Users/fnrizzi/Desktop/test/hdf5/hdf5-hdf5-1_8_19/src/H5detect.c:53:
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:554:30: error: missing ')' after "__has_attribute"
  554 | #if __has_cpp_attribute(clang::unsafe_buffer_usage)
      |                              ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:554:31: error:  ':' without preceding '?'
  554 | #if __has_cpp_attribute(clang::unsafe_buffer_usage)
      |                               ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:554:31: error:  ':' without preceding '?'
  554 | #if __has_cpp_attribute(clang::unsafe_buffer_usage)
      |                               ^
[  0%] Generating testfiles/h5diff_basic2.h5
[  0%] Generating H5TEST/err_compat_1
[  0%] Generating testfiles/h5diff_types.h5
[  0%] Generating H5TEST/err_compat_2
[  0%] Generating testfiles/h5diff_dtypes.h5
[  0%] Generating H5TEST/error_test_1
In file included from /Users/fnrizzi/Desktop/test/hdf5/hdf5-hdf5-1_8_19/src/H5private.h:1496,
                 from /Users/fnrizzi/Desktop/test/hdf5/hdf5-hdf5-1_8_19/src/H5detect.c:53:
/Users/fnrizzi/Desktop/test/hdf5/hdf5-hdf5-1_8_19/src/H5overflow.h:89:26: warning: "H5_SIZEOF_PTRDIFF_T" is not defined, evaluates to 0 [-Wundef]
   89 | #if H5_SIZEOF_UNSIGNED < H5_SIZEOF_PTRDIFF_T
      |                          ^~~~~~~~~~~~~~~~~~~
fnrizzi commented 2 months ago

this PR https://github.com/NexGenAnalytics/MIT-MUQ/pull/64 updates HDF5 and everything seems to pass