portable icon indicating copy to clipboard operation
portable copied to clipboard

Fails to build on arm32 Darwin, missing aes_*_internal symbols

Open Un1q32 opened this issue 1 year ago • 3 comments

crypto/arch/arm/crypto_arch.h defines the macros indicating that the platform supports assembly implementations of those functions, but those assembly files are only built on ELF platforms. Those macros should either be behind an #ifdef __ELF__, or the assembly functions should be made to build for other binary formats.

Un1q32 avatar Oct 15 '24 21:10 Un1q32

This is with cmake, right?

If I understand correctly, the autoconf build disables assembly by passing -DOPENSSL_NO_ASM and this is an issue with CMake's ENABLE_ASM logic on this platform. As a workaround using cmake -DENABLE_ASM=OFF ... should do the trick.

botovq avatar Oct 15 '24 22:10 botovq

Yes, passing -DENABLE_ASM=OFF works, but this should be done by default, the build shouldn't fail when it isn't passed.

Un1q32 avatar Oct 16 '24 00:10 Un1q32

Agreed. Hence "issue", "workaround". It will be fixed soon.

botovq avatar Oct 16 '24 00:10 botovq

This is still an issue in 4.1.0.

Un1q32 avatar Apr 30 '25 23:04 Un1q32