Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
This repository was 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

@anglebala

Description

@anglebala

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 

Metadata

Metadata

Assignees

No one assigned

    Labels

    J2-unconfirmedIssue might be valid, but it’s not yet known.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions