Questions tagged [build]
The build tag has no usage guidance.
35
questions
0
votes
1
answer
39
views
getting error while building substrate blockchain?
I have cloned polkadot-sdk version 1.1.0. When I try to build binary it is throwing error. Can you please tell why I am getting error as I have not changed anything in codebase yet.
rust versions ...
2
votes
1
answer
43
views
Is there a build artefact for the runtime metadata?
You can download the metadata of a running node by calling the state_getMetadata RPC. But if I'm compiling a node, is the metadata built anywhere?
Ideally I'd rather not have to start the node to get ...
0
votes
0
answers
116
views
error[E0277]: the trait bound is not satisfied for Deserialize<'_>` and Serialize<'_>`
Hi I am currently upgrading our runtime to Polkadot 1.0 but when I try to build it get the following errors
error[E0277]: the trait bound `MintingRateInfo: Deserialize<'_>` is not satisfied
...
3
votes
1
answer
37
views
How to avoid double work when building with srtool
I'm integrating srtool into my CI build. As a result of the build, I aim to obtain the client and the runtime. I can compile the runtime with srtool action and run cargo build to get the client. But ...
0
votes
1
answer
66
views
Encountered incremental compilation error
I have encountered following error from time to time while compiling substrate-node-template
error: internal compiler error: encountered incremental compilation error with mir_built(76e5305fbe3bf3e0-...
3
votes
1
answer
144
views
Build fails: protoc failed: bitswap.v1.2.0.proto: No such file or directory
When building a Substrate-project, I receive the following error: protoc failed: bitswap.v1.2.0.proto: No such file or directory
4
votes
0
answers
137
views
How to solve this Failed to compact generated WASM binary.: Error(UnknownOpcode(192))
For one assignment I have run the command cargo build --release so that I can build the pallet. After that I was getting the error
After that according to this- Error Building Substrate contract Node(...
3
votes
1
answer
71
views
error[E0405]: cannot find trait `Signature` in crate `signature`
I am currently upgrading our chain to polkadot-v0.9.38 but when I run the build I get the following error:
error[E0405]: cannot find trait `Signature` in crate `signature`
--> /home/albrayanov/....
0
votes
1
answer
36
views
Build fails when trying to create workspace from selected pallets and primitives
I want to put some pallets and primitive code in a workspace. Here is my code https://github.com/zeitgeistpm/external
However this does not build, neither workspace builds nor individual components.
...
1
vote
1
answer
85
views
What is new way to implement custom data structs (in ink! 4)?
I am trying to upgrade then compile a token contract (employing openbrush) from ink!3 to ink!4.
My understanding is that SpreadAllocate, StorageLayout, etc. have been removed from the ink!4 release.
...
1
vote
6
answers
2k
views
Unable to compile substrate template `error: failed to run custom build command for `librocksdb-sys v0.8.0+7.4.4`
First, I have looked at several previous posts regarding similar build errors but have yet to get the substrate template to build locally successfully. The exact error I encounter is:
error: failed to ...
0
votes
2
answers
206
views
Unable to build Substrate
I'm trying to build Substrate (https://github.com/paritytech/substrate) after cloning it it with git clone. I'm in the root directory. What am I doing wrong?
Steps to reproduce:
First attempt:
rustup ...
0
votes
0
answers
45
views
Error building the parachain template - 2 [duplicate]
I was compiling the runtime by cloning this source, https://github.com/szout/substrate-parachain-template, but at the moment I met this issue.
I tried to solve this issue by referencing these QAs, ...
6
votes
6
answers
9k
views
How do I fix a failed build error [E0635]: unknown feature 'proc_macro_span_shrink'?
Following the instructions at (https://bruno.id/preparation-for-the-substrate-workshop/) until I received a build error, executing the instructions under the 'Error' heading, I received the following ...
3
votes
2
answers
263
views
custom chain upgrage substrate to 0.9.29, report error in uniques: "generic arguments must come before the first constraint"
rustc --version
rustc 1.66.0-nightly (2019147c5 2022-09-19)
% cargo check
Checking sp-core v6.0.0 (https://github.com/paritytech/substrate?branch=polkadot-v0.9.29#...
0
votes
1
answer
31
views
Build error for orml_xtokens
I have recently upgraded our blockchain to use polkadot-v0.9.26 but when I am building the code I get the following
error: cannot find macro `vec` in this scope
--> /home/aibrayanov/.cargo/git/...
0
votes
2
answers
1k
views
Substrate build failure with `--runtime-benchmarks` flag
git checkout 91b97b016618fcc515f55a15b1f008b68e13f5a2
cargo check --features runtime-benchmarks
error: failed to run custom build command for `sc-network-bitswap v0.10.0-dev (/root/code/self/...
0
votes
1
answer
115
views
"cargo +nightly contract build" ERROR: no path specified, and the default `src/main.rs` was not found
I am trying to use the cargo +nightly-2022-08-15 contract build command on a cargo contract new ___, but am experiencing the error below.
Finished dev [unoptimized + debuginfo] target(s) in 0.15s
[2/...
2
votes
1
answer
129
views
error[E0152]: found duplicate lang item when building sp_io
I am getting the following errors when building sp_io for our blockchain runtime.
error[E0152]: found duplicate lang item `panic_impl`
--> /home/aibrayanov/.cargo/git/checkouts/substrate-...
0
votes
0
answers
65
views
Problem running 'cargo build --release ' on substrate-node-template for M1
I was trying to run substrate following the installation process on the docs and I have a mac running with M1.
I followed the instructions to the letter, installing Rosseta 2 and cmake and also I ...
0
votes
2
answers
148
views
Substrate Node Template Build Error, syn::group private
while building substrate node template
versions: polkadot-v0.9.19, polkadot-v0.9.27
get the below error
rustup version
nightly-2022-02-15-x86_64-unknown-linux-gnu (default)
rustc 1.60.0-nightly (...
2
votes
0
answers
302
views
failed to run custom build command for `librocksdb-sys v0.6.1+6.28.2`
When I use the command cargo build --release to build substrate-node-template on version polkadot-v0.9.26, the following error is emitted:
error: failed to run custom build command for `librocksdb-...
10
votes
0
answers
139
views
How `parity-bridges-common` is intended to be used for development?
So there is a repo parity-bridges-common that contains "Useful Bridge Building Tools" and is currently under development.
This repo uses XCMv3 branches of polkadot and substrate (which is ...
1
vote
1
answer
398
views
"Rust WASM toolchain not installed" with v0.9.25
I recently upgraded a fork of the Node Template to v0.9.25 and now I am getting an error about the Wasm toolchain not being installed. Per the official Substrate documentation, the failing build is ...
1
vote
2
answers
460
views
Bulding polkadot (release-v0.9.24) fails while compiling a dependency (prost-build v0.10.4)
I'm trying to build Polkadot as a relay chain for a tutorial but compiling one of its dependencies fails! I may be missing some tools. Could you help?
Platform: MacOS (Intel)
Compiling prost-build v0....
3
votes
3
answers
764
views
Error: 'tikv-jemalloc-sys' fails to build after upgrading substrate-based chain 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-...
1
vote
0
answers
235
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 ...
3
votes
2
answers
919
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: ...
1
vote
0
answers
37
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/...
6
votes
1
answer
181
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/....
4
votes
2
answers
209
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 ...
3
votes
1
answer
307
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.
...
7
votes
2
answers
77
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 ...
5
votes
2
answers
106
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 ...
7
votes
3
answers
70
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 ...