bnb-chain / bsc

A BNB Smart Chain client based on the go-ethereum fork
GNU Lesser General Public License v3.0
2.68k stars 1.55k forks source link

Caught SIGILL in blst_cgo_init, consult <blst>/bindinds/go/README.md. #1521

Closed banlieu451 closed 1 year ago

banlieu451 commented 1 year ago

Hello i can't still launch from this new version i need help

go version is the lastest in folder /bsc/build/bin/ i do :

wget https://github.com/binance-chain/bsc/releases/download/v1.1.23/mainnet.zip && unzip mainnet.zip ./geth --datadir node init genesis.json return Caught SIGILL in blst_cgo_init, consult <blst>/bindinds/go/README.md.

geth --datadir node init genesis.json return Fatal: Failed to read genesis file: open genesis.json: permission denied

with root sudo or not same issue

Sans titre

brilliant-lx commented 1 year ago

https://github.com/bnb-chain/bsc/tree/develop#building-the-source

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

Pls try with the above env set and rebuild with the latest develop branch. blst has problem in some old cpu, could cause SIGILL.

banlieu451 commented 1 year ago

Still don't work we use a INTEL XEON processeur 24 cores this materials is out of using bsc incredible ?

plansten commented 1 year ago

Still don't work we use a INTEL XEON processeur 24 cores this materials is out of using bsc incredible ?

Not working if processor don`t have "3dnowprefetch" flag. My issue: https://github.com/bnb-chain/bsc/issues/1562

GBBx commented 1 year ago

Hi,

I've had this issue before with some other software that has the blst dependency. The key is to set the variables as @brilliant-lx mentioned:

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

and build it on a machine that does not have the CPU flag (e.g. the machine where bnb-bsc will be running). I hope it helps.