-
Notifications
You must be signed in to change notification settings - Fork 52
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
ARM Intrinsics don't build on clang #21
Comments
I also had to comment those lines in CMakeLists.txt, because clang doesn't support the -march=native flag on M1 chips:
See https://stackoverflow.com/questions/65966969/why-does-march-native-not-work-on-apple-m1 |
I've started work on this and will submit a pull request |
@gliwka I'm currently doing a rework of the SIMD support, I will tackle the clang issues there, thanks for the heads up! Work in progress, can be seen in branch templates-refactor. |
Clang support has been added in #81 for all platforms! :) |
Known issue: Clang (Android NDK) won't compile with NEON (but GCC should), see VectorCamp/vectorscan#21
Is this issue fixed in the recent releases of
Build fail details:
Contents of
Thank you. |
we haven't added clang 18 to our CI yet, but we will do so. Could you please add a new issue for clang 18? |
Sure. I ran into the same issue w Clang15, Clang17. Is there a version of Clang which has this fixed? Thanks |
clang 15/17 are already tested on aarch64 linux and they should work fine, could you please paste your cmake cmd? |
|
I was talking about cmake invocation |
@RamaMalladiAWS sorry, which project is that? there is no file src/unicode_ops.cpp in Vectorscan. |
Sorry for the mixup, this isn't Vectorscan project. I was trying to build another test and ran into this same Clang issue. |
I'm trying to build vectorscan on an ARM machine using clang (arm64, macOS, M1 chip). Clang compilation works on x86_64, but fails on ARM. The build fails while compiling the NEON intrinsics:
Version (clang -v):
Compiler output:
It seems like clang doesn't understand how to inline parameters it expects to be constant.
Maybe some of the abstraction functions for the intrinsics need to be converted to macros?
The text was updated successfully, but these errors were encountered: