Hi,
I’m hoping for some help with deploying a Cardano node.
I’m following this article
and get as far running the following commands
cp -p dist-newstyle/build/x86_64-linux/ghc-8.10.2/cardano-node-1.34.1/x/cardano-node/build/cardano-node/cardano-node ~/.local/bin/
cp -p dist-newstyle/build/x86_64-linux/ghc-8.10.2/cardano-cli-1.34.1/x/cardano-cli/build/cardano-cli/cardano-cli ~/.local/bin/
I am building the node on Centos 7.
Problem is there is no directory structure
dist-newstyle/build/x86_64-linux/ghc-8.10.2/cardano-cli-1.34.1/x/cardano-cli/build/cardano-cli/cardano-cli
[XXXXX@localhost cardano-node]$ ls dist-newstyle/build/x86_64-linux/ghc-8.10.2/
base-deriving-via-0.1.0.0 contra-tracer-0.1.0.0 monoidal-synchronisation-0.1.0.0 optparse-applicative-fork-0.16.1.0 prettyprinter-configurable-0.1.0.0 Win32-network-0.1.0.0
cardano-submit-api-3.1.2 measures-0.1.0.0 non-integral-0.1.0.0 plutus-ghc-stub-8.6.5 tracer-transformers-0.1.0.1
I’m clearly missing something but cant figure out what it is, any pointers would be appreciated.
Thank you.
I’ve re-run ‘cabel build all’ and get the errored output as below.
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-testnet-tests from cardano-testnet-1.34.1,
plutus-tx-plugin-0.1.0.0 and others). See the build log above for details.
This
opened 07:09PM - 07 Jul 20 UTC
closed 08:06PM - 07 Jul 20 UTC
duplicate
I can successfully install cryptonite 0.26, but 0.27 fails with:
```
[135 of… 135] Compiling Crypto.Tutorial ( Crypto/Tutorial.hs, dist/build/Crypto/Tutorial.o )
In file included from cbits/aes/x86ni.h:38,
from cbits/aes/gf.c:35:0: error:
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/include/wmmintrin.h:34:3: error:
error: #error "AES/PCLMUL instructions not enabled"
|
34 | # error "AES/PCLMUL instructions not enabled"
| ^
In file included from cbits/aes/x86ni.h:39,
from cbits/aes/gf.c:35:0: error:
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/include/tmmintrin.h:31:3: error:
error: #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
```
This is compiling on a somewhat limited virtual machine, but it actually does support SSSE3:
```
$ cat /proc/cpuinfo | grep sse3
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss syscall nx rdtscp lm constant_tsc arch_perfmon xtopology tsc_reliable nonstop_tsc aperfmperf unfair_spinlock pni pclmulqdq ssse3 cx16 pcid sse4_1 sse4_2 x2apic popcnt aes xsave avx hypervisor lahf_lm ida arat epb pln pts dtherm
```
and given 0.26 compiles fine, I wonder if a bug crept in in the meantime during configuration perhaps?
and this
(even mentioning CentOS 7 specifically) looks like you might need a newer gcc.
Thanks for the pointer - Also found this…
opened 05:17AM - 13 Oct 20 UTC
closed 10:18AM - 23 Apr 21 UTC
bug
I did this command `$CNODE_HOME/scripts/cabal-build-all.sh -o` and got below err… or:
```
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.19.0, test:cardano-api-test from
cardano-api-1.19.0 and others). See the build log above for details.
```
How can I enable AES/SSE3 instructions?
Just download the provided binaries and skip building from sources.
Thanks for the info - I’m learning lots doing this.
Where would I get the binaries from?
mcrio
7 March 2022 17:55
7
erikd
8 March 2022 03:21
8
I highly recommend avoid using binaries compiled from the master
branch (they compile but have not undergone any QA).
Instead, only use binaries compiled from the latest git tag which can be found at Releases · input-output-hk/cardano-node · GitHub .
2 Likes