Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

Polkadot does not build with latest rust #1797

Closed
ethernomad opened this issue Oct 9, 2020 · 2 comments
Closed

Polkadot does not build with latest rust #1797

ethernomad opened this issue Oct 9, 2020 · 2 comments

Comments

@ethernomad
Copy link

commit b6ea6dded60f7f0f72e937129c3204b1944dd86c (HEAD -> master, origin/master, origin/HEAD)
Author: Kian Paimani <[email protected]>
Date:   Thu Oct 8 17:10:21 2020 +0200
*** Initializing WASM build environment
info: syncing channel updates for 'nightly-x86_64-unknown-linux-gnu'

  nightly-x86_64-unknown-linux-gnu unchanged - rustc 1.49.0-nightly (3525087ad 2020-10-08)

info: checking for self-updates
info: syncing channel updates for 'stable-x86_64-unknown-linux-gnu'

  stable-x86_64-unknown-linux-gnu unchanged - rustc 1.47.0 (18bf6b4f0 2020-10-07)

info: checking for self-updates
info: component 'rust-std' for target 'wasm32-unknown-unknown' is up to date
/home/jbrown/.cargo/bin/wasm-gc
  error[E0282]: type annotations needed
      --> /home/jbrown/.cargo/git/checkouts/substrate-7e08433d4c370a21/90e8abf/primitives/arithmetic/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)

  error[E0282]: type annotations needed
      --> /home/jbrown/.cargo/git/checkouts/substrate-7e08433d4c370a21/90e8abf/primitives/arithmetic/src/fixed_point.rs:541:9
       |
  541  |                   let accuracy = P::ACCURACY.saturated_into();
       |                       ^^^^^^^^ consider giving `accuracy` a type
  ...
  1604 | / implement_fixed!(
  1605 | |     FixedI128,
  1606 | |     test_fixed_i128,
  1607 | |     i128,
  ...    |
  1611 | |         [-170141183460469231731.687303715884105728, 170141183460469231731.687303715884105727]_",
  1612 | | );
       | |__- in this macro invocation
       |
       = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)

  error[E0282]: type annotations needed
      --> /home/jbrown/.cargo/git/checkouts/substrate-7e08433d4c370a21/90e8abf/primitives/arithmetic/src/fixed_point.rs:541:9
       |
  541  |                   let accuracy = P::ACCURACY.saturated_into();
       |                       ^^^^^^^^ consider giving `accuracy` a type
  ...
  1614 | / implement_fixed!(
  1615 | |     FixedU128,
  1616 | |     test_fixed_u128,
  1617 | |     u128,
  ...    |
  1621 | |         [0.000000000000000000, 340282366920938463463.374607431768211455]_",
  1622 | | );
       | |__- in this macro invocation
       |
       = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)

  error: aborting due to 3 previous errors

  For more information about this error, try `rustc --explain E0282`.
  error: could not compile `sp-arithmetic`
@ethernomad
Copy link
Author

Underlying Substrate issue:
paritytech/substrate#7287

@bkchr
Copy link
Member

bkchr commented Oct 9, 2020

Don't open two issues for the same problem...

@bkchr bkchr closed this as completed Oct 9, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants