Questions tagged [build]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
32 views

Error: 'tikv-jemalloc-sys v0.4.3+5.2.1-patched.2' fails to build after upgrading substrate-based chain to polkadot-v0.9.22 on WSL2

After upgrading our chain and its relevant dependencies to polkadot-v0.9.22 I am getting the following build error for 'tikv-jemalloc-sys v0.4.3+5.2.1-patched.2' I have also tried to add parity-util-...
user avatar
0 votes
0 answers
30 views

Error when building the substrate node on mac M1: incorrect value `...` for codegen option `split-debuginfo

While following the installation tutorial available at: https://docs.substrate.io/v3/getting-started/installation/ I ended up with cloning the node-template repository and running the build command as ...
user avatar
3 votes
2 answers
70 views

failed to run custom build command for `librocksdb-sys v6.20.3`

My build was working last week now I can't build rocksdb for some reason. I made sure that I went though the install steps again in case I was missing something. Here's the rest of the out: error: ...
user avatar
0 votes
0 answers
17 views

Unresolved import `sp_core::to_substrate_wasm_fn_return_value` [duplicate]

When building the runtime useing cargo build --release I'm running into this error: error[E0432]: unresolved import `sp_core::to_substrate_wasm_fn_return_value` --> /home/christian/.cargo/git/...
user avatar
5 votes
1 answer
47 views

Building a substrate node template with a global cargo `target` directory

I'm trying to build a substrate-node-template with the following command: cargo build I have my cargo target-dir set inside a global ~/.cargo/config.toml file: [build] target-dir = "/home/foo/....
user avatar
  • 329
4 votes
2 answers
86 views

How to increase performance of building Substrate by "cargo build --release" command

I using Substrate-template-node to build pallet and my laptop have Core-i7 chip, but the time to build is range from 9-12 minutes. So, when I change code and have to wait to build and run. So, my ...
user avatar
2 votes
1 answer
40 views

Failed to get frame-benchmarking as a dependency of package

After pulling from the tutorials/solutions/add-a-pallet, The build process with cargo gives an error. cargo build --release See error Expected vs. Actual Behavior The build process is not complete. ...
user avatar
6 votes
2 answers
46 views

How do I distribute the compiled node binary to peers?

What's the way to distribute the compiled node binary to peers, so that they wouldn't need to build everything from scratch on their virtual machines? I'm asking this because building everything takes ...
user avatar
3 votes
1 answer
41 views

How to add log to pallet's cargo.toml file to use log::info

While doing the tutorial of "Build the Substrate Kitties Chain" there comes a section https://docs.substrate.io/tutorials/v3/kitties/pt1/#write-the-create_kitty-dispatchable In this there it ...
user avatar
4 votes
3 answers
35 views

How to add Serde in pallets\kitties\src\cargo.toml

While doing the tutorial of "Build the Substrate Kitties Chain" there comes a section https://docs.substrate.io/tutorials/v3/kitties/pt1/#uniqueness-custom-types-and-storage-maps In this ...
user avatar