Giter Club home page Giter Club logo

Comments (6)

kingsop avatar kingsop commented on June 4, 2024 1

What did you do?
I am build a new testnet with iotexproject/iotex-core

What did you expect to see?
Run Unit Tests
What did you see instead?
when ienter " make fmt; make build" ,there has been a mistake,what should i do.

make fmt; make build
go fmt ./...
blocksync/blocksync_test.go
config/config.go
consensus/scheme/rolldpos/rolldpos.go
iotxaddress/bech32/bech32_test.go
network/overlay_test.go
go build -o ./bin/server -v ./server
github.com/iotexproject/iotex-core/vendor/golang.org/x/sys/cpu
github.com/iotexproject/iotex-core/pkg/version
github.com/iotexproject/iotex-core/network/node
github.com/iotexproject/iotex-core/vendor/google.golang.org/grpc/resolver
github.com/iotexproject/iotex-core/vendor/google.golang.org/grpc/internal
github.com/iotexproject/iotex-core/vendor/github.com/prometheus/procfs/internal/util
github.com/iotexproject/iotex-core/pkg/errcode
github.com/iotexproject/iotex-core/vendor/google.golang.org/grpc/resolver/passthrough
github.com/iotexproject/iotex-core/pkg/enc
github.com/iotexproject/iotex-core/vendor/golang.org/x/crypto/blake2b
github.com/iotexproject/iotex-core/vendor/golang.org/x/text/transform
github.com/iotexproject/iotex-core/vendor/github.com/CoderZhi/go-ethereum/crypto/sha3
github.com/iotexproject/iotex-core/vendor/github.com/pkg/errors
github.com/iotexproject/iotex-core/pkg/hash
github.com/iotexproject/iotex-core/iotxaddress/bech32
github.com/iotexproject/iotex-core/vendor/go.uber.org/config/internal/unreachable
github.com/iotexproject/iotex-core/pkg/keypair
github.com/iotexproject/iotex-core/vendor/github.com/rs/zerolog/internal/json
github.com/iotexproject/iotex-core/vendor/go.uber.org/atomic
github.com/iotexproject/iotex-core/vendor/google.golang.org/grpc/keepalive
github.com/iotexproject/iotex-core/vendor/github.com/facebookgo/clock
github.com/iotexproject/iotex-core/vendor/go.uber.org/multierr
github.com/iotexproject/iotex-core/vendor/gopkg.in/yaml.v2
github.com/iotexproject/iotex-core/vendor/golang.org/x/net/context
github.com/iotexproject/iotex-core/vendor/github.com/CoderZhi/go-ethereum/common/hexutil
github.com/iotexproject/iotex-core/vendor/golang.org/x/sync/errgroup
github.com/iotexproject/iotex-core/pkg/lifecycle
github.com/iotexproject/iotex-core/pkg/routine
github.com/iotexproject/iotex-core/vendor/github.com/CoderZhi/go-ethereum/common
github.com/iotexproject/iotex-core/vendor/github.com/CoderZhi/go-ethereum/rlp
github.com/iotexproject/iotex-core/vendor/github.com/rs/zerolog
github.com/iotexproject/iotex-core/vendor/github.com/CoderZhi/go-ethereum/common/math
github.com/iotexproject/iotex-core/vendor/github.com/CoderZhi/go-ethereum/crypto/secp256k1
github.com/iotexproject/iotex-core/vendor/github.com/CoderZhi/go-ethereum/core/types
github.com/iotexproject/iotex-core/vendor/github.com/CoderZhi/go-ethereum/crypto/bn256/cloudflare
github.com/iotexproject/iotex-core/logger
github.com/iotexproject/iotex-core/crypto
github.com/iotexproject/iotex-core/vendor/github.com/CoderZhi/go-ethereum/crypto/bn256
github.com/iotexproject/iotex-core/vendor/github.com/CoderZhi/go-ethereum/params
github.com/iotexproject/iotex-core/vendor/golang.org/x/crypto/ripemd160
github.com/iotexproject/iotex-core/vendor/github.com/golang/protobuf/proto
github.com/iotexproject/iotex-core/vendor/go.uber.org/config/internal/merge
github.com/iotexproject/iotex-core/vendor/go.uber.org/config
github.com/iotexproject/iotex-core/vendor/github.com/coopernurse/barrister-go
github.com/iotexproject/iotex-core/explorer/idl/explorer
github.com/iotexproject/iotex-core/vendor/github.com/boltdb/bolt
github.com/iotexproject/iotex-core/pkg/util/byteutil
github.com/iotexproject/iotex-core/pkg/util/fileutil
github.com/iotexproject/iotex-core/vendor/golang.org/x/text/unicode/bidi
github.com/iotexproject/iotex-core/vendor/golang.org/x/text/secure/bidirule
github.com/iotexproject/iotex-core/vendor/golang.org/x/text/unicode/norm
github.com/iotexproject/iotex-core/proto
github.com/iotexproject/iotex-core/iotxaddress
github.com/iotexproject/iotex-core/config
github.com/iotexproject/iotex-core/blockchain/action
github.com/iotexproject/iotex-core/db
github.com/iotexproject/iotex-core/trie
github.com/iotexproject/iotex-core/dispatch/dispatcher
github.com/iotexproject/iotex-core/vendor/golang.org/x/net/http2/hpack
github.com/iotexproject/iotex-core/vendor/golang.org/x/net/internal/timeseries
github.com/iotexproject/iotex-core/state
github.com/iotexproject/iotex-core/vendor/golang.org/x/net/idna
github.com/iotexproject/iotex-core/vendor/golang.org/x/net/trace
github.com/iotexproject/iotex-core/vendor/google.golang.org/grpc/grpclog
github.com/iotexproject/iotex-core/vendor/google.golang.org/grpc/connectivity
github.com/iotexproject/iotex-core/vendor/google.golang.org/grpc/credentials
github.com/iotexproject/iotex-core/vendor/google.golang.org/grpc/balancer
github.com/iotexproject/iotex-core/vendor/google.golang.org/grpc/balancer/base
github.com/iotexproject/iotex-core/vendor/google.golang.org/grpc/balancer/roundrobin
github.com/iotexproject/iotex-core/vendor/google.golang.org/grpc/codes
github.com/iotexproject/iotex-core/vendor/google.golang.org/grpc/encoding
github.com/iotexproject/iotex-core/vendor/google.golang.org/grpc/encoding/proto
github.com/iotexproject/iotex-core/vendor/google.golang.org/grpc/internal/grpcrand
github.com/iotexproject/iotex-core/vendor/google.golang.org/grpc/internal/backoff
github.com/iotexproject/iotex-core/vendor/google.golang.org/grpc/internal/channelz
github.com/iotexproject/iotex-core/vendor/google.golang.org/grpc/internal/envconfig
github.com/iotexproject/iotex-core/vendor/github.com/golang/protobuf/ptypes/any
github.com/iotexproject/iotex-core/vendor/google.golang.org/genproto/googleapis/rpc/status
github.com/iotexproject/iotex-core/vendor/google.golang.org/grpc/metadata
github.com/iotexproject/iotex-core/vendor/google.golang.org/grpc/peer
github.com/iotexproject/iotex-core/vendor/google.golang.org/grpc/stats
github.com/iotexproject/iotex-core/vendor/github.com/golang/protobuf/ptypes/duration
github.com/iotexproject/iotex-core/vendor/github.com/golang/protobuf/ptypes/timestamp
github.com/iotexproject/iotex-core/vendor/google.golang.org/grpc/tap
github.com/iotexproject/iotex-core/vendor/golang.org/x/net/http/httpguts
github.com/iotexproject/iotex-core/vendor/github.com/golang/protobuf/ptypes
github.com/iotexproject/iotex-core/vendor/google.golang.org/grpc/naming
github.com/iotexproject/iotex-core/vendor/golang.org/x/net/http2
github.com/iotexproject/iotex-core/vendor/google.golang.org/grpc/status
github.com/iotexproject/iotex-core/vendor/google.golang.org/grpc/resolver/dns
github.com/iotexproject/iotex-core/pkg/counter
github.com/iotexproject/iotex-core/vendor/github.com/beorn7/perks/quantile
github.com/iotexproject/iotex-core/vendor/github.com/prometheus/client_model/go
github.com/iotexproject/iotex-core/vendor/github.com/matttproud/golang_protobuf_extensions/pbutil
github.com/iotexproject/iotex-core/vendor/github.com/prometheus/common/internal/bitbucket.org/ww/goautoneg
github.com/iotexproject/iotex-core/vendor/github.com/prometheus/common/model
github.com/iotexproject/iotex-core/vendor/github.com/prometheus/procfs/nfs
github.com/iotexproject/iotex-core/vendor/github.com/prometheus/procfs/xfs
github.com/iotexproject/iotex-core/vendor/github.com/prometheus/procfs
github.com/iotexproject/iotex-core/vendor/github.com/prometheus/common/expfmt
github.com/iotexproject/iotex-core/vendor/github.com/golang/protobuf/protoc-gen-go/descriptor
github.com/iotexproject/iotex-core/vendor/github.com/prometheus/client_golang/prometheus
github.com/iotexproject/iotex-core/vendor/github.com/zjshen14/go-fsm
github.com/iotexproject/iotex-core/vendor/github.com/prometheus/client_golang/prometheus/promhttp
github.com/iotexproject/iotex-core/vendor/google.golang.org/grpc/internal/transport
github.com/iotexproject/iotex-core/vendor/google.golang.org/grpc
github.com/iotexproject/iotex-core/network/proto
github.com/iotexproject/iotex-core/vendor/google.golang.org/grpc/reflection/grpc_reflection_v1alpha
github.com/iotexproject/iotex-core/vendor/google.golang.org/grpc/reflection
github.com/iotexproject/iotex-core/network
github.com/iotexproject/iotex-core/vendor/github.com/CoderZhi/go-ethereum/crypto
github.com/iotexproject/iotex-core/vendor/github.com/CoderZhi/go-ethereum/core/vm
github.com/iotexproject/iotex-core/blockchain
github.com/iotexproject/iotex-core/consensus/scheme
github.com/iotexproject/iotex-core/actpool
github.com/iotexproject/iotex-core/blocksync
github.com/iotexproject/iotex-core/consensus/scheme/rolldpos
github.com/iotexproject/iotex-core/consensus
github.com/iotexproject/iotex-core/dispatch
github.com/iotexproject/iotex-core/explorer
github.com/iotexproject/iotex-core/server/itx
github.com/iotexproject/iotex-core/server

github.com/iotexproject/iotex-core/server

github.com/iotexproject/iotex-core/vendor/github.com/CoderZhi/go-ethereum/crypto/bn256/cloudflare.gfpMul: relocation target runtime.support_bmi2 not defined
make: *** [build] Error 2

from iotex-core.

zjshen14 avatar zjshen14 commented on June 4, 2024 1

@kingsop are you using go 1.11? Saw the same problem reported here: ethereum/go-ethereum#17237 and cloudflare/bn256#2

from iotex-core.

kingsop avatar kingsop commented on June 4, 2024

yeah,good job!i try cloudflare / bn256#2,it fix Go 1.11 compatibility.

from iotex-core.

kingsop avatar kingsop commented on June 4, 2024

When I try the next step,there was another error there.it said:
There was another mistake there.
localhost:iotex-core kingsop123$ make test
go fmt ./...
go test -short ./...
ok github.com/iotexproject/iotex-core/accounts/keystore 0.103s

github.com/iotexproject/iotex-core/blockchain

blockchain/blockchain.go:223: Event.Msgf format %s has arg opt of wrong type blockchain.Option
blockchain/blockvalidator.go:79: Wrapf call needs 1 arg but has 2 args
ok github.com/iotexproject/iotex-core/actpool 0.905s
ok github.com/iotexproject/iotex-core/beacon 0.036s
FAIL github.com/iotexproject/iotex-core/blockchain [build failed]
ok github.com/iotexproject/iotex-core/blockchain/action 0.047s
ok github.com/iotexproject/iotex-core/blocksync 0.594s
? github.com/iotexproject/iotex-core/cli/iotc [no test files]
ok github.com/iotexproject/iotex-core/cli/iotc/cmd 0.109s
ok github.com/iotexproject/iotex-core/config 0.073s
? github.com/iotexproject/iotex-core/consensus [no test files]
? github.com/iotexproject/iotex-core/consensus/scheme [no test files]

github.com/iotexproject/iotex-core/explorer

explorer/server.go:116: Event.Msgf call has arguments but no formatting directives
explorer/server.go:122: Event.Msgf call has arguments but no formatting directives
ok github.com/iotexproject/iotex-core/consensus/scheme/rolldpos 10.635s
? github.com/iotexproject/iotex-core/consensus/sim [no test files]
? github.com/iotexproject/iotex-core/consensus/sim/proto [no test files]
ok github.com/iotexproject/iotex-core/crypto 5.907s
ok github.com/iotexproject/iotex-core/db 0.038s
ok github.com/iotexproject/iotex-core/dispatch 0.276s
? github.com/iotexproject/iotex-core/dispatch/dispatcher [no test files]

github.com/iotexproject/iotex-core/state

state/factory.go:161: Event.Msgf format %s has arg opt of wrong type state.FactoryOption
ok github.com/iotexproject/iotex-core/e2etest 11.289s
FAIL github.com/iotexproject/iotex-core/explorer [build failed]
? github.com/iotexproject/iotex-core/explorer/idl/explorer [no test files]
ok github.com/iotexproject/iotex-core/iotxaddress 0.034s
ok github.com/iotexproject/iotex-core/iotxaddress/bech32 0.015s
ok github.com/iotexproject/iotex-core/logger 0.017s
ok github.com/iotexproject/iotex-core/network 2.595s
? github.com/iotexproject/iotex-core/network/node [no test files]
? github.com/iotexproject/iotex-core/network/proto [no test files]
ok github.com/iotexproject/iotex-core/pkg/counter 5.708s
? github.com/iotexproject/iotex-core/pkg/enc [no test files]
? github.com/iotexproject/iotex-core/pkg/errcode [no test files]
? github.com/iotexproject/iotex-core/pkg/hash [no test files]
ok github.com/iotexproject/iotex-core/pkg/keypair 0.022s
ok github.com/iotexproject/iotex-core/pkg/lifecycle 0.027s
ok github.com/iotexproject/iotex-core/pkg/routine 0.632s
? github.com/iotexproject/iotex-core/pkg/util/byteutil [no test files]
? github.com/iotexproject/iotex-core/pkg/util/fileutil [no test files]
? github.com/iotexproject/iotex-core/pkg/version [no test files]
? github.com/iotexproject/iotex-core/proto [no test files]
? github.com/iotexproject/iotex-core/server [no test files]
? github.com/iotexproject/iotex-core/server/itx [no test files]
FAIL github.com/iotexproject/iotex-core/state [build failed]
? github.com/iotexproject/iotex-core/test/mock/mock_actpool [no test files]
? github.com/iotexproject/iotex-core/test/mock/mock_blockchain [no test files]
? github.com/iotexproject/iotex-core/test/mock/mock_blocksync [no test files]
? github.com/iotexproject/iotex-core/test/mock/mock_consensus [no test files]
? github.com/iotexproject/iotex-core/test/mock/mock_dispatcher [no test files]
? github.com/iotexproject/iotex-core/test/mock/mock_lifecycle [no test files]
? github.com/iotexproject/iotex-core/test/mock/mock_network [no test files]
? github.com/iotexproject/iotex-core/test/mock/mock_state [no test files]
? github.com/iotexproject/iotex-core/test/mock/mock_trie [no test files]
? github.com/iotexproject/iotex-core/test/testaddress [no test files]
ok github.com/iotexproject/iotex-core/testutil 0.044s
ok github.com/iotexproject/iotex-core/tools/actioninjector 5.379s
? github.com/iotexproject/iotex-core/tools/addrgen [no test files]
? github.com/iotexproject/iotex-core/tools/addrgen/internal/cmd [no test files]
ok github.com/iotexproject/iotex-core/trie 4.270s
ok github.com/iotexproject/iotex-core/txvm 0.040s
make: *** [test] Error 2

from iotex-core.

zjshen14 avatar zjshen14 commented on June 4, 2024

@kingsop Are you still on golang 1.11? Could you try downgrade golang to 1.10 instead?

from iotex-core.

zjshen14 avatar zjshen14 commented on June 4, 2024

Problem fixed

from iotex-core.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.