Git Product home page Git Product logo

akropolis-c2fc-srml's People

Contributors

0xbuidlman avatar andor0 avatar apeir99n avatar boozook avatar sergeysova avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

akropolis-c2fc-srml's Issues

Could not compile `libp2p-core`

I'm running into an issue setting up a node locally. Something about
the trait `rand_core::CryptoRng` is not implemented for `rand::rngs::thread::ThreadRng

This is the entire trace log:

error[E0277]: the trait bound `rand::rngs::thread::ThreadRng: rand_core::CryptoRng` is not satisfied
   --> /Users/garethkmensah/.cargo/registry/src/github.com-1ecc6299db9ec823/libp2p-core-0.7.1/src/identity/ed25519.rs:34:44
    |
34  |         Keypair(ed25519::Keypair::generate(&mut rand::thread_rng()))
    |                                            ^^^^^^^^^^^^^^^^^^^^^^^ the trait `rand_core::CryptoRng` is not implemented for `rand::rngs::thread::ThreadRng`
    | 
   ::: /Users/garethkmensah/.cargo/registry/src/github.com-1ecc6299db9ec823/ed25519-dalek-1.0.0-pre.3/src/ed25519.rs:130:12
    |
130 |         R: CryptoRng + RngCore,
    |            --------- required by this bound in `ed25519_dalek::ed25519::Keypair::generate`
    |
help: trait impl with same name found
   --> /Users/garethkmensah/.cargo/registry/src/github.com-1ecc6299db9ec823/rand_core-0.4.2/src/lib.rs:430:1
    |
430 | impl<'a, R: CryptoRng + ?Sized> CryptoRng for &'a mut R {}
    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    = note: Perhaps two different versions of crate `rand_core` are being used?

error[E0277]: the trait bound `rand::rngs::thread::ThreadRng: rand_core::RngCore` is not satisfied
   --> /Users/garethkmensah/.cargo/registry/src/github.com-1ecc6299db9ec823/libp2p-core-0.7.1/src/identity/ed25519.rs:34:44
    |
34  |         Keypair(ed25519::Keypair::generate(&mut rand::thread_rng()))
    |                                            ^^^^^^^^^^^^^^^^^^^^^^^ the trait `rand_core::RngCore` is not implemented for `rand::rngs::thread::ThreadRng`
    | 
   ::: /Users/garethkmensah/.cargo/registry/src/github.com-1ecc6299db9ec823/ed25519-dalek-1.0.0-pre.3/src/ed25519.rs:130:24
    |
130 |         R: CryptoRng + RngCore,
    |                        ------- required by this bound in `ed25519_dalek::ed25519::Keypair::generate`
    |
help: trait impl with same name found
   --> /Users/garethkmensah/.cargo/registry/src/github.com-1ecc6299db9ec823/rand_core-0.4.2/src/lib.rs:373:1
    |
373 | / impl<'a, R: RngCore + ?Sized> RngCore for &'a mut R {
374 | |     #[inline(always)]
375 | |     fn next_u32(&mut self) -> u32 {
376 | |         (**self).next_u32()
...   |
392 | |     }
393 | | }
    | |_^
    = note: Perhaps two different versions of crate `rand_core` are being used?

error[E0277]: the trait bound `rand::rngs::thread::ThreadRng: rand_core::CryptoRng` is not satisfied
   --> /Users/garethkmensah/.cargo/registry/src/github.com-1ecc6299db9ec823/libp2p-core-0.7.1/src/identity/ed25519.rs:141:48
    |
141 |         SecretKey(ed25519::SecretKey::generate(&mut rand::thread_rng()))
    |                                                ^^^^^^^^^^^^^^^^^^^^^^^ the trait `rand_core::CryptoRng` is not implemented for `rand::rngs::thread::ThreadRng`
    | 
   ::: /Users/garethkmensah/.cargo/registry/src/github.com-1ecc6299db9ec823/ed25519-dalek-1.0.0-pre.3/src/secret.rs:172:12
    |
172 |         T: CryptoRng + RngCore,
    |            --------- required by this bound in `ed25519_dalek::secret::SecretKey::generate`
    |
help: trait impl with same name found
   --> /Users/garethkmensah/.cargo/registry/src/github.com-1ecc6299db9ec823/rand_core-0.4.2/src/lib.rs:430:1
    |
430 | impl<'a, R: CryptoRng + ?Sized> CryptoRng for &'a mut R {}
    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    = note: Perhaps two different versions of crate `rand_core` are being used?

error[E0277]: the trait bound `rand::rngs::thread::ThreadRng: rand_core::RngCore` is not satisfied
   --> /Users/garethkmensah/.cargo/registry/src/github.com-1ecc6299db9ec823/libp2p-core-0.7.1/src/identity/ed25519.rs:141:48
    |
141 |         SecretKey(ed25519::SecretKey::generate(&mut rand::thread_rng()))
    |                                                ^^^^^^^^^^^^^^^^^^^^^^^ the trait `rand_core::RngCore` is not implemented for `rand::rngs::thread::ThreadRng`
    | 
   ::: /Users/garethkmensah/.cargo/registry/src/github.com-1ecc6299db9ec823/ed25519-dalek-1.0.0-pre.3/src/secret.rs:172:24
    |
172 |         T: CryptoRng + RngCore,
    |                        ------- required by this bound in `ed25519_dalek::secret::SecretKey::generate`
    |
help: trait impl with same name found
   --> /Users/garethkmensah/.cargo/registry/src/github.com-1ecc6299db9ec823/rand_core-0.4.2/src/lib.rs:373:1
    |
373 | / impl<'a, R: RngCore + ?Sized> RngCore for &'a mut R {
374 | |     #[inline(always)]
375 | |     fn next_u32(&mut self) -> u32 {
376 | |         (**self).next_u32()
...   |
392 | |     }
393 | | }
    | |_^
    = note: Perhaps two different versions of crate `rand_core` are being used?

   Compiling parity-crypto v0.3.1
error: aborting due to 4 previous errors

For more information about this error, try `rustc --explain E0277`.
error: could not compile `libp2p-core`.
warning: build failed, waiting for other jobs to finish...
error: failed to compile `akropolis v0.8.2 (/Users/garethkmensah/Desktop/akropolis/node)`, intermediate artifacts can be found at `/Users/garethkmensah/Desktop/akropolis/node/target`

Caused by:
  build failed

[Process completed]

Compiling hex-literal v0.1.4 = error: proc-macro derive panicked (#3134)

~/akropolis/node$ ./scripts/build.sh
Building webassembly binary in runtime/wasm...
   Compiling proc-macro2 v0.4.30
   Compiling unicode-xid v0.1.0
   Compiling syn v0.15.35
   Compiling serde v1.0.92
   Compiling arrayvec v0.4.10
   Compiling semver-parser v0.7.0
   Compiling byteorder v1.3.2
   Compiling nodrop v0.1.13
   Compiling crunchy v0.2.2
   Compiling static_assertions v0.2.5
   Compiling rustc-hex v2.0.1
   Compiling autocfg v0.1.4
   Compiling hash-db v0.12.3
   Compiling constant_time_eq v0.1.3
   Compiling proc-macro-hack-impl v0.4.1
   Compiling integer-sqrt v0.1.2
   Compiling bitmask v0.5.0
   Compiling semver v0.9.0
   Compiling fixed-hash v0.3.2
   Compiling proc-macro-hack v0.4.1
   Compiling num-traits v0.2.8
   Compiling hex-literal-impl v0.1.2
   Compiling rustc_version v0.2.3
   Compiling blake2-rfc v0.2.18
   Compiling uint v0.7.1
   Compiling hash256-std-hasher v0.12.3
   Compiling hex-literal v0.1.4
error: proc-macro derive panicked
  --> /home/akropolis/.cargo/registry/src/github.com-1ecc6299db9ec823/hex-literal-0.1.4/src/lib.rs:38:1
   |
38 | / proc_macro_expr_decl! {
39 | |     /// Macro for converting hex string to byte array at compile time
40 | |     hex! => hex_impl
41 | | }
   | |_^
   |
   = help: message: assertion failed: `(left == right)`
             left: `Some("#[allow(unused,")`,
            right: `Some("#[allow(unused")`
   = note: this warning originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)

error: aborting due to previous error

error: Could not compile `hex-literal`.
warning: build failed, waiting for other jobs to finish...
error: build failed

the solution
paritytech/substrate#3141

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.