Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build issue on macos12.6 #186

Closed
t20100 opened this issue Oct 18, 2022 · 0 comments · Fixed by #200
Closed

Build issue on macos12.6 #186

t20100 opened this issue Oct 18, 2022 · 0 comments · Fixed by #200
Milestone

Comments

@t20100
Copy link
Member

t20100 commented Oct 18, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant