AES not enabled for cross compilation targeting aarch64 #1490
-
|
I have a x86_64 host machine (Ubuntu 24.04) that is used to cross-compile a program using libsodium to be deployed on ARMv8 machine. I'm using the toolchain toolchain-aarch64_cortex-a53_gcc-8.4.0_musl for cross-compilation. The target machine supports AES HW acceleration as shown by "cat /proc/cpuinfo" below. The program can't use AES-based ciphers for HW acceleration. The build script, build log and config log are found in the attachments. I'm wondering whether it's a misconfiguration. Would you have any hints ? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 13 replies
-
|
Does your program call |
Beta Was this translation helpful? Give feedback.
-
|
In your configuration script, you define |
Beta Was this translation helpful? Give feedback.
Thanks a lot for your support, the Zig build works for aarch64.
By the way, I have another environment where the CPU is ARMv8 but the OS and softwares run on 32-bits, is it the right command to build the library in this case ?
zig build -Doptimize=ReleaseFast -Dtarget=arm-linux -Dcpu=cortex_a53processor : 0 BogoMIPS : 100.00 Features : fp asimd evtstrm aes pmull sha1 sha2 crc32 cpuid CPU implementer : 0x42 CPU architecture: 8 CPU variant : 0x0 CPU part : 0x100 CPU revision : 0