Skip to content

Error reading rustc version #1385

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

Closed
Ronaldho80 opened this issue Apr 5, 2018 · 4 comments
Closed

Error reading rustc version #1385

Ronaldho80 opened this issue Apr 5, 2018 · 4 comments

Comments

@Ronaldho80
Copy link

Dear all,

I get the above error on my VM / Windows 7 / 64Bit / GNU / MSYS2 installation when I want to do an update on rust nightly.

I do not get that error if I install an older version of rust nightly (2018-02-01 for example).

However, even if I use the old rustc nightly, I get the following error for cargo build:

$ cargo build
    Updating registry `https://github.com/rust-lang/crates.io-index`
error: process didn't exit successfully: `rustc -vV` (exit code: 3221225595)

After other unsuccessful tries, I removed MSYS2 completely and re-did the installation with rustup-init.exe. I downloaded the latest rustup-init.exe (64 Bit) and started the installation. I got this error:

Current installation options:

   default host triple: gnu
     default toolchain: nightly
  modify PATH variable: yes

1) Proceed with installation (default)
2) Customize installation
3) Cancel installation
1

thread 'main' panicked at '', src\libcore\option.rs:874:4
note: Run with `RUST_BACKTRACE=1` for a backtrace.
@zoumi
Copy link

zoumi commented Apr 21, 2018

system: WIndows 7 64bit

run with git bash:

$ rustup toolchain install nightly-i686-pc-windows-gnu
info: syncing channel updates for 'nightly-i686-pc-windows-gnu'
info: latest update on 2018-04-19, rust version 1.27.0-nightly (ac3c2288f 2018-04-18)
info: downloading component 'rustc'
info: downloading component 'rust-std'
info: downloading component 'cargo'
info: downloading component 'rust-docs'
info: downloading component 'rust-mingw'
info: installing component 'rustc'
info: installing component 'rust-std'
info: installing component 'cargo'
info: installing component 'rust-docs'
info: installing component 'rust-mingw'

  nightly-i686-pc-windows-gnu installed - (error reading rustc version)


$ cargo build
warning: profiles for the non root package will be ignored, specify profiles at the workspace root:
package:   H:\work\rust_projects\helper_client\Cargo.toml
workspace: H:\work\rust_projects\helper\Cargo.toml
error: process didn't exit successfully: `rustc -vV` (exit code: 3221225785)

If I run rustc within cmd.exe, it says can not locate CreateMutexA in api-ms-win-core-synch-l1-2-0.dll

@zoumi
Copy link

zoumi commented Apr 21, 2018

BTW,how to fallback nightly with a version??

$ rustup install nightly1.27.0-i686-pc-windows-gnu
error: toolchain 'nightly1.27.0-i686-pc-windows-gnu' is not installed

did not work.

@Diggsey
Copy link
Contributor

Diggsey commented May 28, 2018

Dup of #1386

@zoumi looks like your issue is unrelated to rustup: rust-lang/rust#49438

@Diggsey Diggsey closed this as completed May 28, 2018
@zoumi
Copy link

zoumi commented May 28, 2018

@Diggsey I have installed nightly-2018-04-27-i686-pc-windows-gnu, it works for me now.
BTW,

rustup update

is a bad idea.

rustup install nightly-yyyy-mm-dd-i686-pc-windows-gnu

is better!

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

3 participants