HDFGroup / hdf5

Official HDF5® Library Repository
Other
543 stars 236 forks source link

C++ wrapper tests build issue on aarch64 due to _Float16 type #4517

Open jhendersonHDF opened 1 month ago

jhendersonHDF commented 1 month ago

Describe the bug HDF5 1.14.4 (and the develop branch) cannot be built on aarch64 when C++ is enabled due to the C++ tests including H5private.h and failing when encountering the _Float16 type. More context in #4495 and #4507. Reported by @wswsmao.

Expected behavior HDF5 can be built on aarch64 with C++ enabled

Platform (please complete the following information)

Additional context HDF5's C++ wrapper tests should be refactored to reduce the usage of private header files from the C library and avoid including H5private.h.

jebos commented 2 weeks ago

This issue also causes that you can not build the library (c++) for IOS. Using AppleClang with arm64 runs in the exact same issue. Disabling float16 (which is disabled in cmake configure) does not help.

jhendersonHDF commented 2 weeks ago

Hi @jebos, is the failure you're seeing what's reported in #4578? If so, it shouldn't be related to this issue but rather due to missing getcwd on IOS.

jebos commented 2 weeks ago

You are right, first i thought so since the error seemed in the same area and architecture. But it's not related.

byrnHDF commented 1 week ago

The CI for macos-14 has disabled the C++ option until a resolution is found.