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

Failed install - compiling clap v2.33.4 error[E0658] #26

Open
pflugercar opened this issue Feb 1, 2022 · 1 comment
Open

Failed install - compiling clap v2.33.4 error[E0658] #26

pflugercar opened this issue Feb 1, 2022 · 1 comment

Comments

@pflugercar
Copy link

I have a fresh install of Debian 10 on a Linode server. I ran the install with:
sudo cargo install wireguard-vanity-address

It compiles several packages until package 57/69, clap v2.33.4.

Compiling clap v2.33.4
error[E0658]: if is not allowed in a const fn
--> /root/.cargo/registry/src/github.com-1ecc6299db9ec823/clap-2.33.4/src/app/settings.rs:7:1
|
7 | / bitflags! {
8 | | struct Flags: u64 {
9 | | const SC_NEGATE_REQS = 1;
10 | | const SC_REQUIRED = 1 << 1;
... |
51 | | }
52 | | }
| |_^
|
= note: for more information, see rust-lang/rust#49146
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)

error[E0658]: if is not allowed in a const fn
--> /root/.cargo/registry/src/github.com-1ecc6299db9ec823/clap-2.33.4/src/args/settings.rs:6:1
|
6 | / bitflags! {
7 | | struct Flags: u32 {
8 | | const REQUIRED = 1;
9 | | const MULTIPLE = 1 << 1;
... |
28 | | }
29 | | }
| |_^
|
= note: for more information, see rust-lang/rust#49146
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)

error: aborting due to 2 previous errors

For more information about this error, try rustc --explain E0658.
error: failed to compile wireguard-vanity-address v0.4.0, intermediate artifacts can be found at /tmp/cargo-installFBAhlU

Caused by:
could not compile clap.


Below is the tail end of output with cargo --verbose install wireguard-vanity-address

Compiling clap v2.33.4
Running rustc --crate-name clap /root/.cargo/registry/src/github.com-1ecc6299db9ec823/clap-2.33.4/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 --cfg 'feature="ansi_term"' --cfg 'feature="atty"' --cfg 'feature="color"' --cfg 'feature="default"' --cfg 'feature="strsim"' --cfg 'feature="suggestions"' --cfg 'feature="vec_map"' -C metadata=9b822f22bb354117 -C extra-filename=-9b822f22bb354117 --out-dir /tmp/cargo-installlsgmPX/release/deps -L dependency=/tmp/cargo-installlsgmPX/release/deps --extern ansi_term=/tmp/cargo-installlsgmPX/release/deps/libansi_term-eadfc56f31755089.rmeta --extern atty=/tmp/cargo-installlsgmPX/release/deps/libatty-c0963bed9091c183.rmeta --extern bitflags=/tmp/cargo-installlsgmPX/release/deps/libbitflags-8094798d4dc009ac.rmeta --extern strsim=/tmp/cargo-installlsgmPX/release/deps/libstrsim-96e860a76a9cf922.rmeta --extern textwrap=/tmp/cargo-installlsgmPX/release/deps/libtextwrap-bcf2a3b2c5524d26.rmeta --extern unicode_width=/tmp/cargo-installlsgmPX/release/deps/libunicode_width-555477aac4588305.rmeta --extern vec_map=/tmp/cargo-installlsgmPX/release/deps/libvec_map-a03ca84b9540c7a2.rmeta --cap-lints allow
error[E0658]: if is not allowed in a const fn
--> /root/.cargo/registry/src/github.com-1ecc6299db9ec823/clap-2.33.4/src/app/settings.rs:7:1
|
7 | / bitflags! {
8 | | struct Flags: u64 {
9 | | const SC_NEGATE_REQS = 1;
10 | | const SC_REQUIRED = 1 << 1;
... |
51 | | }
52 | | }
| |_^
|
= note: for more information, see rust-lang/rust#49146
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)

error[E0658]: if is not allowed in a const fn
--> /root/.cargo/registry/src/github.com-1ecc6299db9ec823/clap-2.33.4/src/args/settings.rs:6:1
|
6 | / bitflags! {
7 | | struct Flags: u32 {
8 | | const REQUIRED = 1;
9 | | const MULTIPLE = 1 << 1;
... |
28 | | }
29 | | }
| |_^
|
= note: for more information, see rust-lang/rust#49146
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)

error: aborting due to 2 previous errors

For more information about this error, try rustc --explain E0658.
error: failed to compile wireguard-vanity-address v0.4.0, intermediate artifacts can be found at /tmp/cargo-installlsgmPX

Caused by:
could not compile clap.

Caused by:
process didn't exit successfully: rustc --crate-name clap /root/.cargo/registry/src/github.com-1ecc6299db9ec823/clap-2.33.4/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 --cfg 'feature="ansi_term"' --cfg 'feature="atty"' --cfg 'feature="color"' --cfg 'feature="default"' --cfg 'feature="strsim"' --cfg 'feature="suggestions"' --cfg 'feature="vec_map"' -C metadata=9b822f22bb354117 -C extra-filename=-9b822f22bb354117 --out-dir /tmp/cargo-installlsgmPX/release/deps -L dependency=/tmp/cargo-installlsgmPX/release/deps --extern ansi_term=/tmp/cargo-installlsgmPX/release/deps/libansi_term-eadfc56f31755089.rmeta --extern atty=/tmp/cargo-installlsgmPX/release/deps/libatty-c0963bed9091c183.rmeta --extern bitflags=/tmp/cargo-installlsgmPX/release/deps/libbitflags-8094798d4dc009ac.rmeta --extern strsim=/tmp/cargo-installlsgmPX/release/deps/libstrsim-96e860a76a9cf922.rmeta --extern textwrap=/tmp/cargo-installlsgmPX/release/deps/libtextwrap-bcf2a3b2c5524d26.rmeta --extern unicode_width=/tmp/cargo-installlsgmPX/release/deps/libunicode_width-555477aac4588305.rmeta --extern vec_map=/tmp/cargo-installlsgmPX/release/deps/libvec_map-a03ca84b9540c7a2.rmeta --cap-lints allow (exit code: 1)

@megapro17
Copy link

It does install perfectly on ubuntu 22.04 wsl. That's a lesson for you to never use crappy debian with ancient packages

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