Closed fxcoudert closed 3 years ago
The tests currently run by gcc_clang_intrinsics.cmake are only meaningful on x86_64, so we can just disable them on arm64. I've added this to my portable build improvements branch https://github.com/open-quantum-safe/liboqs/pull/941/commits/b1a9f0cd67a8915246dec26a399e572e8a63f11c.
For now you should be able to compile with "-DOQS_USE_CPU_EXTENSIONS=OFF".
@fxcoudert could you let us know if this is resolved on main (b36ff9f17c0239f3c0121d9eeaf9ac053df85467)?
I'm going to close this. We've made significant changes to the relevant part of the build system since this report came in. If we're still failing on M1 it's not for the same reason, and we need a new report.
Hi @jschanck 👋 it looks the new release still failed on 11-arm. I just opened a new issue tracker on this compilation problem. (#1018)
See build at https://github.com/Homebrew/homebrew-core/pull/73484
The reason is that the Apple clang compiler does not support
-march=native
for arm64 (don't ask me why):