Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cargo build fail in osx #423

Closed
yrong opened this issue Oct 18, 2020 · 1 comment
Closed

cargo build fail in osx #423

yrong opened this issue Oct 18, 2020 · 1 comment
Labels
Z-wontfix This will not be worked on

Comments

@yrong
Copy link
Contributor

yrong commented Oct 18, 2020

➜  parity-bridges-common git:(master) cargo --version
cargo 1.49.0-nightly (79b397d72 2020-10-15)
➜  parity-bridges-common git:(master) rustc --version
rustc 1.49.0-nightly (043eca7f0 2020-10-17)
➜  parity-bridges-common git:(master) cargo +nightly build
   Compiling rialto-runtime v0.1.0 (/Users/ronyang/Dev/myrust/parity-bridges-common/bin/rialto/runtime)
   Compiling millau-runtime v0.1.0 (/Users/ronyang/Dev/myrust/parity-bridges-common/bin/millau/runtime)
   Compiling async-executor v1.3.0
   Compiling blocking v1.0.0
   Compiling tokio-codec v0.1.2
   Compiling h2 v0.1.26
   Compiling http-body v0.1.0
   Compiling tokio v0.2.22
   Compiling zeroize_derive v1.0.1
error: failed to run custom build command for `millau-runtime v0.1.0 (/Users/ronyang/Dev/myrust/parity-bridges-common/bin/millau/runtime)`

Caused by:
  process didn't exit successfully: `/Users/ronyang/Dev/myrust/parity-bridges-common/target/debug/build/millau-runtime-7230b5e86000f8f3/build-script-build` (exit code: 1)
  --- stdout
  Executing build command: "/Users/ronyang/.rustup/toolchains/nightly-x86_64-apple-darwin/bin/cargo" "rustc" "--target=wasm32-unknown-unknown" "--manifest-path=/Users/ronyang/Dev/myrust/parity-bridges-common/target/debug/wbuild/millau-runtime/Cargo.toml" "--color=always" "--release"

  --- stderr
      Blocking waiting for file lock on package cache
      Blocking waiting for file lock on package cache
     Compiling wasm-build-runner-impl v1.0.0 (/Users/ronyang/Dev/myrust/parity-bridges-common/target/debug/wbuild-runner/millau-runtime3159355152638062222)
      Finished dev [unoptimized + debuginfo] target(s) in 3.49s
       Running `/Users/ronyang/Dev/myrust/parity-bridges-common/target/debug/wbuild-runner/millau-runtime3159355152638062222/target/x86_64-apple-darwin/debug/wasm-build-runner-impl`
     Compiling sp-arithmetic v2.0.0
     Compiling primitive-types v0.7.2
  error[E0282]: type annotations needed
      --> /Users/ronyang/.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)

  error[E0282]: type annotations needed
      --> /Users/ronyang/.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
  ...
  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
      --> /Users/ronyang/.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
  ...
  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`

  To learn more, run the command again with --verbose.
  warning: build failed, waiting for other jobs to finish...
  error: build failed
warning: build failed, waiting for other jobs to finish...
error: build failed
@tomusdrw
Copy link
Contributor

Please downgrade your nightly, cause the latest one has a regression which prevents it from compiling substrate, see more: paritytech/substrate#7303

@tomusdrw tomusdrw added the Z-wontfix This will not be worked on label Oct 18, 2020
@tomusdrw tomusdrw added this to the Rialto Nice To Have milestone Mar 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Z-wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants