web3labs / crux

Data Privacy for Quorum Blockchains
https://www.web3labs.com
Apache License 2.0
53 stars 28 forks source link

Error trying build the master #21

Closed nadeemajl closed 6 years ago

nadeemajl commented 6 years ago

Hi, I am trying to build crux master, getting the following exception, can you please help me out,

Error stacktrace: google/protobuf/descriptor.proto: File not found. google/api/annotations.proto: Import "google/protobuf/descriptor.proto" was not found or had errors. google/api/annotations.proto:28:8: "google.protobuf.MethodOptions" is not defined. messages.proto: Import "google/api/annotations.proto" was not found or had errors. grpc.proto: Import "google/api/annotations.proto" was not found or had errors. grpc.proto: Import "messages.proto" was not found or had errors. grpc.proto:9:17: "ApiVersion" is not defined. grpc.proto:9:38: "ApiVersion" is not defined. grpc.proto:16:17: "UpCheckResponse" is not defined. grpc.proto:16:43: "UpCheckResponse" is not defined. grpc.proto:23:14: "SendRequest" is not defined. grpc.proto:23:36: "SendResponse" is not defined. grpc.proto:25:17: "ReceiveRequest" is not defined. grpc.proto:25:42: "ReceiveResponse" is not defined. grpc.proto:27:25: "PartyInfo" is not defined. grpc.proto:27:45: "PartyInfoResponse" is not defined. grpc.proto:34:14: "PushPayload" is not defined. grpc.proto:34:36: "PartyInfoResponse" is not defined. Makefile:17: recipe for target 'proto' failed make: *** [proto] Error 1

Machine config: Linux dagger 4.15.0-29-generic #31-Ubuntu SMP Tue Jul 17 15:39:52 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux 16 GB RAM, 110 GB SSD

Puneetha17 commented 6 years ago

We have been refactoring the code and recently made a few changes and moved grpc.proto file into a different project https://github.com/blk-io/chimera-api.

Please can you try to build it again and verify if it is building now?

nadeemajl commented 6 years ago

Hi,

Thanks for the response. I took an update, now the build fails with the following issue.

go get -u github.com/golang/dep/cmd/dep go get -u golang.org/x/tools/cmd/goimports go get -u github.com/wadey/gocovmerge (cd /home/nadeem/crux/.GOPATH/src/github.com/blk-io/crux && ./bin/dep ensure) github.com/blk-io/crux/vendor/github.com/jsimonetti/berkeleydb .GOPATH/src/github.com/blk-io/crux/vendor/github.com/jsimonetti/berkeleydb/bdb.go:4:11: fatal error: db.h: No such file or directory // #include ^~ compilation terminated. Makefile:16: recipe for target 'build' failed make: *** [build] Error 2

Puneetha17 commented 6 years ago

Can you please install berkley DB with sudo apt-get update -qq && sudo apt-get install -y -qq libdb-dev libpthread-stubs0-dev command, and retry the build?

nadeemajl commented 6 years ago

Great, that worked! Thanks. Just an FYI, I was getting the below warnings.

bdb.c: In function ‘go_db_cursor’: bdb.c:78:38: warning: passing argument 3 of ‘dbp->cursor’ from incompatible pointer type [-Wincompatible-pointer-types] ret = dbp->cursor(dbp, NULL, dbcp, 0); ^~~~ bdb.c:78:38: note: expected ‘DBC {aka struct __dbc }’ but argument is of type ‘DBC {aka struct __dbc }’