WasmEdge: Build wasmedge-sys error from scratch
Description
I added the latest wasmedge-sys to Cargo.toml, and cargo build will get error:
coder@pearl:~/demo$ cargo build
Blocking waiting for file lock on build directory
Compiling leb128 v0.2.5
Compiling unicode-width v0.1.9
Compiling ppv-lite86 v0.2.16
Compiling libc v0.2.126
Compiling memchr v2.5.0
Compiling wasm-encoder v0.13.0
Compiling thiserror v1.0.31
Compiling wasmedge-sys v0.7.0
Compiling getrandom v0.2.7
Compiling rand_core v0.6.3
Compiling wast v42.0.0
Compiling rand_chacha v0.3.1
Compiling rand v0.8.5
The following warnings were emitted during compilation:
warning: [wasmedge-sys] not_standalone
warning: [wasmedge-sys] TARGET_OS: linux
warning: [wasmedge-sys] git init output: Output { status: ExitStatus(unix_wait_status(0)), stdout: "Reinitialized existing Git repository in /home/coder/demo/target/debug/build/wasmedge-sys-37a25dfbb3310fc8/out/wasmedge/.git/\n", stderr: "" }
warning: [wasmedge-sys] git remote add output: Output { status: ExitStatus(unix_wait_status(32768)), stdout: "", stderr: "fatal: remote origin already exists.\n" }
warning: [wasmedge-sys] git fetch output: Output { status: ExitStatus(unix_wait_status(0)), stdout: "", stderr: "From https://github.com/WasmEdge/WasmEdge\n * branch HEAD -> FETCH_HEAD\n" }
warning: [wasmedge-sys] git checkout output: Output { status: ExitStatus(unix_wait_status(0)), stdout: "", stderr: "HEAD is now at 0eca4b9f [Misc] Add the necessary components of WasmEdge static library.\n" }
error: failed to run custom build command for `wasmedge-sys v0.7.0`
Caused by:
process didn't exit successfully: `/home/coder/demo/target/debug/build/wasmedge-sys-8747e4711719c10f/build-script-build` (exit status: 101)
Then I follow the link to build from scratch
https://wasmedge.org/book/en/extend/build.html
Did I miss something?
Current State

Expected
Building will be Ok
Environment
Linux pearl 5.13.0-1029-azure #34~20.04.1-Ubuntu SMP Thu Jun 9 12:37:07 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 20 (13 by maintainers)
solved it, but it’s not required dependency in the document.