Day 1, Lesson 5 - Error running "cabal build all"

Hi I am going through the 5 day training on setting up and running a stake pool. Can you please confirm the correct tag to use? The documentation states to use 1.25.1. However, using tag 1.25.1 causes the following error “Warning: Requested index-state2021-01-10T00:00:00Z is newer than
hackage.haskell.org’! Falling back to older state (2021-01-09T22:55:53Z).”
Then it downloads older versions of lots files, and then fails to complete the build - I am running CentOS 7. Some of the errors:

In file included from cbits/aes/x86ni.h:38:0: error:
0,
from cbits/aes/gf.c:35:

/usr/lib/gcc/x86_64-redhat-linux/4.8.5/include/wmmintrin.h:34:3: error:
error: #error “AES/PCLMUL instructions not enabled”
# error “AES/PCLMUL instructions not enabled”
^
|
34 | # error “AES/PCLMUL instructions not enabled”
| ^

In file included from cbits/aes/x86ni.h:39:0: error:
0,
from cbits/aes/gf.c:35:

/usr/lib/gcc/x86_64-redhat-linux/4.8.5/include/tmmintrin.h:31:3: error:
error: #error “SSSE3 instruction set not enabled”
# error “SSSE3 instruction set not enabled”
^
|
31 | # error “SSSE3 instruction set not enabled”
| ^
gcc' failed in phase C Compiler’. (Exit code: 1)
cabal: Failed to build cryptonite-0.27 (which is required by
test:cardano-node-test from cardano-node-1.25.1, test:cardano-cli-test from
cardano-cli-1.25.1 and others). See the build log above for details.

You could also run a cardano-node image like this …

docker run --detach \
    --name=relay \
    -p 3001:3001 \
    -e CARDANO_UPDATE_TOPOLOGY=true \
    -v node-data:/opt/cardano/data \
    nessusio/cardano-node run    

The full process is documented here.

Hi Thomdx,

Thank you for the documentation to setup using dockers. Docker is something I am considering using once I am familiar with running the service and understand what operational needs that I have to gear up for.

I would like to also understand why the single server isn’t working. It looks to be a compatibility issue with ghc 8.10.2. I also tried the build using AWS linux. Note I am currently running my builds on AWS.

IMHO, there is still plenty of stuff to learn even if you don’t bother about the intricate details of building a node with/without Nix on a wide array of Linux distros let alone on various hardware platforms - with the Docker approach, that has already been done for you.

Thanks. I will look into setting up a dockers installation locally on my computer