Grin: Get error while build grin

Created on 16 May 2019  路  5Comments  路  Source: mimblewimble/grin

I try to build the grin node today

i got following error

Compiling grin_servers v1.1.0-beta.2
(/media/extendgrin/servers)
error[E0599]: no method named checked_sub found for type std::time::Instant in the current scope
--> servers/src/grin/dandelion_monitor.rs:51:6
|
51 | .checked_sub(Duration::from_secs(20))
| ^^^^^^^^^^^

error: aborting due to previous error

For more information about this error, try rustc --explain E0599.
error: Could not compile grin_servers.

I am using ubuntu 18.04 Rust version in rustc 1.31.0

Most helpful comment

Some recent changes require rust 1.34.0.
Running rustup update to get the latest stable rust release should resolve this.

All 5 comments

Some recent changes require rust 1.34.0.
Running rustup update to get the latest stable rust release should resolve this.

The app should probably be less cryptic about this and check for the rust version before running into errors.

Agreed with @Giszmo, it would be more friendly to require the right version of Rust at compile time instead of breaking at the first incompatibility. Maybe by using a build script?

https://doc.rust-lang.org/cargo/reference/build-scripts.html

Screenshot from 2019-05-26 15-35-01
Same here on UBuntu 18.04

@antiochp
I also build error with docker,maybe the developer shoud update Dockerfile?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

lehnberg picture lehnberg  路  4Comments

antiochp picture antiochp  路  3Comments

ignopeverell picture ignopeverell  路  4Comments

yeastplume picture yeastplume  路  3Comments

garyyu picture garyyu  路  6Comments