graph-node
graph-node copied to clipboard
Failed to run custom build command for `prost-build v0.10.1`
BUG
[cargo run] or [cargo check] fails during prost-build v.0.10.1 compilation. That library is required to build complete graph-node project.
Operating System: Windows Server 2019
- install rust: https://www.rust-lang.org/tools/install
- install postgres: https://www.postgresql.org/download/
- install ipfs: https://docs.ipfs.io/install/
- clone https://github.com/graphprotocol/graph-node
- go to graph-node directory
- execute cargo check or cargo build
All libs are compiled successfully compiled except: prost-build v0.10.1
Error:
error: failed to run custom build command for prost-build v0.10.1
CMake Warning: Manually-specified variables were not used by the project:
CMAKE_ASM_FLAGS
CMAKE_ASM_FLAGS_DEBUG
build script failed, must exit now', C:\Users\username.cargo\registry\src\github.com-1ecc6299db9ec823\cmake-0.1.46\src\lib.rs:974:5
stack backtrace:
0: std::panicking::begin_panic_handler
at /rustc/fe5b13d681f25ee6474be29d748c65adcd91f69e/library\std\src\panicking.rs:584
1: core::panicking::panic_fmt
at /rustc/fe5b13d681f25ee6474be29d748c65adcd91f69e/library\core\src\panicking.rs:143
2: cmake::find_exe::{{closure}}
3: cmake::Config::maybe_clear::{{closure}}
4: cmake::Config::build
5: build_script_build::compile
6: core::ops::function::FnOnce::call_once
7: core::option::Option<T>::or_else
8: build_script_build::compile
9: build_script_build::compile
10: core::ops::function::FnOnce::call_once
note: Some details are omitted, run with RUST_BACKTRACE=full for a verbose backtrace.
- I'm using Cmake from VS 2019 Build Tools Installer, which is included as path of the System Environment Variable: Path:
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin
cmake --version cmake version 3.20.21032501-MSVC_2
What is the expected behavior?
Library prost-build v0.10.1 should compile and so the whole project.