bnb-chain / bsc

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

new release v1.2.0 geth_linux is not works #1525

Closed m1iktea closed 1 year ago

m1iktea commented 1 year ago

Expected behaviour

geth ok

Actual behaviour

[root@k8s-123-95 bsc]# sha256sum geth_linux 
75f50ce27b8ea080d6adfb18b223d355f42298f740f734c1e40d0134c409847c  geth_linux
[root@k8s-123-95 bsc]# chmod +x ./geth_linux 
[root@k8s-123-95 bsc]# ./geth_linux -h
Caught SIGILL in blst_cgo_init, consult <blst>/bindinds/go/README.md.
[root@k8s-123-95 bsc]# 

i download it from release page

kris-ss commented 1 year ago

hi @m1iktea,

Tried on my end, did not get the same error.

Screenshot 2023-04-25 at 3 01 00 PM

Please try chmod -v u+x geth_linux and ./geth_linux -h again.

Also please note that this version is not recommend for mainnet to use this version, especially validator, since more test is needed to make sure it is stable.

zoulja commented 1 year ago

The same problem here:

$ uname -a
Linux testhost 5.10.0-19-amd64 #1 SMP Debian 5.10.149-2 (2022-10-21) x86_64 GNU/Linux
$ wget https://github.com/bnb-chain/bsc/releases/download/v1.2.0/geth_linux
$ chmod +x geth_linux
$ sha256sum geth_linux
75f50ce27b8ea080d6adfb18b223d355f42298f740f734c1e40d0134c409847c  geth_linux
$ ./geth_linux version
Caught SIGILL in blst_cgo_init, consult <blst>/bindinds/go/README.md.
kris-ss commented 1 year ago

Hi @zoulja Please refer to this https://github.com/bnb-chain/bsc/issues/1521#issuecomment-1521025294

Pls try with the below env set and try again

export CGO_CFLAGS="-O -DBLST_PORTABLE" export CGO_CFLAGS_ALLOW="-O -DBLST_PORTABLE"

zoulja commented 1 year ago

Hi @kris-ss, thanks for cheking this

$ export CGO_CFLAGS="-O -D__BLST_PORTABLE__"
$ export CGO_CFLAGS_ALLOW="-O -D__BLST_PORTABLE__"
$ ./geth_v1.2.0 version
Caught SIGILL in blst_cgo_init, consult <blst>/bindinds/go/README.md.

Previous version is working fine on this host. Also I'm just wondering why binary size has increased from 54262990 to 91568768, it's pretty big difference which could contain all the dependencies

banlieu451 commented 1 year ago

Ok, right now it work for me when delete last golang-go version and downgrade it and check last release of BSC last 4 hours ago do this :

And it look like this when running :

dqa
kris-ss commented 1 year ago

@banlieu451 This is ok. You can ignore the warning messages. It will be resolved here - https://github.com/bnb-chain/bsc/pull/1527

m1iktea commented 1 year ago

wait a second, This means that i cant just download the geth_linux in release page and use it? Do i have to download the build file and build the geth_linux by myself?

banlieu451 commented 1 year ago

Do like this dear friend : (i use server linux unbuntu)

zoulja commented 1 year ago

Thanks for the workaround @banlieu451 but it doesn't solve the initial issue - broken official binary published in Release area, so typical upgrade procedure (just by replacing binary) can't be used anymore

plansten commented 1 year ago

Read my issue: https://github.com/bnb-chain/bsc/issues/1562

GBBx commented 1 year ago

I managed to fix this issue. Please see my comment here: https://github.com/bnb-chain/bsc/issues/1521#issuecomment-1532850937

m1iktea commented 1 year ago

Thank you for your concern, this issue has been resolved, I cant download geth_linux form release page and it works! 😊😊

wget https://github.com/bnb-chain/bsc/releases/download/v1.2.4/geth_linux
chmod +x geth_linux
./geth_linux -help
NAME:
   geth_linux - the go-ethereum command line interface

   Copyright 2013-2021 The go-ethereum Authors

USAGE:
   geth_linux [options] [command] [command options] [arguments...]

VERSION:
   1.2.4-3c5f54fc-20230523
...