Build issue on macos12.6
t20100 opened this issue · comments
Thomas VINCENT commented
Failed to build with macos12.6 on a x86_64 CPU, python3.10 with default build options.
First error:
clang: error: the clang compiler does not support '-march=native'
This option was apparently not available for clang on ARM before v15.0.0
Using HDF5PLUGIN_NATIVE=False
fixes it error, but build fails later with:
src/c-blosc/blosc/bitshuffle-avx2.c:22:4: error: AVX2 is not supported by the target architecture/platform and/or this compiler.
...
This seems to be due to building fat library (-arch arm64 -arch x86_64
options) with initial option detection being run only on host architecture.