Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get error while build grin #2830

Closed
alden-alvins opened this issue May 16, 2019 · 5 comments · Fixed by #2858
Closed

Get error while build grin #2830

alden-alvins opened this issue May 16, 2019 · 5 comments · Fixed by #2858

Comments

@alden-alvins
Copy link

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

@antiochp
Copy link
Member

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

@Giszmo
Copy link

Giszmo commented May 24, 2019

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

@0xmichalis
Copy link
Contributor

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

@UbuntuEvangelist
Copy link

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

@inix
Copy link

inix commented May 28, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants