bor icon indicating copy to clipboard operation
bor copied to clipboard

Error when compiling

Open lat1992 opened this issue 1 year ago • 2 comments

System information

Bor client version: v1.3.2

Go version: 1.22.3

OS & Version: Linux arm

Overview of the problem

I cannot compile bor.

Reproduction Steps

clone the repo, then compile it, it shows an error.

Logs / Traces / Output / Error Messages

go build -o /home/lat/Projects/bor/build/bin/bor ./cmd/cli/main.go
# github.com/maticnetwork/heimdall/auth/types
../../go/pkg/mod/github.com/maticnetwork/[email protected]/auth/types/txbuilder.go:312:19: undefined: ethCrypto.Sign
../../go/pkg/mod/github.com/maticnetwork/[email protected]/auth/types/txbuilder.go:318:19: undefined: ethCrypto.RecoverPubkey

lat1992 avatar May 22 '24 14:05 lat1992

Could you please show the full command you used and the full log output?

Asking for this because the go build ... command doesn't seem to have required -ldflags flags (which is added automatically if make bor is used).

cffls avatar May 23 '24 00:05 cffls

Can you try CGO_ENABLED=1 go build -o build/bin/bor ./cmd/cli/main.go?

cffls avatar May 23 '24 00:05 cffls

Can you try CGO_ENABLED=1 go build -o build/bin/bor ./cmd/cli/main.go?

It solve the problem, thank you !

lat1992 avatar May 24 '24 07:05 lat1992