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

error: size of array element is not a multiple of its alignment #5445

Closed
Petomai opened this issue Mar 9, 2024 · 3 comments
Closed

error: size of array element is not a multiple of its alignment #5445

Petomai opened this issue Mar 9, 2024 · 3 comments
Labels
dupe This issue already existed. When using this, always link to the original issue(s). portability

Comments

@Petomai
Copy link

Petomai commented Mar 9, 2024

during ./configure && make

-Wunused-but-set-variable -std=gnu89 -Wdate-time -D_POSIX_SOURCE -D_GNU_SOURCE -D_XOPEN_SOURCE=600 -fopenmp -DHAVE_HT -I/usr/local/include -funroll-loops argon2_core_plug.c -o argon2_core_plug.o
In file included from argon2_core_plug.c:32:
blake2.h:112:5: error: size of array element is not a multiple of its alignment
112 | blake2b_state S[4][1];
| ^~~~~~~~~~~~~
blake2.h:113:5: error: size of array element is not a multiple of its alignment
113 | blake2b_state R[1];
| ^~~~~~~~~~~~~
make[1]: *** [Makefile:1624: argon2_core_plug.o] Error 1

OS Linux Mint
Linux mint 5.15.0-41-generic #44-Ubuntu SMP Wed Jun 22 14:20:53 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0
Python 3.10.12

@solardiz solardiz added portability dupe This issue already existed. When using this, always link to the original issue(s). labels Mar 9, 2024
@solardiz
Copy link
Member

solardiz commented Mar 9, 2024

Hi @Petomai. This is a known and fixed issue, please update to our latest code from here and try again. Duplicate of #4604 #5351 #5442.

@solardiz solardiz closed this as completed Mar 9, 2024
@rlovell3
Copy link

For what it's worth, today (2024-04-17) I downloaded the john-1.9.0-jumbo-1.tar.gz from the openwall website, and received the same blake2.h blake2b_state errors during make. I will try downloading the code from here (github repository) and look for diffs. I'm using gcc -version 11.4.0.

@rlovell3
Copy link

Cloning this Github repo and running the config and make steps was successful. No build errors.
Below is from the website tar.gz file that I downloaded earlier today.

sha256sum john-1.9.0-jumbo-1.tar.gz
8b40499a20fdd66d5f651b439bf9846367182bb93e8bff3fd39ba267576dd317  john-1.9.0-jumbo-1.tar.gz

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dupe This issue already existed. When using this, always link to the original issue(s). portability
Projects
None yet
Development

No branches or pull requests

3 participants