Coder Social home page Coder Social logo

Comments (4)

bkchr avatar bkchr commented on June 10, 2024

Try to delete your folder ~/.cargo/registry.

This isn't any Substrate issue, more a general Rust/Cargo issue.

from substrate.

istommao avatar istommao commented on June 10, 2024

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.

istommao avatar istommao commented on June 10, 2024
image

@bkchr

from substrate.

bkchr avatar bkchr commented on June 10, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.