protolambda / eth2-val-tools

Some experimental tools to manage validators - use at your own risk
MIT License
63 stars 21 forks source link

bls-eth-go-binary error when installing on ubuntu 20.04 #12

Closed samlaf closed 3 months ago

samlaf commented 1 year ago

Running into this error when trying to install on ubuntu 20.04. Any idea what's going on?

go: downloading github.com/google/uuid v1.3.0
go: downloading github.com/herumi/bls-eth-go-binary v1.28.1
go: downloading github.com/protolambda/go-keystorev4 v0.0.0-20211007151826-f20444f6d564
go: downloading github.com/protolambda/zrnt v0.30.0
go: downloading github.com/protolambda/ztyp v0.2.2
go: downloading github.com/spf13/cobra v1.1.3
go: downloading github.com/tyler-smith/go-bip39 v1.1.0
go: downloading github.com/wealdtech/go-eth2-types/v2 v2.6.0
go: downloading github.com/wealdtech/go-eth2-util v1.6.4
go: downloading golang.org/x/sync v0.0.0-20190423024810-112230192c58
go: downloading golang.org/x/crypto v0.0.0-20210921155107-089bfa567519
go: downloading golang.org/x/text v0.3.7
go: downloading github.com/kilic/bls12-381 v0.1.0
go: downloading github.com/protolambda/bls12-381-util v0.0.0-20210720105258-a772f2aac13e
go: downloading gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b
go: downloading github.com/minio/sha256-simd v1.0.0
go: downloading github.com/spf13/pflag v1.0.5
go: downloading github.com/ferranbt/fastssz v0.0.0-20210905181407-59cf6761a7d5
go: downloading github.com/pkg/errors v0.9.1
go: downloading github.com/wealdtech/go-bytesutil v1.1.1
go: downloading golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1
go: downloading github.com/holiman/uint256 v1.2.0
go: downloading github.com/klauspost/cpuid/v2 v2.0.9
go: downloading github.com/mitchellh/mapstructure v1.4.2
go: downloading gopkg.in/yaml.v2 v2.4.0
# github.com/herumi/bls-eth-go-binary/bls
../go/pkg/mod/github.com/herumi/bls-eth-go-binary@v1.28.1/bls/cast.go:9:28: undefined: SecretKey
../go/pkg/mod/github.com/herumi/bls-eth-go-binary@v1.28.1/bls/cast.go:9:40: undefined: Fr
../go/pkg/mod/github.com/herumi/bls-eth-go-binary@v1.28.1/bls/cast.go:13:26: undefined: Fr
../go/pkg/mod/github.com/herumi/bls-eth-go-binary@v1.28.1/bls/cast.go:13:31: undefined: SecretKey
../go/pkg/mod/github.com/herumi/bls-eth-go-binary@v1.28.1/bls/cast.go:19:28: undefined: PublicKey
../go/pkg/mod/github.com/herumi/bls-eth-go-binary@v1.28.1/bls/cast.go:19:40: undefined: G1
../go/pkg/mod/github.com/herumi/bls-eth-go-binary@v1.28.1/bls/cast.go:23:26: undefined: G1
../go/pkg/mod/github.com/herumi/bls-eth-go-binary@v1.28.1/bls/cast.go:23:31: undefined: PublicKey
../go/pkg/mod/github.com/herumi/bls-eth-go-binary@v1.28.1/bls/cast.go:29:23: undefined: Sign
../go/pkg/mod/github.com/herumi/bls-eth-go-binary@v1.28.1/bls/cast.go:29:30: undefined: G2
../go/pkg/mod/github.com/herumi/bls-eth-go-binary@v1.28.1/bls/cast.go:29:30: too many errors
samlaf commented 1 year ago

Can confirm that this is only a problem with the latest go v1.20.1. Tried with go v.1.19.6 and managed to install.

protolambda commented 3 months ago

Different BLS library, should work, closing