Closed Trafo closed 6 days ago
Thanks for reporting
The aes_armv8
module gets enabled which requires the isa armv8crypto
. But the -march=armv8+crypto
does not get automatically added to the compilation of botan_all.cpp
.
I thinks this relates to #2246. Before that PR multiple cpp files for different isa there added. Unsure what the best way to fix this is as I'm not much experienced with this flags.
Some things are unclear to me and some observations:
simd_avx512
) we add isa flags for the normal build but not with --amalgamation
.
What is the advantage of specificity them at all if they do not seem to be needed if the amalgamation build works without them?
BOTAN_FUNC_ISA
macro for specific functions. I guess this is the reason why it is not needed in many places to specify it as a compile flag?BOTAN_FUNC_ISA("+crypto")
to BOTAN_FUNC_ISA("+crypto,aes")
fixes that part of the amalgamation build for me.
SHA_1::sha1_armv8_compress_(...)
, SHA_256::compress_digest_armv(...)
and SHACAL2::armv8_encrypt_blocks(...)
have a similar problem with missing sha2
-march=armv8+crypto
enable more than BOTAN_FUNC_ISA("+crypto")
does?I believe #3931 (finally) resolves this. Feedback on it would be highly appreciated. 😃
Thank you very much for your support, it has been fixed since Botan 3.5.0.
I am trying to make the botan Conan recipe compatible with Android and Emscripten. There I got the issue, that I could not build the Android ARM64-v8a version with amalgamation, because of compiler errors. If I deactivate it, everything builds.
Console output:
[EDIT] We will go without amalgamation, so that's why we are fine, but in the conan recipe this is the default value for using it, why I wanted to report it.