openethereum / parity-ethereum

The fast, light, and robust client for Ethereum-like networks.
Other
6.82k stars 1.69k forks source link

Error While Building From Source on Ubuntu 18.04.4 LTS - error[E0658]: the `#[non_exhaustive]` attribute is an experimental feature (parity-scale-codec-1.2.0) #11736

Closed ymonye closed 4 years ago

ymonye commented 4 years ago

Problem:

Cannot build Open Ethereum from source on Ubuntu 18.04.4 LTS, after following directions from here: https://github.com/openethereum/openethereum

# cargo build --release --features final
   Compiling parity-scale-codec v1.2.0
   Compiling parity-version v3.0.0 (/openethereum/util/version)
   Compiling librocksdb-sys v6.6.4
   Compiling hyper-rustls v0.18.0
   Compiling jsonrpc-http-server v14.0.6
   Compiling rocksdb v0.13.0
   Compiling fetch v0.1.0 (/openethereum/util/fetch)
error[E0658]: the `#[non_exhaustive]` attribute is an experimental feature
   --> /root/.cargo/registry/src/github.com-1ecc6299db9ec823/parity-scale-codec-1.2.0/src/codec.rs:233:1
    |
233 | #[non_exhaustive]
    | ^^^^^^^^^^^^^^^^^
    |
    = note: for more information, see https://github.com/rust-lang/rust/issues/44109

   Compiling price-info v1.12.0 (/openethereum/miner/price-info)
error: aborting due to previous error

For more information about this error, try `rustc --explain E0658`.
error: could not compile `parity-scale-codec`.
warning: build failed, waiting for other jobs to finish...
error: build failed
adria0 commented 4 years ago

Which version of rust are you using? Can you try to update it with rustup update, please?

ymonye commented 4 years ago

Hey @adria0, looks like that was the issue, as upgrading from 1.39.0 to 1.43.1 resolved everything.

Thanks, I've closed this issue.