Probleme of compilation

Compiling crossbeam v0.4.1
Compiling proptest_helpers v0.1.0 (/root/libra/common/proptest_helpers)
Compiling failure v0.1.5
Compiling parity-multiaddr v0.4.1
error: failed to run custom build command for network v0.1.0 (/root/libra/network)

Caused by:
process didn’t exit successfully: /root/libra/target/debug/build/network-3bce66de4ba49a2b/build-script-build (exit code: 101)
— stdout

— 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-rustTyT4Oe/descriptor.pbbin” “–include_imports” “src/proto/network.proto” “src/proto/mempool.proto” “src/proto/consensus.proto”) exited with non-zero exit code”) }’, src/libcore/
note: Run with RUST_BACKTRACE=1 environment variable to display a backtrace.

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

1 Like

You need protoc 3.6.0+

1 Like

In case anyone else is facing this issue and you’re using a Ubuntu based OS (e.g. Linux Mint, or obviously Ubuntu itself), following this gist worked for me:

1 Like