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
compilation error with arm neon and gcc 11.2.1 #383
Comments
Could you please check if this worked with Embree 3.13.3? |
I confirm the issue with version 3.13.4 on aarch64 architecture which suggests a regression compared to the previous version with GCC compiler.
The macros in The same codes lines works fine on v3.13.3 hence this log which potentially shows a regression on v3.13.4. |
I also recommend updating README.md which reads:
That's misleading because people think that they need Appli M1 CPU, while a generic AArch64 CPU is enough. |
The problem is caused by erroneous changes for the Apple silicon support. The flags are set in e.g. But for anything but I.e. all conditionals depending on |
I can confirm the issue in 3.13.5 on Mageia Cauldron aarch64, while 3.13.3 built fine. I believe this was fixed by 82ca6b5, but 3.13.6 was never released with the fix (and now 4.0.0 is a compat breaking update). |
Please just stay on Embree 3.13.3 when you compat with Embree 3 is important. Otherwise switching to Embree 4 should be straight forward. |
The correct answer is "Use Embree 3.13.5 and cherry-pick 82ca6b5". Otherwise, one misses the fixes in 3.13.4/3.13.5. |
Or even simpler, pass |
When trying to build embree under aarch64, cmake doesn't detect arm neon and enables the -msse2 flag instead, which causes a compiler error.
gcc does support arm neon though with the header file "arm_neon.h" and the macro __ARM_NEON.
Manually enabling EMBREE_ARM in cmake gives the following error output for the first 4 files:
build-embree.log
embree compiles successfully, when using clang
The text was updated successfully, but these errors were encountered: