Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when start test client #181

Closed
yoshi721 opened this issue Jun 21, 2019 · 10 comments
Closed

Error when start test client #181

yoshi721 opened this issue Jun 21, 2019 · 10 comments

Comments

@yoshi721
Copy link

hey i got the following error message: can anyone help?

Building and running client in debug mode.
Compiling prost-derive v0.5.0
Compiling which v2.0.1
Compiling protoc-grpcio v0.3.1
Compiling failure_ext v0.1.0 (/root/Desktop/test/libra/libra/common/failure_ext)
Compiling ed25519-dalek v1.0.0-pre.1
Compiling threshold_crypto v0.3.1
Compiling codespan v0.1.3
Compiling snow v0.5.2
Compiling network v0.1.0 (/root/Desktop/test/libra/libra/network)
error: failed to run custom build command for network v0.1.0 (/root/Desktop/test/libra/libra/network)

Caused by:
process didn't exit successfully: /root/Desktop/test/libra/libra/target/debug/build/network-3bce66de4ba49a2b/build-script-build (exit code: 101)
--- stdout
cargo:rerun-if-changed=src/proto/network.proto
cargo:rerun-if-changed=src/proto/mempool.proto
cargo:rerun-if-changed=src/proto/consensus.proto

--- stderr
network.proto:4:10: Unrecognized syntax identifier "proto3". This parser only recognizes "proto2".
thread 'main' panicked at 'protoc: Custom { kind: Other, error: StringError("protoc ("protoc" "-I../types/src/proto" "-Isrc/proto" "--descriptor_set_out=/tmp/protoc-rustXMd2Vi/descriptor.pbbin" "--include_imports" "src/proto/network.proto" "src/proto/mempool.proto" "src/proto/consensus.proto") exited with non-zero exit code") }', src/libcore/result.rs:999:5
note: Run with RUST_BACKTRACE=1 environment variable to display a backtrace.

warning: build failed, waiting for other jobs to finish...
error: build failed

@0-o-0
Copy link
Contributor

0-o-0 commented Jun 21, 2019

network.proto:4:10: Unrecognized syntax identifier "proto3". This parser only recognizes "proto2".

It seems your protoc version is too old. Could you please try to remove the old version and install the latest one?
You can double check by running protoc --version, 3.6.0 or above is required.

@yoshi721
Copy link
Author

yoshi721 commented Jun 22, 2019

i tried protoc --version -> libprotoc 3.7.0

still a problem:

================
error: failed to run custom build command for network v0.1.0 (/root/Desktop/test/libra/libra/network)

Caused by:
process didn't exit successfully: /root/Desktop/test/libra/libra/target/debug/build/network-3bce66de4ba49a2b/build-script-build (exit code: 101)
--- stdout
cargo:rerun-if-changed=src/proto/network.proto
cargo:rerun-if-changed=src/proto/mempool.proto
cargo:rerun-if-changed=src/proto/consensus.proto

--- stderr
google/protobuf/wrappers.proto: File not found.
transaction.proto: Import "google/protobuf/wrappers.proto" was not found or had errors.
transaction.proto:160:5: "google.protobuf.UInt64Value" is not defined.
mempool.proto: Import "transaction.proto" was not found or had errors.
mempool.proto:17:12: "types.SignedTransaction" is not defined.
thread 'main' panicked at 'protoc: Custom { kind: Other, error: StringError("protoc ("protoc" "-I../types/src/proto" "-Isrc/proto" "--descriptor_set_out=/tmp/protoc-rustBq7J0H/descriptor.pbbin" "--include_imports" "src/proto/network.proto" "src/proto/mempool.proto" "src/proto/consensus.proto") exited with non-zero exit code") }', src/libcore/result.rs:999:5
note: Run with RUST_BACKTRACE=1 environment variable to display a backtrace.

warning: build failed, waiting for other jobs to finish...
error: build failed

====================

thanks

@icarter09
Copy link

@yoshi721 what OS are you running?

@ruig2
Copy link

ruig2 commented Jun 26, 2019

I got the same issue with Mac OS X 10.14.5 (18F132).

It seems that I need to uninstall proto2 and re-install proto3. Reference: linkerd/linkerd#1118

I'll post here if this can be fixed with the above reference.

@ruig2
Copy link

ruig2 commented Jun 26, 2019

The issue is that the default version of protobuf in brew is 2.x: https://github.com/libra/libra/blob/master/scripts/dev_setup.sh#L141, while we need a 3.x to make things working.

If you get the same issue, let's uninstall protobuf 2.x and install a protobuf 3.x:

brew uninstall protobuf --force # delete 2.x
brew install protobuf@3.6 # install 3.x
protoc --version # it should now show libprotoc 3.6.1

Then re-run the scripts (https://developers.libra.org/docs/my-first-transaction) to make Libra working.

@yoshi721
Copy link
Author

@yoshi721 what OS are you running?

NAME="Ubuntu"
VERSION="16.04.3 LTS (Xenial Xerus)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 16.04.3 LTS"
VERSION_ID="16.04"
HOME_URL="http://www.ubuntu.com/"
SUPPORT_URL="http://help.ubuntu.com/"
BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/"
VERSION_CODENAME=xenial
UBUNTU_CODENAME=xenial

@katopz
Copy link

katopz commented Jun 27, 2019

@liuzhishan
Copy link

liuzhishan commented Jul 28, 2019

@yoshi721 Hi, I have the same problem and I found the solution. You just need to download the protoc (like protoc 3.9.0 from https://github.com/protocolbuffers/protobuf/releases), and copy the include directory to /usr/local.

Just installed protoc 3.6.1 didnt work for me.

@tommyyama2020
Copy link

I am using Mac OS 10.15.1 ver and do not have an issue with the execution of ./scripts/cli/start_cli_testnet.sh.

have you downloaded the latest one and execute the same?

@bmwill
Copy link
Contributor

bmwill commented Jan 21, 2020

The external dependencies needed to build Libra have been simplified and should only require Rust now so this shouldn't be an issue anymore on master. If it is, please let us know.

@bmwill bmwill closed this as completed Jan 21, 2020
danielxiangzl referenced this issue in danielxiangzl/Block-STM Apr 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants