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

gcc 11.x - error: size of array element is not a multiple of its alignment #16

Open
thkukuk opened this issue Jul 6, 2021 · 0 comments

Comments

@thkukuk
Copy link

thkukuk commented Jul 6, 2021

With current gcc 11.x you get an error when compiling asignify.
I found more details in this bug report:
https://bugzilla.redhat.com/show_bug.cgi?id=1937076

A possible fix could look like according to that bug report:

diff --git a/libasignify/blake2.h b/libasignify/blake2.h
index 5d0d40c..f9967d0 100644
--- a/libasignify/blake2.h
+++ b/libasignify/blake2.h
@@ -56,7 +56,7 @@ extern "C" {
uint8_t personal[BLAKE2B_PERSONALBYTES]; // 64
} blake2b_param;

  • BLAKE_ALIGN( 64 ) typedef struct __blake2b_state
  • typedef struct BLAKE_ALIGN( 64 ) __blake2b_state
    {
    uint64_t h[8];
    uint64_t t[2];
vstakhov added a commit that referenced this issue Jan 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant