Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

failed to run custom build command for wabt-sys v0.7.2 #6945

Closed
anglebala opened this issue Aug 24, 2020 · 3 comments · Fixed by #7042
Closed

failed to run custom build command for wabt-sys v0.7.2 #6945

anglebala opened this issue Aug 24, 2020 · 3 comments · Fixed by #7042
Labels
J2-unconfirmed Issue might be valid, but it’s not yet known.

Comments

@anglebala
Copy link

when run cargo build --release, error occur:

error: failed to run custom build command for `wabt-sys v0.7.2`

Caused by:
  process didn't exit successfully: `/home/wjy/桌面/substrate-2.0.0-rc6/target/release/build/wabt-sys-289be05fb54f66e4/build-script-build` (exit code: 101)
--- stdout
cargo:rerun-if-env-changed=WABT_CXXSTDLIB
cargo:rerun-if-env-changed=CXXSTDLIB
running: "cmake" "/home/wjy/.cargo/registry/src/crates.rustcc.com-a21e0f92747beca3/wabt-sys-0.7.2/wabt" "-DBUILD_TESTS=OFF" "-DBUILD_TOOLS=OFF" "-DCMAKE_INSTALL_PREFIX=/home/wjy/\xe6\xa1\x8c\xe9\x9d\xa2/substrate-2.0.0-rc6/target/release/build/wabt-sys-2248b7ea9d81edf8/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_ASM_FLAGS= -ffunction-sections -fdata-sections -fPIC -m64" "-DCMAKE_ASM_COMPILER=/usr/bin/cc" "-DCMAKE_BUILD_TYPE=Release"
-- Configuring done
-- Generating done
-- Build files have been written to: /home/wjy/桌面/substrate-2.0.0-rc6/target/release/build/wabt-sys-2248b7ea9d81edf8/out/build
running: "cmake" "--build" "." "--config" "Release" "--"
[  1%] Building CXX object CMakeFiles/wabt.dir/src/option-parser.cc.o
CMakeFiles/wabt.dir/build.make:686: recipe for target 'CMakeFiles/wabt.dir/src/option-parser.cc.o' failed
CMakeFiles/Makefile2:136: recipe for target 'CMakeFiles/wabt.dir/all' failed
Makefile:83: recipe for target 'all' failed

--- stderr
/home/wjy/.cargo/registry/src/crates.rustcc.com-a21e0f92747beca3/wabt-sys-0.7.2/wabt/src/option-parser.cc: In lambda function:
/home/wjy/.cargo/registry/src/crates.rustcc.com-a21e0f92747beca3/wabt-sys-0.7.2/wabt/src/option-parser.cc:60:20: error: ‘CMAKE_PROJECT_VERSION’ was not declared in this scope
     printf("%s\n", CMAKE_PROJECT_VERSION);
                    ^~~~~~~~~~~~~~~~~~~~~
make[2]: *** [CMakeFiles/wabt.dir/src/option-parser.cc.o] Error 1
make[1]: *** [CMakeFiles/wabt.dir/all] Error 2
make: *** [all] Error 2
thread 'main' panicked at '
command did not execute successfully, got: exit code: 2

build script failed, must exit now', /home/wjy/.cargo/registry/src/crates.rustcc.com-a21e0f92747beca3/cmake-0.1.44/src/lib.rs:885:5
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

warning: build failed, waiting for other jobs to finish...
^C  Building [====================================>                  ] 664/970: rustls, bindgen, js-sys 
@github-actions github-actions bot added the J2-unconfirmed Issue might be valid, but it’s not yet known. label Aug 24, 2020
@bkchr
Copy link
Member

bkchr commented Aug 24, 2020

Related: #6928

CC @pepyakin

@pepyakin
Copy link
Contributor

As one of mitigations upgrading CMake should help.

@miketang84
Copy link

Updated to CMake 3.18.2, compilation go ahead now.

This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
J2-unconfirmed Issue might be valid, but it’s not yet known.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants