Skip to content

Build error with gcc-11 #12

Description

@delboy711

Building on Arch linux with gcc-11.

Build fails with

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];
| ^~~~~~~~~~~~~
make[2]: *** [Makefile:1971: crypto/cpuminer-blake2s.o] Error 1

If I use gcc-10 then it compiles OK

export CC=gcc-10
./build.sh

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions