Open jjjjibm opened 8 years ago
As an experiment (I have multiple failures), I deleted fabric and cloned it again. I rebuilt my vagrant VM.
The result is a big improvement in the number of messages. The makefile still fails, but much later. Here is the new error: core/rest/rest_api_test.go:124: cannot use new(mockDevops) (type mockDevops) as type "github.com/hyperledger/fabric/protos".DevopsServer in assignment: mockDevops does not implement "github.com/hyperledger/fabric/protos".DevopsServer (missing EXP_ExecuteWithBinding method)
/fabric$ make all
CGO_CFLAGS=" " CGO_LDFLAGS="-lrocksdb -lstdc++ -lm -lz -lbz2 -lsn appy" GOBIN=/opt/gopath/src/github.com/hyperledger/fabric/build/b in go install github.com/hyperledger/fabric/membersrvc
Binary available as build/bin/membersrvc
make gotool.gomega
make[1]: Entering directory /opt/gopath/src/github.com/hyperledg er/fabric' go get github.com/onsi/gomega make[1]: Leaving directory
/opt/gopath/src/github.com/hyperledge r/fabric'
LINT: Running code checks..
Running go vet
go vet ./consensus/...
go vet ./core/...
go vet ./discovery/...
go vet ./events/...
go vet ./examples/...
go vet ./membersrvc/...
go vet ./peer/...
go vet ./protos/...
Running goimports
Building build/docker/bin/peer
Building docker peer-image
cp build/docker/bin/peer build/image/peer/bin
docker build -t hyperledger/fabric-peer:latest build/image/peer
Sending build context to Docker daemon 27.05 MB
Step 1 : FROM hyperledger/fabric-src:latest
---> db76d82aa778
Step 2 : RUN mkdir -p /var/hyperledger/db
---> Running in 53ce8b4d0a3b
---> 41061ea2f1bf
Removing intermediate container 53ce8b4d0a3b
Step 3 : COPY bin/* $GOPATH/bin/
---> 4d59e59e494b
Removing intermediate container 53e1318d068d
Step 4 : WORKDIR $GOPATH/src/github.com/hyperledger/fabric
---> Running in 9f2e70cfd10f
---> aaabe73a43fd
Removing intermediate container 9f2e70cfd10f
Successfully built aaabe73a43fd
Obtaining list of tests to run..DONE!
Starting peer..DONE!
Running tests...
? github.com/hyperledger/fabric/bddtests/chaincode/go/table [no test files]
? github.com/hyperledger/fabric/consensus [no test files]
? github.com/hyperledger/fabric/consensus/controller [ no test files]
ok github.com/hyperledger/fabric/consensus/executor 0 .275s coverage: 79.4% of statements
ok github.com/hyperledger/fabric/consensus/helper 0.096s c overage: 0.5% of statements
ok github.com/hyperledger/fabric/consensus/helper/persist 0 .008s coverage: 0.0% of statements
? github.com/hyperledger/fabric/consensus/noops [no test files]
ok github.com/hyperledger/fabric/consensus/obcpbft 64.626s c overage: 80.1% of statements
ok github.com/hyperledger/fabric/consensus/obcpbft/custodian 0.731s coverage: 98.6% of statements
ok github.com/hyperledger/fabric/consensus/obcpbft/events 0 .218s coverage: 91.2% of statements
ok github.com/hyperledger/fabric/consensus/util 0.197s c overage: 93.8% of statements
ok github.com/hyperledger/fabric/core 0.062s coverage: 5.7% of statements
ok github.com/hyperledger/fabric/core/chaincode 280.759s coverage: 62.2% of statements
? github.com/hyperledger/fabric/core/chaincode/platforms [no test files]
? github.com/hyperledger/fabric/core/chaincode/platforms/car [no test files]
ok github.com/hyperledger/fabric/core/chaincode/platforms/car/test 14.455s coverage: 0.0% of statements
ok github.com/hyperledger/fabric/core/chaincode/platforms/golang 0.073s coverage: 12.5% of statements
ok github.com/hyperledger/fabric/core/chaincode/shim 0.057s coverage: 1.9% of statements
? github.com/hyperledger/fabric/core/chaincode/shim/crypto [no test files]
ok github.com/hyperledger/fabric/core/chaincode/shim/crypto/attr 0.052s coverage: 90.4% of statements
ok github.com/hyperledger/fabric/core/chaincode/shim/crypto/ecdsa 0.203s coverage: 66.7% of statements
ok github.com/hyperledger/fabric/core/comm 2.739s coverage: 56.7% of statements
? github.com/hyperledger/fabric/core/config [no test files]
ok github.com/hyperledger/fabric/core/container 13.663s coverage: 34.3% of statements
? github.com/hyperledger/fabric/core/container/ccintf [no test files]
? github.com/hyperledger/fabric/core/container/dockercontroller [no test files]
? github.com/hyperledger/fabric/core/container/inproccontroller [no test files]
? github.com/hyperledger/fabric/core/container/util [no test files]
ok github.com/hyperledger/fabric/core/crypto 87.877s coverage: 62.6% of statements
ok github.com/hyperledger/fabric/core/crypto/attributes 0.053s coverage: 92.2% of statements
? github.com/hyperledger/fabric/core/crypto/attributes/proto [no test files]
ok github.com/hyperledger/fabric/core/crypto/primitives 21.102s coverage: 72.6% of statements
ok github.com/hyperledger/fabric/core/crypto/primitives/aes 0.007s coverage: 85.7% of statements
ok github.com/hyperledger/fabric/core/crypto/primitives/ecies 0.404s coverage: 74.5% of statements
? github.com/hyperledger/fabric/core/crypto/utils [no test files]
ok github.com/hyperledger/fabric/core/db 1.019s coverage: 67.1% of statements
ok github.com/hyperledger/fabric/core/ledger 20.771s coverage: 80.0% of statements
ok github.com/hyperledger/fabric/core/ledger/genesis 0.102s coverage: 47.1% of statements
ok github.com/hyperledger/fabric/core/ledger/perfstat 0.005s coverage: 2.2% of statements
ok github.com/hyperledger/fabric/core/ledger/statemgmt 0.009s coverage: 68.2% of statements
ok github.com/hyperledger/fabric/core/ledger/statemgmt/buckettree 0.798s coverage: 91.6% of statements
ok github.com/hyperledger/fabric/core/ledger/statemgmt/raw 0.010s coverage: 0.0% of statements
ok github.com/hyperledger/fabric/core/ledger/statemgmt/state 0.605s coverage: 61.7% of statements
ok github.com/hyperledger/fabric/core/ledger/statemgmt/trie 0.546s coverage: 79.9% of statements
ok github.com/hyperledger/fabric/core/ledger/test 15.188s coverage: 0.0% of statements
ok github.com/hyperledger/fabric/core/ledger/testutil 0.005s coverage: 0.0% of statements
ok github.com/hyperledger/fabric/core/ledger/util 0.007s coverage: 95.5% of statements
ok github.com/hyperledger/fabric/core/peer 0.025s coverage: 1.5% of statements
ok github.com/hyperledger/fabric/core/peer/statetransfer 0.284s coverage: 81.4% of statements
core/rest/rest_api_test.go:124: cannot use new(mockDevops) (type _mockDevops) as type "github.com/hyperledger/fabric/protos".DevopsServer in assignment: mockDevops does not implement "github.com/hyperledger/fabric/protos".DevopsServer (missing EXP_ExecuteWithBinding method) FAIL github.com/hyperledger/fabric/core/rest [build failed] ok github.com/hyperledger/fabric/core/system_chaincode 2.279s coverage: 81.0% of statements ? github.com/hyperledger/fabric/core/system_chaincode/api [no test files] ? github.com/hyperledger/fabric/core/system_chaincode/samplesyscc [no test files] ok github.com/hyperledger/fabric/core/util 2.019s coverage: 73.7% of statements ? github.com/hyperledger/fabric/discovery [no test files] ok github.com/hyperledger/fabric/events 4.067s coverage: 81.0% of statements ? github.com/hyperledger/fabric/events/consumer [no test files] ? github.com/hyperledger/fabric/events/producer [no test files] ? github.com/hyperledger/fabric/membersrvc [no test files] ok github.com/hyperledger/fabric/membersrvc/ca 10.872s coverage: 75.6% of statements ? github.com/hyperledger/fabric/membersrvc/protos [no test files] ok github.com/hyperledger/fabric/peer 0.072s coverage: 11.1% of statements ok github.com/hyperledger/fabric/protos 0.158s coverage: 5.8% of statements ? github.com/hyperledger/fabric/tools/busywork/benchmarks [no test files] ok github.com/hyperledger/fabric/tools/busywork/busywork 2.195s coverage: 88.9% of statements ? github.com/hyperledger/fabric/tools/busywork/counters [no test files] ok github.com/hyperledger/fabric/tools/dbutility 0.364s coverage: 32.4% of statements Stopping peer.. make: _* [unit-test] Error 2
P.S. Sorry about the monster font in the prior post.
Description
Here is my environment: Windows 7 --> virtualbox -> git bash -> vagrant
When running 'make all'. the command fails with many messages like this:
cannot use grpcServer (type "github.com/hyperledger/fabric/vendor/google.golang.org/grpc".Server) as type "github.com/hyperledger/fabric/vendor/github.com/hyperledger/fabric/vendor/google.golang.org/grpc".Server in argument to "github.com/hyperledger/fabric/vendor/github.com/hyperledger/fabric/protos".RegisterEventsServer
This worked for me a day or so ago, so recent code must have broken it. Here is the full output of Make: ==================begin Make all output ============================== $ make all Building docker src-image docker build -t hyperledger/fabric-src:latest build/image/src Sending build context to Docker daemon 20.42 MB Step 1 : FROM hyperledger/fabric-baseimage:latest ---> 3d32508b5e7f Step 2 : ADD gopath.tar.bz2 $GOPATH/src/github.com/hyperledger/fabric ---> 44c00fdca742 Removing intermediate container 8aaccb02a159 Successfully built 44c00fdca742 Building docker ccenv-image docker build -t hyperledger/fabric-ccenv:latest build/image/ccenv Sending build context to Docker daemon 16.97 MB Step 1 : FROM hyperledger/fabric-src:latest ---> 44c00fdca742 Step 2 : COPY bin/* /usr/local/bin/ ---> 71b6b7c1dee0 Removing intermediate container 7578afbc4c70 Successfully built 71b6b7c1dee0 CGO_CFLAGS=" " CGO_LDFLAGS="-lrocksdb -lstdc++ -lm -lz -lbz2 -lsnappy" GOBIN=/opt/gopath/src/github.com/hyperledger/fabric/build/bin go install github.com/hyperledger/fabric/peer
github.com/hyperledger/fabric/peer
peer/main.go:349: cannot use grpcServer (type "github.com/hyperledger/fabric/vendor/google.golang.org/grpc".Server) as type "github.com/hyperledger/fabric/vendor/github.com/hyperledger/fabric/vendor/google.golang.org/grpc".Server in argument to "github.com/hyperledger/fabric/vendor/github.com/hyperledger/fabric/protos".RegisterEventsServer peer/main.go:492: cannot use grpcServer (type "github.com/hyperledger/fabric/vendor/google.golang.org/grpc".Server) as type "github.com/hyperledger/fabric/vendor/github.com/hyperledger/fabric/vendor/google.golang.org/grpc".Server in argument to "github.com/hyperledger/fabric/vendor/github.com/hyperledger/fabric/protos".RegisterPeerServer peer/main.go:495: cannot use grpcServer (type "github.com/hyperledger/fabric/vendor/google.golang.org/grpc".Server) as type "github.com/hyperledger/fabric/vendor/github.com/hyperledger/fabric/vendor/google.golang.org/grpc".Server in argument to "github.com/hyperledger/fabric/vendor/github.com/hyperledger/fabric/protos".RegisterAdminServer peer/main.go:499: cannot use grpcServer (type "github.com/hyperledger/fabric/vendor/google.golang.org/grpc".Server) as type "github.com/hyperledger/fabric/vendor/github.com/hyperledger/fabric/vendor/google.golang.org/grpc".Server in argument to "github.com/hyperledger/fabric/vendor/github.com/hyperledger/fabric/protos".RegisterDevopsServer peer/main.go:508: cannot use grpcServer (type "github.com/hyperledger/fabric/vendor/google.golang.org/grpc".Server) as type "github.com/hyperledger/fabric/vendor/github.com/hyperledger/fabric/vendor/google.golang.org/grpc".Server in argument to "github.com/hyperledger/fabric/vendor/github.com/hyperledger/fabric/protos".RegisterOpenchainServer peer/main.go:578: cannot use "github.com/hyperledger/fabric/vendor/google/protobuf".Empty literal (type "github.com/hyperledger/fabric/vendor/google/protobuf".Empty) as type "github.com/hyperledger/fabric/vendor/github.com/hyperledger/fabric/vendor/google/protobuf".Empty in argument to serverClient.GetStatus peer/main.go:611: cannot use "github.com/hyperledger/fabric/vendor/google/protobuf".Empty literal (type "github.com/hyperledger/fabric/vendor/google/protobuf".Empty) as type "github.com/hyperledger/fabric/vendor/github.com/hyperledger/fabric/vendor/google/protobuf".Empty in argument to serverClient.StopServer peer/main.go:739: cannot use grpcServer (type "github.com/hyperledger/fabric/vendor/google.golang.org/grpc".Server) as type "github.com/hyperledger/fabric/vendor/github.com/hyperledger/fabric/vendor/google.golang.org/grpc".Server in argument to "github.com/hyperledger/fabric/vendor/github.com/hyperledger/fabric/protos".RegisterChaincodeSupportServer peer/main.go:987: invocation.IdGenerationAlg undefined (type "github.com/hyperledger/fabric/vendor/github.com/hyperledger/fabric/protos".ChaincodeInvocationSpec has no field or method IdGenerationAlg) peer/main.go:1039: cannot use "github.com/hyperledger/fabric/vendor/google/protobuf".Empty literal (type "github.com/hyperledger/fabric/vendor/google/protobuf".Empty) as type "github.com/hyperledger/fabric/vendor/github.com/hyperledger/fabric/vendor/google/protobuf".Empty in argument to openchainClient.GetPeers *peer/main.go:1039: too many errors make: * [build/bin/peer] Error 2 vagrant@ubuntu-1404:/opt/gopath/src/github.com/hyperledger/fabric$ ==================end Make all output ==============================
Sorry about the monster font in the middle of the Make output.
Describe How to Reproduce
1.From GIT BASH, Synchronize your laptop with github:
git fetch upstream git merge upstream/master git push origin
You can also enter 'make peer' for a similar result.