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 to build using latest nightly #1173

Open
precompute opened this issue Dec 8, 2021 · 5 comments
Open

Failed to build using latest nightly #1173

precompute opened this issue Dec 8, 2021 · 5 comments

Comments

@precompute
Copy link

precompute commented Dec 8, 2021

$ cargo +nightly install racer 
    Updating crates.io index
  Installing racer v2.1.48
   Compiling libc v0.2.109
   ...
   Compiling rustc-ap-rustc_data_structures v722.0.0
   Compiling rustc-ap-rustc_arena v722.0.0
   Compiling rustc-ap-rustc_span v722.0.0
error[E0635]: unknown feature `thread_local_const_init`
  --> /home/sys2/.cargo/registry/src/github.com-1ecc6299db9ec823/rustc-ap-rustc_span-722.0.0/src/lib.rs:23:12
   |
23 | #![feature(thread_local_const_init)]
   |            ^^^^^^^^^^^^^^^^^^^^^^^

For more information about this error, try `rustc --explain E0635`.
error: could not compile `rustc-ap-rustc_span` due to previous error
warning: build failed, waiting for other jobs to finish...
error: failed to compile `racer v2.1.48`, intermediate artifacts can be found at `/tmp/cargo-installf8feJG`

Caused by:
  build failed
$ rustup run nightly rustc --version
rustc 1.59.0-nightly (0b6f079e4 2021-12-07)

It's an upstream issue: rust-lang/rust#91543

@kunfan96
Copy link

kunfan96 commented Dec 8, 2021

same as you,who can help me?

@fakegermano
Copy link

It's as @t-e-r-m said, an upstream issue with rustc-ap-rustc_span's build pipeline, it's been stale for more than 60 days and github decided to not run any more release actions! 👍

If you need racer working, you can install it with nightly-2021-06-07 (maybe a further version as well, but this is the one I tested based on approximate dates for releases.

@ghost
Copy link

ghost commented Dec 11, 2021

It's as @t-e-r-m said, an upstream issue with rustc-ap-rustc_span's build pipeline, it's been stale for more than 60 days and github decided to not run any more release actions! +1

If you need racer working, you can install it with nightly-2021-06-07 (maybe a further version as well, but this is the one I tested based on approximate dates for releases.

Installing /home/steve/.cargo/bin/racer
   Installed package `racer v2.1.48` (executable `racer`)
➜  rust-in-action racer --version
racer 2.1.48

nightly-2021-01-30-x86_64-unknown-linux-gnu does not work with this, but nightly-2021-06-07 is totally ok.
Thanks buddy

@calebcartwright
Copy link
Contributor

You can, and should, always look at the toolchain file to find an appropriate one. With the underlying dependencies racer has it's highly unlikely that toolchains earlier than the one specified will ever work, but yes latter ones may also work for a time.

channel = "nightly-2021-06-06"

@fortystory
Copy link

fortystory commented Dec 11, 2021

use:
rustup toolchain add nightly-2021-06-07

cargo +nightly-2021-06-07 install racer

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

5 participants