diem: [Bug] ubuntu failed to run custom build command for `grpcio-sys v0.4.4`

🐛 Bug

To reproduce

** Code snippet to reproduce **

# Your code goes here
# Please make sure it does not require any external dependencies

** Stack trace/error message **

// Paste the output here

Expected Behavior

System information

./scripts/cli/start_cli_testnet.sh Building and running client in debug mode. Compiling grpcio-sys v0.4.4 Compiling ring v0.14.6 error: failed to run custom build command for grpcio-sys v0.4.4

Caused by: process didn’t exit successfully: /home/gitSource/libra/target/debug/build/grpcio-sys-18712f499919ddc1/build-script-build (exit code: 101) — stdout cargo:rerun-if-changed=grpc_wrap.cc cargo:rerun-if-changed=grpc cargo:rerun-if-env-changed=GRPCIO_SYS_USE_PKG_CONFIG cargo:rerun-if-env-changed=CARGO_CFG_TARGET_OS running: “cmake” “/root/.cargo/registry/src/github.com-1ecc6299db9ec823/grpcio-sys-0.4.4/grpc” “-DgRPC_INSTALL=false” “-DgRPC_BUILD_CSHARP_EXT=false” “-DgRPC_BUILD_CODEGEN=false” “-DgRPC_BENCHMARK_PROVIDER=none” “-DCMAKE_INSTALL_PREFIX=/home/gitSource/libra/target/debug/build/grpcio-sys-c998cb3e25589d95/out” “-DCMAKE_C_FLAGS= -ffunction-sections -fdata-sections -fPIC -m64” “-DCMAKE_C_COMPILER=/usr/bin/cc” “-DCMAKE_CXX_FLAGS= -ffunction-sections -fdata-sections -fPIC -m64” “-DCMAKE_CXX_COMPILER=/usr/bin/c++” “-DCMAKE_BUILD_TYPE=Debug” – Configuring done – Generating done – Build files have been written to: /home/gitSource/libra/target/debug/build/grpcio-sys-c998cb3e25589d95/out/build

— stderr CMake Warning at cmake/protobuf.cmake:48 (message): gRPC_PROTOBUF_PROVIDER is “module” but PROTOBUF_ROOT_DIR is wrong Call Stack (most recent call first): CMakeLists.txt:140 (include)

CMake Warning at cmake/gflags.cmake:26 (message): gRPC_GFLAGS_PROVIDER is “module” but GFLAGS_ROOT_DIR is wrong Call Stack (most recent call first): CMakeLists.txt:142 (include)

CMake Error at CMakeLists.txt:738 (target_compile_options): Error evaluating generator expression:

$<COMPILE_LANGUAGE:CXX>

Expression did not evaluate to a known generator expression

CMake Error at CMakeLists.txt:6171 (target_compile_options): Error evaluating generator expression:

$<COMPILE_LANGUAGE:CXX>

Expression did not evaluate to a known generator expression

CMake Error at CMakeLists.txt:871 (target_compile_options): Error evaluating generator expression:

$<COMPILE_LANGUAGE:CXX>

Expression did not evaluate to a known generator expression

CMake Error at CMakeLists.txt:1329 (target_compile_options): Error evaluating generator expression:

$<COMPILE_LANGUAGE:CXX>

Expression did not evaluate to a known generator expression

CMake Error at CMakeLists.txt:1329 (target_compile_options): Error evaluating generator expression:

$<COMPILE_LANGUAGE:CXX>

Expression did not evaluate to a known generator expression

CMake Error at CMakeLists.txt:7803 (target_compile_options): Error evaluating generator expression:

$<COMPILE_LANGUAGE:CXX>

Expression did not evaluate to a known generator expression

CMake Error at CMakeLists.txt:1715 (target_compile_options): Error evaluating generator expression:

$<COMPILE_LANGUAGE:CXX>

Expression did not evaluate to a known generator expression

CMake Error at CMakeLists.txt:1715 (target_compile_options): Error evaluating generator expression:

$<COMPILE_LANGUAGE:CXX>

Expression did not evaluate to a known generator expression

CMake Error at CMakeLists.txt:8012 (target_compile_options): Error evaluating generator expression:

$<COMPILE_LANGUAGE:CXX>

Expression did not evaluate to a known generator expression

CMake Error at CMakeLists.txt:2694 (target_compile_options): Error evaluating generator expression:

$<COMPILE_LANGUAGE:CXX>

Expression did not evaluate to a known generator expression

CMake Error at CMakeLists.txt:2694 (target_compile_options): Error evaluating generator expression:

$<COMPILE_LANGUAGE:CXX>

Expression did not evaluate to a known generator expression

CMake Error at CMakeLists.txt:8114 (target_compile_options): Error evaluating generator expression:

$<COMPILE_LANGUAGE:CXX>

Expression did not evaluate to a known generator expression

thread ‘main’ panicked at ’ command did not execute successfully, got: exit code: 1

build script failed, must exit now’, /root/.cargo/registry/src/github.com-1ecc6299db9ec823/cmake-0.1.40/src/lib.rs:832: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

Please complete the following information:

Additional context

Add any other context about the problem here.

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 15 (4 by maintainers)

Commits related to this issue

Most upvoted comments

i met the same error, fixed by update golang and cmake to latest version.
you can try 😉