diem: [Bug] Build failed on MacOS Mojave 10.14.5
π Bug
To reproduce
** Code snippet to reproduce **
./scripts/cli/start_cli_testnet.sh
** Stack trace/error message **
Building and running client in debug mode.
Compiling mempool v0.1.0 (/Users/suraneti/libra/mempool)
Compiling admission_control_proto v0.1.0 (/Users/suraneti/libra/admission_control/admission_control_proto)
Compiling types v0.1.0 (/Users/suraneti/libra/types)
error: failed to write `/Users/suraneti/libra/target/debug/.fingerprint/types-cc4e4a0bb3add5b8/invoked.timestamp`
Caused by:
Permission denied (os error 13)
warning: build failed, waiting for other jobs to finish...
error: failed to run custom build command for `admission_control_proto v0.1.0 (/Users/suraneti/libra/admission_control/admission_control_proto)`
Caused by:
process didn't exit successfully: `/Users/suraneti/libra/target/debug/build/admission_control_proto-03b3d2126a3ca020/build-script-build` (exit code: 101)
--- stdout
cargo:rerun-if-changed=../../types/src/proto/vm_errors.proto
cargo:rerun-if-changed=../../types/src/proto/get_with_proof.proto
cargo:rerun-if-changed=../../types/src/proto/events.proto
cargo:rerun-if-changed=../../types/src/proto/account_state_blob.proto
cargo:rerun-if-changed=../../types/src/proto/transaction.proto
cargo:rerun-if-changed=../../types/src/proto/validator_public_keys.proto
cargo:rerun-if-changed=../../types/src/proto/proof.proto
cargo:rerun-if-changed=../../types/src/proto/validator_change.proto
cargo:rerun-if-changed=../../types/src/proto/access_path.proto
cargo:rerun-if-changed=../../types/src/proto/validator_set.proto
cargo:rerun-if-changed=../../types/src/proto/ledger_info.proto
cargo:rerun-if-changed=../../types/src/proto/transaction_info.proto
cargo:rerun-if-changed=../../mempool/src/proto/shared/mempool_status.proto
cargo:rerun-if-changed=src/proto/admission_control.proto
--- stderr
admission_control.proto: No such file or directory
thread 'main' panicked at 'failed to write descriptor set: Custom { kind: Other, error: StringError("protoc (\"protoc\" \"-I../../types/src/proto\" \"-I../../mempool/src/proto/shared\" \"-Isrc/proto\" \"--descriptor_set_out=/var/folders/2b/rjzvbp2n2cv6gqndhycgxg_40000gp/T/18cd9ab64b7047008ba2c140c719d449\" \"--include_imports\" \"admission_control.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: failed to run custom build command for `mempool v0.1.0 (/Users/suraneti/libra/mempool)`
Caused by:
process didn't exit successfully: `/Users/suraneti/libra/target/debug/build/mempool-e66c6f51ea4dd9e3/build-script-build` (exit code: 101)
--- stdout
cargo:rerun-if-changed=src/proto/shared/mempool_status.proto
cargo:rerun-if-changed=../types/src/proto/vm_errors.proto
cargo:rerun-if-changed=../types/src/proto/get_with_proof.proto
cargo:rerun-if-changed=../types/src/proto/events.proto
cargo:rerun-if-changed=../types/src/proto/account_state_blob.proto
cargo:rerun-if-changed=../types/src/proto/transaction.proto
cargo:rerun-if-changed=../types/src/proto/validator_public_keys.proto
cargo:rerun-if-changed=../types/src/proto/proof.proto
cargo:rerun-if-changed=../types/src/proto/validator_change.proto
cargo:rerun-if-changed=../types/src/proto/access_path.proto
cargo:rerun-if-changed=../types/src/proto/validator_set.proto
cargo:rerun-if-changed=../types/src/proto/ledger_info.proto
cargo:rerun-if-changed=../types/src/proto/transaction_info.proto
cargo:rerun-if-changed=src/proto/shared/mempool_status.proto
cargo:rerun-if-changed=src/proto/mempool.proto
--- stderr
mempool.proto: No such file or directory
thread 'main' panicked at 'failed to write descriptor set: Custom { kind: Other, error: StringError("protoc (\"protoc\" \"-I../types/src/proto\" \"-Isrc/proto/shared\" \"-Isrc/proto\" \"--descriptor_set_out=/var/folders/2b/rjzvbp2n2cv6gqndhycgxg_40000gp/T/663d76148653484985ae9c8eae13fa62\" \"--include_imports\" \"mempool.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.
Expected Behavior
Build successful
System information
Please complete the following information:
- master branch
- rustc 1.35.0 (3c235d560 2019-05-20)
- MacOS Mojave 10.14.5
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 17 (5 by maintainers)
Commits related to this issue
- [helm] update dockerhub repo Closes: #215 — committed to danielxiangzl/Block-STM by sherry-x 2 years ago
Problem seem to be solved after Iβve upgraded
protobuf 3.0.0-beta-4 -> 3.7.1via HomebrewInstalling protoc
I still donβt know what is root problem.