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

Error compiling v1.1.1 on Ubuntu 20.04 #2203

Closed
sandakersmann opened this issue Feb 16, 2021 · 2 comments
Closed

Error compiling v1.1.1 on Ubuntu 20.04 #2203

sandakersmann opened this issue Feb 16, 2021 · 2 comments

Comments

@sandakersmann
Copy link
Contributor

sandakersmann commented Feb 16, 2021

Get this error while compiling:

Compiling validator_client v0.3.5 (/home/ethereum/git/lighthouse/validator_client)
error[E0658]: use of unstable library feature 'bool_to_option'
--> beacon_node/network/src/nat.rs:55:46
|
55 | interface.ip().is_ipv4().then(|| interface.ip())
| ^^^^
|
= note: see issue #64260 rust-lang/rust#64260 for more information

error: aborting due to previous error

For more information about this error, try rustc --explain E0658.
error: could not compile network

To learn more, run the command again with --verbose.
warning: build failed, waiting for other jobs to finish...
error: failed to compile lighthouse v1.1.1 (/home/ethereum/git/lighthouse/lighthouse), intermediate artifacts can be found at /home/ethereum/git/lighthouse/target

Caused by:
build failed
make: *** [Makefile:20: install] Error 101

_________________________________________________________________________________-

An unstable feature was used.

Erroneous code example:

#[repr(u128)] // error: use of unstable library feature 'repr128'
enum Foo {
    Bar(u64),
}

If you're using a stable or a beta version of rustc, you won't be able to use
any unstable features. In order to do so, please switch to a nightly version of
rustc (by using rustup).

If you're using a nightly version of rustc, just add the corresponding feature
to be able to use it:

#![feature(repr128)]

#[repr(u128)] // ok!
enum Foo {
@realbigsean
Copy link
Member

@sandakersmann can you check what version of rust you are compiling with? rustc --version you'd get this error if you haven't updated to 1.50.0, which was recently released

@sandakersmann
Copy link
Contributor Author

@realbigsean Thanks :) Updated Rust and now it works.

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

No branches or pull requests

2 participants