Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1.2.1 Can not compile and binary data from github also doesn't running #1546

Closed
zhaoyang777 opened this issue Apr 28, 2023 · 4 comments
Closed

Comments

@zhaoyang777
Copy link

System information

Geth version: 1.2.1
OS & Version: Linux (Both)
Commit hash : (if develop)

On BSC Testnet Geth Node always show 'Looking for peers',
And then i try to download the newest version 1.2.1, i have some problems
1: First i couldn't compile linux version from windows device, and before is ok, there is a lot of errors from "herumi/bls-eth-go-binary"
2: I download the the binary geth_linux and start to running at Centos, it's can not startup.
I see this error "Caught SIGILL in blst_cgo_init"

So, old version can not use, new version can not compile and also the binrary can not running!

@zhaoyang777
Copy link
Author

this is my command:

env GO111MODULE=on CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags="-X main.gitCommit= -X main.gitDate=" -o build/bin/geth-linux ./cmd/geth
Details

github.com/herumi/bls-eth-go-binary/bls

....\go\src\pkg\mod\github.com\herumi\[email protected]\bls\cast.go:9:28: undefined: SecretKey
....\go\src\pkg\mod\github.com\herumi\[email protected]\bls\cast.go:9:40: undefined: Fr
....\go\src\pkg\mod\github.com\herumi\[email protected]\bls\cast.go:13:26: undefined: Fr
....\go\src\pkg\mod\github.com\herumi\[email protected]\bls\cast.go:13:31: undefined: SecretKey
....\go\src\pkg\mod\github.com\herumi\[email protected]\bls\cast.go:19:28: undefined: PublicKey
....\go\src\pkg\mod\github.com\herumi\[email protected]\bls\cast.go:19:40: undefined: G1
....\go\src\pkg\mod\github.com\herumi\[email protected]\bls\cast.go:23:26: undefined: G1
....\go\src\pkg\mod\github.com\herumi\[email protected]\bls\cast.go:23:31: undefined: PublicKey
....\go\src\pkg\mod\github.com\herumi\[email protected]\bls\cast.go:29:23: undefined: Sign
....\go\src\pkg\mod\github.com\herumi\[email protected]\bls\cast.go:29:30: undefined: G2
....\go\src\pkg\mod\github.com\herumi\[email protected]\bls\cast.go:29:30: too many errors

@ZiyuanStar
Copy link

please try to add the following environment variables and build again:

export CGO_CFLAGS="-O -D__BLST_PORTABLE__"
export CGO_CFLAGS_ALLOW="-O -D__BLST_PORTABLE__"

@banlieu451
Copy link

Try downgrade to 1.19 (golang-go) and put command from Ziyuan 👍 and build again as Ziyuan say and it work

@brilliant-lx
Copy link
Collaborator

fixed by these 2 PRs:
SIGILL: #1575
golang v1.20 compile: #1576

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants