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

crypto/blake2s.c: In function ‘blake2s’: crypto/blake2s.c:326:9: error: size of array element is not a multiple of its alignment 326 | blake2s_state S[1]; | ^~~~~~~~~~~~~ #7

Open
garzeth opened this issue Apr 9, 2022 · 3 comments

Comments

@garzeth
Copy link

garzeth commented Apr 9, 2022

so this is the first time encountering this error I've configured this miner multiple times but never I encountered this error until today...while building I eventually saw some code saying it's obselete or the code is old and started seeing a lot of warnings way more before and suddenly appeared this error crypto/blake2s.c: In function ‘blake2s’:
crypto/blake2s.c:326:9: error: size of array element is not a multiple of its alignment
326 | blake2s_state S[1];
| ^~~~~~~~~~~~~t and aother one saying makefile all error and when I saw the code it says Im missing the libjansson libcurl dependencies but if i know I have it installed and other dependencies required for the cpuminer to run

@garzeth garzeth changed the title blake2.h:101:5: error: size of array element is not a multiple of its alignment crypto/blake2s.c: In function ‘blake2s’: crypto/blake2s.c:326:9: error: size of array element is not a multiple of its alignment 326 | blake2s_state S[1]; | ^~~~~~~~~~~~~ Apr 9, 2022
@maniben3
Copy link

i havesameproblem

@derhier
Copy link

derhier commented Apr 24, 2023

Any workaround?

@derWahnsinn
Copy link

Ran into the same problem, here's the solution which worked for me.

Line number 119 in ./crypto/blake2s.h needs to be changed from:

ALIGN( 64 ) typedef struct __blake2s_state

to:

typedef struct ALIGN( 64 ) __blake2s_state

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

4 participants