bnb-chain / greenfield-cmd

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

Greenfield CLI in Linux System #107

Open sudharsansubash2002 opened 8 months ago

sudharsansubash2002 commented 8 months ago

When attempting to build on Linux servers (tried on different versions, including Amazon Linux and Ubuntu), I encounter an error when executing the "make build" command.

I've used the Greenfield CLI version 1.0.2 (latest), and I've tried with two different Go versions:

`ubuntu@ip-172-31-32-35:~/greenfield-cmd-1.0.2$ make build go build -o ./build/gnfd-cmd cmd/*.go

internal/abi

../go/src/internal/abi/funcpc.go:22:6: FuncPCABI0 redeclared in this block ../go/src/internal/abi/abi.go:117:6: other declaration of FuncPCABI0 ../go/src/internal/abi/funcpc.go:31:6: FuncPCABIInternal redeclared in this block ../go/src/internal/abi/abi.go:126:6: other declaration of FuncPCABIInternal make: *** [Makefile:6: build] Error 1`

deepcrazy commented 8 months ago

Hi there, Can you confirm you followed the exact below steps:

Also, Can you share the below details:

P.S: I tried on my end with go1.20.3 version and greenfield CLI version v1.0.2 and it did worked fine. You can probably try to use go1.20.3 version once too and see if it works.