documentation
documentation copied to clipboard
Building in release mode on MacOS
Documentation states:
bazel build //cmd/beacon-chain:beacon-chain --config=release
bazel build //cmd/validator:validator --config=release
However, trying it on MacOS ends up with the following error message:
Use --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging
In file included from external/herumi_mcl/src/bn_c384_256.cpp:6:
In file included from external/herumi_mcl/include/mcl/impl/bn_c_impl.hpp:13:
In file included from external/herumi_mcl/include/mcl/bls12_381.hpp:11:
In file included from external/herumi_mcl/include/mcl/bn.hpp:11:
In file included from external/herumi_mcl/include/mcl/fp_tower.hpp:9:
In file included from external/herumi_mcl/include/mcl/fp.hpp:29:
In file included from external/herumi_mcl/include/mcl/op.hpp:9:
external/herumi_mcl/include/mcl/gmp_util.hpp:37:10: fatal error: 'gmpxx.h' file not found
Googling indicates to solve it:
brew install gmp
which does not solve the issue.
In Prysm Ethereum Client discord, we find this message.
bazel build //cmd/beacon-chain:beacon-chain
bazel build //cmd/validator:validator
(without --config=release
) works well.
Maybe the documentation could state:
- building in release mode is not possible on MacOS, or
- a way to install correctly
gmpxx.h
on MacOS