zlib-ng: cmake failure on armv6 and armv7
While trying to build zlib-ng 2.0.1 for armv6 and armv7, I get the following error:
[ 129s] -- Check size of void *
[ 131s] -- Check size of void * - failed
[ 131s] -- sizeof(void *) is bytes
[ 131s] CMake Error at CMakeLists.txt:453 (message):
[ 131s] sizeof(void *) is neither 32 nor 64 bit
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 21 (10 by maintainers)
Commits related to this issue
- Check support for ARM float-abi compiler flag auto-detected value. #911 — committed to nmoinvaz/zlib-ng by nmoinvaz 3 years ago
- Check support for ARM float-abi compiler flag auto-detected value. #911 — committed to nmoinvaz/zlib-ng by nmoinvaz 3 years ago
- Check support for ARM float-abi compiler flag auto-detected value. #911 — committed to nmoinvaz/zlib-ng by nmoinvaz 3 years ago
- Check support for ARM float-abi compiler flag auto-detected value. #911 — committed to nmoinvaz/zlib-ng by nmoinvaz 3 years ago
- Changed auto-detection of float-abi support by removing triplet check in favor of compilation and link test. #911 — committed to nmoinvaz/zlib-ng by nmoinvaz 3 years ago
- Changed auto-detection of float-abi support by removing triplet check in favor of compilation and link test. #911 — committed to zlib-ng/zlib-ng by nmoinvaz 3 years ago
develop
branch works properly:Thanks!
according to this part, you need add
-DCMAKE_C_FLAGS=-mfloat-abi=hard
to cmake command line as a workaround.meanwhile it requires developers to update arm float-abi detection.