vergecurrency/verge

Blake2 Causing make to Crash

ihyaDCLXVI opened this issue · 3 comments

My installation of the Verge Core is failing based on some typing errors fir the Blake2 algo.

Ubuntu 20.04
Oracle VirtualBox

Error after running: sudo make install

USERNAME@USERNAME-VirtualBox:~/VERGE$ sudo make install
[sudo] password for USERNAME:

Making install in src/tor

make[1]: Entering directory '/home/USERNAME/VERGE/src/tor'
make[2]: Entering directory '/home/USERNAME/VERGE/src/tor'
/usr/bin/mkdir -p '/usr/local/bin'
/usr/bin/install -c src/app/tor src/tools/tor-resolve src/tools/tor-print-ed-signing-cert src/tools/tor-gencert '/usr/local/bin'
/usr/bin/mkdir -p '/usr/local/bin'
/usr/bin/install -c contrib/client-tools/torify '/usr/local/bin'
/usr/bin/mkdir -p '/usr/local/etc/tor'
/usr/bin/install -c -m 644 src/config/torrc.sample '/usr/local/etc/tor'
/usr/bin/mkdir -p '/usr/local/share/tor'
/usr/bin/install -c -m 644 src/config/geoip src/config/geoip6 '/usr/local/share/tor'
make[2]: Leaving directory '/home/USERNAME/VERGE/src/tor'
make[1]: Leaving directory '/home/USERNAME/VERGE/src/tor'
Making install in src
make[1]: Entering directory '/home/USERNAME/VERGE/src'
make[2]: Entering directory '/home/USERNAME/VERGE/src'
make[3]: Entering directory '/home/USERNAME/VERGE'
make[3]: Leaving directory '/home/USERNAME/VERGE'
CXX primitives/libverge_consensus_a-block.o
In file included from ./crypto/pow/hashblake.h:11,
from primitives/block.cpp:16:
./crypto/pow/blake2.h:101:25: error: size of array element is not a multiple of its alignment
101 | blake2s_state S[8][1];
| ^
./crypto/pow/blake2.h:101:25: error: size of array element is not a multiple of its alignment
./crypto/pow/blake2.h:109:25: error: size of array element is not a multiple of its alignment
109 | blake2b_state S[4][1];
| ^
./crypto/pow/blake2.h:109:25: error: size of array element is not a multiple of its alignment
make[2]: *** [Makefile:6930: primitives/libverge_consensus_a-block.o] Error 1
make[2]: Leaving directory '/home/USERNAME/VERGE/src'
make[1]: *** [Makefile:11390: install-recursive] Error 1
make[1]: Leaving directory '/home/USERNAME/VERGE/src'
make: *** [Makefile:789: install-recursive] Error 1

I am running the latest version and following the instructions found at
https://github.com/vergecurrency/verge/blob/master/doc/build-unix.md

I have not installed Berkley DB.

My configure command was --disable-bench --with-incompatible-bdb

As far as I can tell I have installed all the dependencies required.

Thanks

Hi! Thank you for filing an issue. Please be patient before anyone responds.
Make sure your issue is filled in with as many details as possible.
Its also recommended to check out previously resolved or closed issues so no duplicates are created.
There's also the chance the anwser for your issue can be found on one of the XVG wiki/FAQ's.

I have found a link that discusses the cause of this, which should be useful to the defs for fixing.

https://bugzilla.redhat.com/show_bug.cgi?id=1937076

I have installed g++/cc 10, and it compiles.

So the issue is gcc 11 not compiling incorrectly declared typing.

Your issue hasn't been processed. I'm pushing your issue again, either someone will follow up or close it.