bnb-chain / greenfield-cmd

support cmd tool for Greenfield
GNU Lesser General Public License v3.0
27 stars 12 forks source link

building on window Error #104

Closed alfredotasty closed 9 months ago

alfredotasty commented 9 months ago

using go version go1.21.4 windows/amd64 and greenfield-cmd v1.0.2

when I run build and then get result like this how to fix this problem

make build
go build -o ./build/gnfd-cmd cmd/*.go
go: downloading github.com/BurntSushi/toml v1.3.2
go: downloading github.com/deckarep/golang-set v1.8.0
go: downloading github.com/google/uuid v1.3.0
go: downloading github.com/go-stack/stack v1.8.0
# github.com/herumi/bls-eth-go-binary/bls
..\..\go\pkg\mod\github.com\herumi\bls-eth-go-binary@v0.0.0-20210917013441-d37c07cfda4e\bls\cast.go:9:28: undefined: SecretKey
..\..\go\pkg\mod\github.com\herumi\bls-eth-go-binary@v0.0.0-20210917013441-d37c07cfda4e\bls\cast.go:9:40: undefined: Fr
..\..\go\pkg\mod\github.com\herumi\bls-eth-go-binary@v0.0.0-20210917013441-d37c07cfda4e\bls\cast.go:13:26: undefined: Fr
..\..\go\pkg\mod\github.com\herumi\bls-eth-go-binary@v0.0.0-20210917013441-d37c07cfda4e\bls\cast.go:13:31: undefined: SecretKey
..\..\go\pkg\mod\github.com\herumi\bls-eth-go-binary@v0.0.0-20210917013441-d37c07cfda4e\bls\cast.go:19:28: undefined: PublicKey
..\..\go\pkg\mod\github.com\herumi\bls-eth-go-binary@v0.0.0-20210917013441-d37c07cfda4e\bls\cast.go:19:40: undefined: G1
..\..\go\pkg\mod\github.com\herumi\bls-eth-go-binary@v0.0.0-20210917013441-d37c07cfda4e\bls\cast.go:23:26: undefined: G1
..\..\go\pkg\mod\github.com\herumi\bls-eth-go-binary@v0.0.0-20210917013441-d37c07cfda4e\bls\cast.go:23:31: undefined: PublicKey
..\..\go\pkg\mod\github.com\herumi\bls-eth-go-binary@v0.0.0-20210917013441-d37c07cfda4e\bls\cast.go:29:23: undefined: Sign
..\..\go\pkg\mod\github.com\herumi\bls-eth-go-binary@v0.0.0-20210917013441-d37c07cfda4e\bls\cast.go:29:30: undefined: G2
..\..\go\pkg\mod\github.com\herumi\bls-eth-go-binary@v0.0.0-20210917013441-d37c07cfda4e\bls\cast.go:29:30: too many errors
# github.com/supranational/blst/bindings/go
..\..\go\pkg\mod\github.com\supranational\blst@v0.3.11\bindings\go\rb_tree.go:130:18: undefined: Message
make: *** [Makefile:6: build] Error 1 
flywukong commented 9 months ago

@supamongkonR it should the similar reason as https://github.com/bnb-chain/greenfield-cmd/issues/86 with is caused by cgo. You can try the advices of this issue.

alfredotasty commented 9 months ago

@flywukong Thanks you so much