Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build failure, 3.3.0 amalgamation arm64 #3927

Closed
bazineta opened this issue Mar 1, 2024 · 5 comments · Fixed by #3931
Closed

Build failure, 3.3.0 amalgamation arm64 #3927

bazineta opened this issue Mar 1, 2024 · 5 comments · Fixed by #3931

Comments

@bazineta
Copy link
Contributor

bazineta commented Mar 1, 2024

When building using clang 16.0.6, on Ubuntu arm64, I found that I had to modify:

src/lib/hash/sha2_64/sha2_64_armv8/sha2_64_armv8.cpp

to specify BOTAN_FUNC_ISA("+crypto,sha3"), instead of just "+crypto", as without doing so, the compilation failed with errors of the format:

botan_all.cpp:88261:30: error: always_inline function 'vsha512su0q_u64' requires target feature 'sha3', but would be inlined into function 'compress_digest_armv8' that is compiled without support for 'sha3'

Excessive compiler spew omitted for brevity; many such errors.

Unlikely to be an optimal solution, but it did resolve the issue for me.

@reneme
Copy link
Collaborator

reneme commented Mar 4, 2024

I'm guessing this is the relevant discussion: #3860 (comment). Probably your fix is actually correct and we just overlooked that the BOTAN_FUNC_ISA() macros had to be changed as well. :( @securitykernel can you confirm?

@securitykernel
Copy link
Collaborator

Confirmed.

@reneme
Copy link
Collaborator

reneme commented Mar 4, 2024

@bazineta Please feel free to submit a pull request with your patch. :) Thanks for looking into it.

@lieser
Copy link
Collaborator

lieser commented Mar 5, 2024

@reneme I think this is related to #3774 and my failed attempt to fix it in #3780.

@reneme
Copy link
Collaborator

reneme commented Mar 5, 2024

Thanks for the pointers. I'm going to dig deeper on this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants