HDFGroup / HDFGroup/hdf5

hdf5 1.14.4 fails to build for IOS Arm64

Open
#4,578 3 comments 0 reactions 1 assignee Assigned to @jhendersonHDF View on GitHub
Component - Build
Dominant language
C
Stars
988
Forks
355
Avg merge
4d 2h
Merged PRs (30d)
12

Description

**Describe the bug**
Building on MacOSX for IPhoneOS / IPadOS fails.

/hdf5/src/H5system.c:708:22 Call to undeclared function 'getcwd'; ISO C99 and later do not support implicit function declarations

**Expected behavior**
hdf5 can be built for IOS

**Platform*
- Version: 1.14.2 ,3 ,4
- Build Machine: MacOSX, MacBookPro 2021, Intel Hardware
- Build Target: Arm64, IPhoneOS 13 / IPadOS 13
- AppleClang
- CMake

set(HDF5_EXTERNALLY_CONFIGURED ON)
set(BUILD_TESTING OFF CACHE BOOL "Build HDF5 Unit Testing")
set(BUILD_SHARED_LIBS OFF CACHE BOOL "Build Shared Libraries" FORCE)
set(BUILD_STATIC_LIBS ON CACHE BOOL "Build STATIC Libraries" FORCE)
set(ONLY_SHARED_LIBS OFF CACHE BOOL "Build ONLY Shared Libraries" FORCE)
set(HDF5_BUILD_CPP_LIB ON CACHE BOOL "Build HDF5 C++ Library")
set(HDF5_BUILD_HL_LIB OFF CACHE BOOL "Build HIGH Level HDF5 Library")
set(HDF5_BUILD_TOOLS OFF CACHE BOOL "Build HDF5 Tools")
set(HDF5_BUILD_EXAMPLES OFF CACHE BOOL "Build HDF5 Library Examples")
set(HDF5_GENERATE_HEADERS OFF CACHE BOOL "Generate Headers")
set(HDF5_NO_PACKAGES ON CACHE BOOL "No Packaging hdf5")
set(HDF5_ENABLE_PARALLEL OFF CACHE BOOL "Enable parallel build (requires MPI)")
set(HDF5_ENABLE_S_LIB_SUPPORT OFF CACHE BOOL "" FORCE)
set(HDF5_ENABLE_Z_LIB_SUPPORT OFF CACHE BOOL "" FORCE)
set(HDF5_BUILD_UTILS OFF CACHE INTERNAL "" FORCE)

**Additional context**
Configure works fine, issue happens on building.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.