Git Product home page Git Product logo

Comments (10)

wheresaddie avatar wheresaddie commented on July 27, 2024 10

try:

rustup install nightly-2020-10-06
rustup target add wasm32-unknown-unknown --toolchain nightly-2020-10-06
cargo +nightly-2020-10-06 build --release

from substrate-node-template.

stetsonline avatar stetsonline commented on July 27, 2024 3

Yes! That worked. Thanks so much for the quick response.

from substrate-node-template.

Swader avatar Swader commented on July 27, 2024 2

At this point it might be useful to include a "downgrade.sh" script in script for easy access, and a wrapper for cargo build --release which on detected failure recommends trying that script and trying again.

from substrate-node-template.

danforbes avatar danforbes commented on July 27, 2024 1

Glad to hear it! Hope you visit us in our technical chat and tell us all about what you're building 🤓 https://app.element.io/#/room/!HzySYSaIhtyWrwiwEV:matrix.org

from substrate-node-template.

danforbes avatar danforbes commented on July 27, 2024 1

Hopefully the inclusion of the rust-toolchain file is a proper, long-term fix https://github.com/substrate-developer-hub/substrate-node-template/blob/master/rust-toolchain

from substrate-node-template.

danforbes avatar danforbes commented on July 27, 2024

Can you please try this and close this Issue if it fixes your problem? #90 (comment)

from substrate-node-template.

wheresaddie avatar wheresaddie commented on July 27, 2024

oops @danforbes and I just replied in parallel ..

please let us know if this fixes the issue

from substrate-node-template.

wheresaddie avatar wheresaddie commented on July 27, 2024

Unfortunately both ink! 2.1 + Cargo contract 0.6.2 aren't compatible with Substrate v2.0.0 atm,
once we update all to ink! 3.0 the issue should go away (in theory)..

from substrate-node-template.

tansaku avatar tansaku commented on July 27, 2024

I'm encountering a similar error for OSX 11.1 and rustc 1.49:


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

   Compiling zstd v0.5.3+zstd.1.4.5
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
make: *** [build] Error 101

I tried #94 (comment) but it didn't help :-(

from substrate-node-template.

tansaku avatar tansaku commented on July 27, 2024

ah fixed with https://stackoverflow.com/a/65756888/316729

from substrate-node-template.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.