omni / poa-bridge

POA <-> Ethereum bridge for self transfers of POA native token to POA20 (ERC20 representation). Not supported. Use TokenBridge instead
https://github.com/poanetwork/token-bridge
GNU General Public License v3.0
79 stars 38 forks source link

facing issue while make with Rust version 1.29.0 for ethstore v0.2.0 #118

Open sandeep1116 opened 5 years ago

sandeep1116 commented 5 years ago
Compiling ethstore v0.2.0 (http://github.com/paritytech/parity?rev=991f0ca#991f0cac) error[E0034]: multiple applicable items in scope --> /Users/sandeepkumar/.cargo/git/checkouts/parity-dc9825eb65b3adf1/991f0ca/ethstore/src/accounts_dir/memory.rs:33:45 33 Ok(self.accounts.read().values().cloned().flatten().collect()) ^^^^^^^ multiple flatten found

= note: candidate #1 is defined in an impl of the trait std::iter::Iterator for the type std::iter::Cloned<_> = note: candidate #2 is defined in an impl of the trait itertools::Itertools for the type _

error: aborting due to previous error

For more information about this error, try rustc --explain E0034. error: Could not compile ethstore. warning: build failed, waiting for other jobs to finish... error: build failed make: *** [target/release/bridge] Error 101

phansch commented 5 years ago

Seems to have been indirectly caused by the stabilization of std::iter::Iterator::flatten (https://github.com/rust-lang/rust/pull/51511) and by using an outdated version of ethcore in this repo.

It has already been fixed in parity-ethereum here: https://github.com/paritytech/parity-ethereum/pull/8606

ghost commented 5 years ago

@phansch Seems there was no backport for 1.11.11 for this fix 😂

sandeep1116 commented 5 years ago

I have reverted my RUST version to 1.26.00 and it was compiling. Thanks