racer-rust / racer

Rust Code Completion utility
MIT License
3.36k stars 278 forks source link

`cargo install +nightly racer` fails on macOS 11.2 #1157

Closed dimitarvp closed 3 years ago

dimitarvp commented 3 years ago

For several days now I can't compile racer. Force updated nightly minutes before running the command, too.

Output of `cargo install +nightly racer` ``` Updating crates.io index Installing racer v2.1.43 Compiling libc v0.2.85 Compiling autocfg v1.0.1 Compiling proc-macro2 v1.0.24 Compiling cfg-if v1.0.0 Compiling unicode-xid v0.2.1 Compiling syn v1.0.60 Compiling lazy_static v1.4.0 Compiling scopeguard v1.1.0 Compiling version_check v0.9.2 Compiling cfg-if v0.1.10 Compiling typenum v1.12.0 Compiling maybe-uninit v2.0.0 Compiling smallvec v1.6.1 Compiling cc v1.0.66 Compiling getrandom v0.2.2 Compiling log v0.4.14 Compiling ppv-lite86 v0.2.10 Compiling bitflags v1.2.1 Compiling hashbrown v0.9.1 Compiling rustc-rayon-core v0.3.0 Compiling unicode-width v0.1.8 Compiling opaque-debug v0.3.0 Compiling either v1.6.1 Compiling pin-project-lite v0.2.4 Compiling arrayvec v0.5.2 Compiling rustc-hash v1.1.0 Compiling cpuid-bool v0.1.2 Compiling remove_dir_all v0.5.3 Compiling stable_deref_trait v1.2.0 Compiling rustc-ap-rustc_graphviz v702.0.0 Compiling scoped-tls v1.0.0 Compiling serde_derive v1.0.123 Compiling serde v1.0.123 Compiling memchr v2.3.4 Compiling termcolor v1.1.2 Compiling ryu v1.0.5 Compiling once_cell v1.5.2 Compiling tinyvec_macros v0.1.0 Compiling annotate-snippets v0.8.0 Compiling serde_json v1.0.62 Compiling regex-syntax v0.6.22 Compiling itoa v0.4.7 Compiling quick-error v1.2.3 Compiling rustc-ap-rustc_fs_util v702.0.0 Compiling ansi_term v0.11.0 Compiling strsim v0.8.0 Compiling vec_map v0.8.2 Compiling humantime v2.1.0 Compiling lazycell v1.3.0 Compiling instant v0.1.9 Compiling lock_api v0.4.2 Compiling crossbeam-utils v0.6.6 Compiling tracing-core v0.1.17 Compiling getopts v0.2.21 Compiling textwrap v0.11.0 Compiling rustc-ap-rustc_arena v702.0.0 Compiling tinyvec v1.1.1 Compiling rustc-ap-rustc_lexer v702.0.0 Compiling generic-array v0.14.4 Compiling thread_local v1.1.3 Compiling crossbeam-utils v0.7.2 Compiling memoffset v0.5.6 Compiling crossbeam-epoch v0.8.2 Compiling indexmap v1.6.1 Compiling humantime v1.3.0 Compiling crossbeam-queue v0.1.2 Compiling ena v0.14.0 Compiling aho-corasick v0.7.15 Compiling psm v0.1.12 Compiling stacker v0.1.13 Compiling parking_lot_core v0.8.2 Compiling num_cpus v1.13.0 Compiling jobserver v0.1.21 Compiling atty v0.2.14 Compiling termize v0.1.1 Compiling quote v1.0.8 Compiling rand_core v0.6.1 Compiling clap v2.33.3 Compiling unicode-normalization v0.1.16 Compiling parking_lot v0.11.1 Compiling rand_chacha v0.3.0 Compiling rustc-ap-rustc_serialize v702.0.0 Compiling measureme v9.0.0 Compiling rand v0.8.3 Compiling crossbeam-deque v0.7.3 error[E0658]: use of unstable library feature 'int_bits_const' --> /Users/dimi/.cargo/registry/src/github.com-1ecc6299db9ec823/rustc-ap-rustc_serialize-702.0.0/src/leb128.rs:142:25 | 142 | if (shift < <$int_ty>::BITS) && ((byte & 0x40) != 0) { | ^^^^^^^^^^^^^^^ ... 152 | impl_read_signed_leb128!(read_i16_leb128, i16); | ----------------------------------------------- in this macro invocation | = note: see issue #76904 for more information = help: add `#![feature(int_bits_const)]` to the crate attributes to enable = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) error[E0658]: use of unstable library feature 'int_bits_const' --> /Users/dimi/.cargo/registry/src/github.com-1ecc6299db9ec823/rustc-ap-rustc_serialize-702.0.0/src/leb128.rs:142:25 | 142 | if (shift < <$int_ty>::BITS) && ((byte & 0x40) != 0) { | ^^^^^^^^^^^^^^^ ... 153 | impl_read_signed_leb128!(read_i32_leb128, i32); | ----------------------------------------------- in this macro invocation | = note: see issue #76904 for more information = help: add `#![feature(int_bits_const)]` to the crate attributes to enable = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) error[E0658]: use of unstable library feature 'int_bits_const' --> /Users/dimi/.cargo/registry/src/github.com-1ecc6299db9ec823/rustc-ap-rustc_serialize-702.0.0/src/leb128.rs:142:25 | 142 | if (shift < <$int_ty>::BITS) && ((byte & 0x40) != 0) { | ^^^^^^^^^^^^^^^ ... 154 | impl_read_signed_leb128!(read_i64_leb128, i64); | ----------------------------------------------- in this macro invocation | = note: see issue #76904 for more information = help: add `#![feature(int_bits_const)]` to the crate attributes to enable = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) error[E0658]: use of unstable library feature 'int_bits_const' --> /Users/dimi/.cargo/registry/src/github.com-1ecc6299db9ec823/rustc-ap-rustc_serialize-702.0.0/src/leb128.rs:142:25 | 142 | if (shift < <$int_ty>::BITS) && ((byte & 0x40) != 0) { | ^^^^^^^^^^^^^^^ ... 155 | impl_read_signed_leb128!(read_i128_leb128, i128); | ------------------------------------------------- in this macro invocation | = note: see issue #76904 for more information = help: add `#![feature(int_bits_const)]` to the crate attributes to enable = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) error[E0658]: use of unstable library feature 'int_bits_const' --> /Users/dimi/.cargo/registry/src/github.com-1ecc6299db9ec823/rustc-ap-rustc_serialize-702.0.0/src/leb128.rs:142:25 | 142 | if (shift < <$int_ty>::BITS) && ((byte & 0x40) != 0) { | ^^^^^^^^^^^^^^^ ... 156 | impl_read_signed_leb128!(read_isize_leb128, isize); | --------------------------------------------------- in this macro invocation | = note: see issue #76904 for more information = help: add `#![feature(int_bits_const)]` to the crate attributes to enable = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) error: aborting due to 5 previous errors For more information about this error, try `rustc --explain E0658`. error: could not compile `rustc-ap-rustc_serialize` To learn more, run the command again with --verbose. warning: build failed, waiting for other jobs to finish... error: failed to compile `racer v2.1.43`, intermediate artifacts can be found at `/var/folders/kw/x1xjdlfj08g62bsnxplpgz700000gn/T/cargo-installCYzGEb` Caused by: build failed ```

Anything obvious I am missing?

bbugyi200 commented 3 years ago

I'm experiencing this same build error on Debian Bullseye.

quadroli commented 3 years ago

@bbugyi200 @dimitarvp brawskizzz, i have found the solution, simply uninstall rust 'rustup self uninstall' reinstall it 'curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh' clone the repo 'git clone https://github.com/racer-rust/racer.git' cd into it 'cd racer' then finally run 'cargo build --release'

worked a 💯 persento for me 🥖 👨‍🎨

bbugyi200 commented 3 years ago

@quadroli Nice! This solution might be overkill though.

I was actually able to get this working by just running cargo install racer insted of cargo +nightly install racer. Perhaps the installation instructions in the README needs to be updated?