Comments (4)
Try to delete your folder ~/.cargo/registry
.
This isn't any Substrate issue, more a general Rust/Cargo issue.
from substrate.
The following warnings were emitted during compilation:
warning: src/helpers.c:1:10: fatal error: 'setjmp.h' file not found
warning: #include <setjmp.h>
warning: ^~~~~~~~~~
warning: 1 error generated.
error: failed to run custom build command for wasmtime-runtime v8.0.1
Caused by:
process didn't exit successfully: /home/mao/WorkSpace/Substrate-HotStuff/target/debug/wbuild/node-template-runtime/target/release/build/wasmtime-runtime-b6ea060f875367a3/build-script-build
(exit status: 1)
--- stdout
cargo:rerun-if-changed=src/helpers.c
TARGET = Some("wasm32-unknown-unknown")
OPT_LEVEL = Some("3")
HOST = Some("x86_64-unknown-linux-gnu")
cargo:rerun-if-env-changed=CC_wasm32-unknown-unknown
CC_wasm32-unknown-unknown = None
cargo:rerun-if-env-changed=CC_wasm32_unknown_unknown
CC_wasm32_unknown_unknown = None
cargo:rerun-if-env-changed=TARGET_CC
TARGET_CC = None
cargo:rerun-if-env-changed=CC
CC = None
cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
CRATE_CC_NO_DEFAULTS = None
DEBUG = Some("false")
cargo:rerun-if-env-changed=CFLAGS_wasm32-unknown-unknown
CFLAGS_wasm32-unknown-unknown = None
cargo:rerun-if-env-changed=CFLAGS_wasm32_unknown_unknown
CFLAGS_wasm32_unknown_unknown = None
cargo:rerun-if-env-changed=TARGET_CFLAGS
TARGET_CFLAGS = None
cargo:rerun-if-env-changed=CFLAGS
CFLAGS = None
running: "clang" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "--target=wasm32-unknown-unknown" "-Wall" "-Wextra" "-DCFG_TARGET_OS_unknown" "-DCFG_TARGET_ARCH_wasm32" "-o" "/home/mao/WorkSpace/Substrate-HotStuff/target/debug/wbuild/node-template-runtime/target/wasm32-unknown-unknown/release/build/wasmtime-runtime-d047019335ae77d2/out/src/helpers.o" "-c" "src/helpers.c"
cargo:warning=src/helpers.c:1:10: fatal error: 'setjmp.h' file not found
cargo:warning=#include <setjmp.h>
cargo:warning= ^~~~~~~~~~
cargo:warning=1 error generated.
exit status: 1
--- stderr
error occurred: Command "clang" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "--target=wasm32-unknown-unknown" "-Wall" "-Wextra" "-DCFG_TARGET_OS_unknown" "-DCFG_TARGET_ARCH_wasm32" "-o" "/home/mao/WorkSpace/Substrate-HotStuff/target/debug/wbuild/node-template-runtime/target/wasm32-unknown-unknown/release/build/wasmtime-runtime-d047019335ae77d2/out/src/helpers.o" "-c" "src/helpers.c" with args "clang" did not execute successfully (status code exit status: 1).
warning: build failed, waiting for other jobs to finish...
error[E0583]: file not found for module sys
--> /home/mao/.cargo/registry/src/index.crates.io-6f17d22bba15001f/errno-0.3.2/src/lib.rs:26:1
|
26 | mod sys;
| ^^^^^^^^
|
= help: to create the module sys
, create file "/home/mao/.cargo/registry/src/index.crates.io-6f17d22bba15001f/errno-0.3.2/src/sys.rs" or "/home/mao/.cargo/registry/src/index.crates.io-6f17d22bba15001f/errno-0.3.2/src/sys/mod.rs"
error[E0425]: cannot find function with_description
in module sys
--> /home/mao/.cargo/registry/src/index.crates.io-6f17d22bba15001f/errno-0.3.2/src/lib.rs:47:14
|
47 | sys::with_description(*self, |desc| {
| ^^^^^^^^^^^^^^^^ not found in sys
error[E0425]: cannot find function with_description
in module sys
--> /home/mao/.cargo/registry/src/index.crates.io-6f17d22bba15001f/errno-0.3.2/src/lib.rs:58:14
|
58 | sys::with_description(*self, |desc| match desc {
| ^^^^^^^^^^^^^^^^ not found in sys
error[E0425]: cannot find value STRERROR_NAME
in module sys
--> /home/mao/.cargo/registry/src/index.crates.io-6f17d22bba15001f/errno-0.3.2/src/lib.rs:64:22
|
64 | sys::STRERROR_NAME,
| ^^^^^^^^^^^^^ not found in sys
error[E0425]: cannot find function errno
in module sys
--> /home/mao/.cargo/registry/src/index.crates.io-6f17d22bba15001f/errno-0.3.2/src/lib.rs:95:10
|
95 | sys::errno()
| ^^^^^ not found in sys
error[E0425]: cannot find function set_errno
in module sys
--> /home/mao/.cargo/registry/src/index.crates.io-6f17d22bba15001f/errno-0.3.2/src/lib.rs:100:10
|
100 | sys::set_errno(err)
| ^^^^^^^^^ not found in sys
Some errors have detailed explanations: E0425, E0583.
For more information about an error, try rustc --explain E0425
.
error: could not compile errno
(lib) due to 6 previous errors
from substrate.
from substrate.
As you see it is wasmtime-runtime that fails to compile and nothing in Substrate. Please google for your error.
from substrate.
Related Issues (20)
- [RPC-Spec-V2] Limit ongoing operations
- Incorrect processing of updates of the storage collection that stores empty tuples HOT 1
- branchmark storage: Add flag to only read a fraction of all keys HOT 1
- > > Add new Treasurenet blockchain network HOT 1
- Block request timeout not working HOT 2
- Improving ChildBounty ID Allocation: An 8-Digit Solution Proposal HOT 13
- Document safety constraints of `pallet-scheduler` HOT 2
- Expose block hash in pallet-contracts HOT 4
- Feature: Add remark_call extrinsic to pallet-utilities HOT 2
- rpc: the arguments for api method are incorrect HOT 7
- [RPC-Spec-V2] Limit `chainHead_unstable_follow` subscriptions
- Bug Substrate tutorial --rpc-port <X> HOT 6
- Pruning doesn't have expected behavior HOT 13
- error: could not compile `sp-runtime` (lib) Cargo build error HOT 3
- Staking Proxy can't register account as validator HOT 1
- asset-conversion pallet: persist a pool account id HOT 4
- Contracts migration v9 to v10 is failling HOT 6
- docker: Substrate Docker image error building binaries
- Avoid including bin/node/cli/src/cli.rs in build.rs
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from substrate.