HDFGroup / HDFGroup/hdf5

Failed to build with thread-safe option set on Android

Open
#4,987 1 comment 0 reactions 1 assignee Claimed by @derobins View on GitHub
Component - Build
Dominant language
C
Stars
988
Forks
355
Avg merge
4d 2h
Merged PRs (30d)
12

Description

Enabling thread-safe build results in compile error.
```
ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
```
Missing functions are `pthread_cancel` and `pthread_setcancelstate`

Platform
- HDF5 version: develop
- OS and version: Windows 11 Pro
- Compiler and version: android-ndk-27c
- Build system: CMake 3.30.5
- Any configure options you specified:
ONLY_SHARED_LIBS=ON
HDF5_ENABLE_THREADSAFE=ON
HDF5_BUILD_HL_LIB=ON
HDF5_BUILD_CPP_LIB=ON ALLOW_UNSUPPORTED=ON
- MPI library and version (parallel HDF5): OFF

**Additional context**
Add any other context about the problem here.

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.