Questions tagged [build]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
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 ...
Karanvir Singh's user avatar
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 ...
Kyle's user avatar
  • 299
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 ...
chexware's user avatar
  • 325
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 ...
Maksim Ramanenkau's user avatar
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-...
metricaez's user avatar
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
sea212's user avatar
  • 539
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(...
Nakul Agrawal's user avatar
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/....
chexware's user avatar
  • 325
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. ...
llvm_ninja's user avatar
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. ...
blairmunroakusa's user avatar
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 ...
Brandon's user avatar
  • 13
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 ...
amab8901's user avatar
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, ...
TinyDev's user avatar
  • 57
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 ...
Brian's user avatar
  • 63
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#...
Smith's user avatar
  • 131
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/...
chexware's user avatar
  • 325
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/...
AurevoirXavier's user avatar
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/...
kenta_desu's user avatar
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-...
chexware's user avatar
  • 325
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 ...
Mayra Munguia's user avatar
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 (...
rusty loaki's user avatar
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-...
yo vo's user avatar
  • 21
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 ...
bragov4ik's user avatar
  • 121
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 ...
Dan Forbes's user avatar
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....
stano's user avatar
  • 238
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-...
chexware's user avatar
  • 325
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 ...
Lucian Enache's user avatar
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: ...
Christian Pavilonis's user avatar
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/...
Christian Pavilonis's user avatar
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/....
Rtsne42's user avatar
  • 379
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 ...
Rong Nguyen's user avatar
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. ...
Mehran Mazhar's user avatar
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 ...
Ilya Tegmark's user avatar
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 ...
Ajit's user avatar
  • 775
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 ...
Ajit's user avatar
  • 775