bnb-chain / bsc

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

build failed on a new device #2544

Closed zzzckck closed 4 months ago

zzzckck commented 4 months ago

System information

Geth version: geth v1.4.10 OS & Version: Windows/Linux/OSX Commit hash : master

Expected behaviour

build pass

Actual behaviour

build failed

Steps to reproduce the behaviour

zzzckck commented 4 months ago

we may have another issue: 2 prysm dependencies in go.mod with different version.

➜  bsc git:(03f9326f1) cat go.mod|grep "prysm"
    github.com/prysmaticlabs/prysm/v5 v5.0.3
    github.com/prysmaticlabs/prysm v0.0.0-20220124113610-e26cde5e091b // indirect
0.20210702154020-550e1cd83ec1

v5.0.3: was for BSC BLS related v0.0.0-20220124113610-e26cde5e091b: was imported indirectly for GreenField precompile contract.

➜  bsc git:(03f9326f1) go mod why -m github.com/prysmaticlabs/prysm
# github.com/prysmaticlabs/prysm
github.com/ethereum/go-ethereum/core/vm/lightclient/v2
github.com/cometbft/cometbft/light
github.com/cometbft/cometbft/light/provider/http
github.com/cometbft/cometbft/rpc/client
github.com/cometbft/cometbft/rpc/core/types
github.com/cometbft/cometbft/votepool
github.com/prysmaticlabs/prysm/crypto/bls/blst
➜  bsc git:(03f9326f1) go mod why -m github.com/prysmaticlabs/prysm/v5
# github.com/prysmaticlabs/prysm/v5
github.com/ethereum/go-ethereum/cmd/geth
github.com/prysmaticlabs/prysm/v5/crypto/bls
zzzckck commented 4 months ago

we may have another issue: 2 prysm dependencies in go.mod with different version.

➜  bsc git:(03f9326f1) cat go.mod|grep "prysm"
  github.com/prysmaticlabs/prysm/v5 v5.0.3
  github.com/prysmaticlabs/prysm v0.0.0-20220124113610-e26cde5e091b // indirect
0.20210702154020-550e1cd83ec1

v5.0.3: was for BSC BLS related v0.0.0-20220124113610-e26cde5e091b: was imported indirectly for GreenField precompile contract.

➜  bsc git:(03f9326f1) go mod why -m github.com/prysmaticlabs/prysm
# github.com/prysmaticlabs/prysm
github.com/ethereum/go-ethereum/core/vm/lightclient/v2
github.com/cometbft/cometbft/light
github.com/cometbft/cometbft/light/provider/http
github.com/cometbft/cometbft/rpc/client
github.com/cometbft/cometbft/rpc/core/types
github.com/cometbft/cometbft/votepool
github.com/prysmaticlabs/prysm/crypto/bls/blst
➜  bsc git:(03f9326f1) go mod why -m github.com/prysmaticlabs/prysm/v5
# github.com/prysmaticlabs/prysm/v5
github.com/ethereum/go-ethereum/cmd/geth
github.com/prysmaticlabs/prysm/v5/crypto/bls

track prsym in https://github.com/bnb-chain/bsc/issues/2553