diff options
author | Jakub Sokołowski <jakub@status.im> | 2023-10-29 11:04:52 +0100 |
---|---|---|
committer | Yt <happysalada@tuta.io> | 2023-10-29 13:47:32 +0000 |
commit | c03b74224a01016bb64f1e458870d95e86bdc87a (patch) | |
tree | 5f74c796614a1a038e7462786e103f5bbd3123b6 /pkgs/applications/blockchains | |
parent | 220241421f7498a7072ec650b7e7b61caf3545e0 (diff) |
erigon: fix SIGILL error due to missing CGO_CFLAGS
Currently Erigon binary fails to start on some systems with: ``` > erigon --version Caught SIGILL in blst_cgo_init, consult <blst>/bindinds/go/README.md. ``` The reason for that are missing `CGO_CFLAGS` that can be seen here: https://github.com/ledgerwatch/erigon/blob/v2.53.2/Makefile#L26 For more information on this see this `bsc` issue: https://github.com/bnb-chain/bsc/issues/1521 Signed-off-by: Jakub Sokołowski <jakub@status.im>
Diffstat (limited to 'pkgs/applications/blockchains')
-rw-r--r-- | pkgs/applications/blockchains/erigon/default.nix | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/pkgs/applications/blockchains/erigon/default.nix b/pkgs/applications/blockchains/erigon/default.nix index 23a6373a2a718..86c0d53fcf82e 100644 --- a/pkgs/applications/blockchains/erigon/default.nix +++ b/pkgs/applications/blockchains/erigon/default.nix @@ -22,6 +22,11 @@ buildGoModule { # cc1: error: '-Wformat-security' ignored without '-Wformat' [-Werror=format-security] hardeningDisable = [ "format" ]; + # Fix error: 'Caught SIGILL in blst_cgo_init' + # https://github.com/bnb-chain/bsc/issues/1521 + CGO_CFLAGS = "-O -D__BLST_PORTABLE__"; + CGO_CFLAGS_ALLOW = "-O -D__BLST_PORTABLE__"; + subPackages = [ "cmd/erigon" "cmd/evm" |