-
Notifications
You must be signed in to change notification settings - Fork 54
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
Cross-compilation to armv7l failed #632
Comments
Hello! I'm looking into this error:
I think the compiler is complaining about this section of code: (maybe?) // SHA-512 and SHA-512/256 are aligned to 8-byte words, SHA-512/224 is not.
// If the digest size is not aligned to 8-byte words, we need to process the
// non-word-aligned "trailer".
if (md_len == SHA512_224_DIGEST_LENGTH) {
uint64_t trailer;
CRYPTO_store_u64_be(&trailer, sha->h[out_words]);
OPENSSL_memcpy(out, &trailer, SHA512_224_DIGEST_LENGTH % 8);
} This logic appears correct to me (and I know this logic has been heavily tested), but I can see why the compiler might be concerned about it. We'll need to reproduce this compiler error in order to identify a potential fix. One potential workaround would be to disable this compiler warning. You could try setting the following in your build environment: export AWS_LC_SYS_CFLAGS="-Wno-stringop-overflow" We'll update here when we make progress on this issue. Thanks! |
Thanks for looking into this issue. I tested the workaround. At first, it didn't work because of the equal sign. It worked when I removed it, so here is a updated version for others: export AWS_LC_SYS_CFLAGS="-Wno-stringop-overflow" |
Great! Thanks! I updated my comment so that the workaround I suggest matches yours. |
Problem:
I am trying to cross compile
spotify-player
for armv7l and buildingaws-lc-sys
breaks. I have all the dependencies to build it and every package used with their version is in the beginning of the log and the error is at the end.Relevant details
AWS-LC for Rust version: v1.11.1
System information:
Logs
The text was updated successfully, but these errors were encountered: