[options] [-- [native-options]]
Options:
= Project binary directory to be built.
--target = Build instead of default targets.
May only be specified once.
--config = For multi-configuration tools, choose .
--clean-first = Build target 'clean' first, then build.
(To clean only, use --target 'clean'.)
--use-stderr = Ignored. Behavior is default in CMake >= 3.0.
-- = Pass remaining options to the native tool.
thread 'main' panicked at '
command did not execute successfully, got: exit status: 1
build script failed, must exit now', /home/fiono/.cargo/registry/src/github.com-1ecc6299db9ec823/cmake-0.1.46/src/lib.rs:974:5
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace`
**Expected behavior**
Build the crate without errors.
Describe the bug A clear and concise description of what the bug is.
To Reproduce Steps to reproduce the behavior:
git clone https://github.com/tikv/grpc-rs
cargo xtask submodule
cargo build
`error:
failed to run custom build command forgrpcio-sys v0.9.1+1.41.0 (/home/fiono/grpc-rs/grpc-sys)
Caused by: process didn't exit successfully:
/home/fiono/grpc-rs/target/debug/build/grpcio-sys-3cd6a616a1088835/build-script-build
(exit status: 101) --- stdout cargo:rerun-if-changed=grpc_wrap.cc cargo:rerun-if-changed=grpc cargo:rerun-if-env-changed=UPDATE_BIND cargo:rerun-if-env-changed=CARGO_CFG_TARGET_OS cargo:rerun-if-env-changed=GRPCIO_SYS_USE_PKG_CONFIG cargo:rerun-if-env-changed=CARGO_CFG_TARGET_OS cargo:rerun-if-env-changed=CARGO_CFG_TARGET_OS cargo:rerun-if-env-changed=CARGO_CFG_TARGET_OS cargo:rerun-if-env-changed=CXX OPT_LEVEL = Some("0") TARGET = Some("x86_64-unknown-linux-gnu") HOST = Some("x86_64-unknown-linux-gnu") CC_x86_64-unknown-linux-gnu = None CC_x86_64_unknown_linux_gnu = None HOST_CC = None CC = None CFLAGS_x86_64-unknown-linux-gnu = None CFLAGS_x86_64_unknown_linux_gnu = None HOST_CFLAGS = None CFLAGS = None CRATE_CC_NO_DEFAULTS = None DEBUG = Some("true") CARGO_CFG_TARGET_FEATURE = Some("fxsr,sse,sse2") CMAKE_TOOLCHAIN_FILE_x86_64-unknown-linux-gnu = None CMAKE_TOOLCHAIN_FILE_x86_64_unknown_linux_gnu = None HOST_CMAKE_TOOLCHAIN_FILE = None CMAKE_TOOLCHAIN_FILE = None CMAKE_GENERATOR_x86_64-unknown-linux-gnu = None CMAKE_GENERATOR_x86_64_unknown_linux_gnu = None HOST_CMAKE_GENERATOR = None CMAKE_GENERATOR = None CMAKE_PREFIX_PATH_x86_64-unknown-linux-gnu = None CMAKE_PREFIX_PATH_x86_64_unknown_linux_gnu = None HOST_CMAKE_PREFIX_PATH = None CMAKE_PREFIX_PATH = None CMAKE_x86_64-unknown-linux-gnu = None CMAKE_x86_64_unknown_linux_gnu = None HOST_CMAKE = None CMAKE = None running: "cmake" "/home/fiono/.cargo/registry/src/github.com-1ecc6299db9ec823/boringssl-src-0.4.0+fc44652/boringssl" "-DCMAKE_INSTALL_PREFIX=/home/fiono/grpc-rs/target/debug/build/grpcio-sys-05d97f1b09b4d25a/out/boringssl-build" "-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_ASM_FLAGS= -ffunction-sections -fdata-sections -fPIC -m64" "-DCMAKE_ASM_COMPILER=/usr/bin/cc" "-DCMAKE_BUILD_TYPE=Debug" -- The C compiler identification is GNU 7.5.0 -- The CXX compiler identification is GNU 7.5.0 -- Check for working C compiler: /usr/bin/cc -- Check for working C compiler: /usr/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- Check for working CXX compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done -- The ASM compiler identification is GNU -- Found assembler: /usr/bin/cc -- Configuring done -- Generating done -- Build files have been written to: /home/fiono/grpc-rs/target/debug/build/grpcio-sys-05d97f1b09b4d25a/out/boringssl-build/build running: "cmake" "--build" "." "--target" "ssl" "--config" "Debug" "--parallel" "4"--- stderr Unknown argument --parallel Unknown argument 4 Usage: cmake --build