substrate-node-template: first time install failed, error[E0282]: type annotations needed
Description
I did manage to install the node and run it together with the web front-end maybe 5 days ago. But when I started all over again I can’t get it compiled. I did to reinstall rust and de-brew dependency modules but all in vain. Also tried with rustc 1.46, restarted mac, reinstalled cmake, openssl… Attached is the log with the whole installation procedure. subrtrate-install.log
Steps to Reproduce
following step by step Create Your First Substrate Chain
Environment
- Operating system: MacOS, Kernel Version: Darwin 18.2.0
- Template version/tag: v2.0.0
- Rust version (run
rustup show):
Default host: x86_64-apple-darwin
rustup home: /Users/mario/.rustup
installed toolchains
stable-x86_64-apple-darwin (default)
nightly-x86_64-apple-darwin
active toolchain
stable-x86_64-apple-darwin (default)
rustc 1.47.0 (18bf6b4f0 2020-10-07)
Logs, Errors or Screenshots
...
Compiling frame-support-procedural v2.0.0
Compiling libp2p-core v0.22.1
error: failed to run custom build command for `node-template-runtime v2.0.0 (/Users/mario/projects/substrate-node-template/runtime)`
Caused by:
process didn't exit successfully: `/Users/mario/projects/substrate-node-template/target/release/build/node-template-runtime-cae9ad6029c9f681/build-script-build` (exit code: 1)
--- stdout
Executing build command: "rustup" "run" "nightly" "cargo" "rustc" "--target=wasm32-unknown-unknown" "--manifest-path=/Users/mario/projects/substrate-node-template/target/release/wbuild/node-template-runtime/Cargo.toml" "--color=always" "--release"
--- stderr
Updating crates.io index
Downloading crates ...
Downloaded getrandom v0.1.15
Downloaded substrate-wasm-builder v2.0.0
This error comes after random file and doesn’t look connected with libp2p-core v0.22.1 in this case. After continuing with compile it always breaks with following error:
...
Compiling sp-wasm-interface v2.0.0
Compiling sp-arithmetic v2.0.0
Compiling finality-grandpa v0.12.3
error[E0282]: type annotations needed
--> /Users/mario/.cargo/registry/src/github.com-1ecc6299db9ec823/sp-arithmetic-2.0.0/src/fixed_point.rs:541:9
|
541 | let accuracy = P::ACCURACY.saturated_into();
| ^^^^^^^^ consider giving `accuracy` a type
...
1595 | / implement_fixed!(
1596 | | FixedI64,
1597 | | test_fixed_i64,
1598 | | i64,
... |
1601 | | "_Fixed Point 64 bits signed, range = [-9223372036.854775808, 9223372036.854775807]_",
1602 | | );
| |__- in this macro invocation
|
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
Additional Information
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Reactions: 5
- Comments: 18 (6 by maintainers)
Commits related to this issue
- Merge pull request #90 from samchuk-vlad/vs-add-permissions Make possible to set permissions when creating a space — committed to F3Joule/dappforce-subsocial-node by subsocialdev 3 years ago
Try this:
Thanks, @kaichaosun
After installing nightly-2020-10-06, I did
$ rustup default nightly-2020-10-05-x86_64-pc-windows-msvcand built it again.
built it successfully for windows
It would be good to update the tutorials for this problem… as many are running into this following instructions on https://substrate.dev/docs/en/tutorials/create-your-first-substrate-chain/
@playground we have a fixed frontend template, you can use the template from the master branch {clone it fresh, or checkout this branch} that just got the patch, or do a very simple manually update as described in this issue