While trying to build a simple dapp on ICP during deployment, an error like this pops up, making me unable to deploy the canister locally:
Error: Command failed: cd .azle/stefan_backend && /home/stefanbinoj/.config/azle/rust/1.73.0/bin/cargo build --target wasm32-wasi --manifest-path canister/Cargo.toml --release
error: failed to run custom build command for quickjs-wasm-sys v1.0.0
Caused by: process didn’t exit successfully: /home/stefanbinoj/.config/azle/rust/target/release/build/quickjs-wasm-sys-84209e45aaffbb72/build-script-build
(exit status: 1)
— stderr /home/stefanbinoj/.config/azle/rust/1.73.0/git/checkouts/javy-9eee5663e993cb2d/fdf12ce/crates/quickjs-wasm-sys/wasi-sdk/share/wasi-sysroot/include/__struct_iovec.h:5:10: fatal error: ‘stddef.h’ file not found Error: clang diagnosed error: /home/stefanbinoj/.config/azle/rust/1.73.0/git/checkouts/javy-9eee5663e993cb2d/fdf12ce/crates/quickjs-wasm-sys/wasi-sdk/share/wasi-sysroot/include/__struct_iovec.h:5:10: fatal error: ‘stddef.h’ file not found
Error: Failed while trying to deploy canisters. Caused by: Failed to build all canisters. Caused by: Failed while trying to build all canisters. Caused by: The build step failed for canister ‘c5kvi-uuaaa-aaaaa-qaaia-cai’ (stefan_backend) Caused by: Failed to build custom canister stefan_backend. Caused by: Failed to run npx azle stefan_backend. Caused by: The custom tool failed.