bor
bor copied to clipboard
Error when compiling
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
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).
Can you try CGO_ENABLED=1 go build -o build/bin/bor ./cmd/cli/main.go?
Can you try
CGO_ENABLED=1 go build -o build/bin/bor ./cmd/cli/main.go?
It solve the problem, thank you !