zlib-ng: AppleClang 8: error: initializing '__m256i' (vector of 4 'long long' values) with an expression of incompatible type 'int'
I library I use (ITK) recently updated to zlib-ng 2022-04-27 (d41f8ead) (from what I’m not sure) and it now fails to build on macOS 10.11 with AppleClang 8, with:
/Users/builder/external/ITK/Modules/ThirdParty/ZLIB/src/itkzlib-ng/arch/x86/adler32_avx2.c:55:13: error: initializing '__m256i' (vector of 4 'long long' values) with an expression
of incompatible type 'int'
__m256i vs1 = _mm256_zextsi128_si256(_mm_cvtsi32_si128(adler));
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/builder/external/ITK/Modules/ThirdParty/ZLIB/src/itkzlib-ng/arch/x86/adler32_avx2.c:56:13: error: initializing '__m256i' (vector of 4 'long long' values) with an expression
of incompatible type 'int'
__m256i vs2 = _mm256_zextsi128_si256(_mm_cvtsi32_si128(sum2));
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
See: https://open.cdash.org/viewBuildError.php?buildid=7889929
Perhaps X86_AVX2_ADLER32
should not be set for this compiler and/or macOS deployment target?
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 17 (12 by maintainers)
Commits related to this issue
- Fixed issue #1264: Use fallback for _mm256_zextsi128_si256 on Xcode < 9.3 — committed to seanm/zlib-ng by seanm 2 years ago
- Fixed issue #1264: Use fallback for _mm256_zextsi128_si256 on Xcode < 9.3 — committed to seanm/zlib-ng by seanm 2 years ago
- Fixed issue #1264: Use fallback for _mm256_zextsi128_si256 on Xcode < 9.3 — committed to seanm/zlib-ng by seanm 2 years ago
- Fixed issue #1264: Use fallback for _mm256_zextsi128_si256 on Xcode < 9.3 — committed to zlib-ng/zlib-ng by seanm 2 years ago
I have a patch coming…
You should try modifying
fallback_builtins.h
, so it uses the fallback version… I don’t have AppleClang, so I can’t make a patch. AppleClang should have__apple_build_version__
defined.