jedisct1 / libsodium

A modern, portable, easy to use crypto library.

Home Page:https://libsodium.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

android-ndk-r26-rc1 build error for stable

calvin2021y opened this issue · comments

toolchains/llvm/prebuilt/darwin-x86_64/lib/clang/17/include/arm_neon.h:62829:32: error: always_inline function 'vget_high_p64' requires target feature 'crypto', but would be inlined into function 'vmull_high_p64' that is compiled without support for 'crypto'
  __ret = vmull_p64((poly64_t)(vget_high_p64(__p0)), (poly64_t)(vget_high_p64(__p1)));

Can you provide a little bit more context?

Is it when running the dist-build/android-armv8-a.sh script?

This has been tested with the stable version of the NDK.

But I tried with r26-rc1, and the scripts seem to be working fine as well.

I just ran dist-build/android-aar.sh, which compiles for all architectures and creates an AAR file.

Are you using an older version of these scripts?

I am also seeing this error for linux aarch64 with 1.0.19:

https://github.com/teaxyz/pantry/actions/runs/6170060283/job/16745594856

@jhheider Try adding -march=armv8-a+crypto.

@jhheider Try adding -march=armv8-a+crypto.

Fix confirmed. Thanks for the quick response, @jedisct1 !

@jhheider Try adding -march=armv8-a+crypto.

This work for me.