-
Notifications
You must be signed in to change notification settings - Fork 946
rustup doesn't install a toolchain? #3757
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
Comments
Does this have something to do with me using |
It was, fixed with the following on MacOS 10.11 (1.73.0 appears to be the latest compatible version): rustup --verbose toolchain install 1.73.0-x86_64-apple-darwin
rustup default 1.73.0-x86_64-apple-darwin |
Hi, I think there might be a bug here. Can you |
There isn't one, rustup wouldn't create it. I think because i686 builds don't exist anymore possibly? So it was looking for v1.77 ? |
@casesolved-co-uk Looking at https://doc.rust-lang.org/nightly/rustc/platform-support.html#tier-3 @rbtcollins Where do you think Rustup's behavior could be improved in this case? |
So there are a few possibilities. I think The path in the error is where a toolchain dir is expected to be found. So if there is no path on disk present, we need to ask why rustup was trying to access/examine one. One possibility is that when the default toolchain is set to one that does not exist, rustup does not handle the toolchain not existing. This is a possible regression from my refactoring of toolchain structs recently. I think this is most likely. Another possibility is that there was a path present, that was not a directory, but its been removed in the intervening time. I think this is less likely. In terms of improvements, I rather suspect rustup should handle the case (if it is what I suspect) and show something like 'default toolchain (name) [not installed]' |
Some additional info in case it helps: I used the latest i686 version of rustup-init since it is the only one that would run on my Mac, hence why it was trying to install the i686 toolchain. Maybe the i686 init hasn't been updated? Every attempt gave the same result: it refused to create a It was a fresh install, I've never used/installed rust before, so no changes in paths. My comment was based on the logic that maybe the only way that both up to date and not installed could both be true is if the stable version it is looking for doesn't exist? I just wanted any working version of rustc to be installed because a python library wouldn't install without it. |
@rbtcollins Please note that this is rustup 1.21.1 :: 1.21.0+13 (03e2c55 2019-12-20) and I'm not sure if the issue is still there after like 4 years... Anyway it definitely has nothing to do with your recent refactoring given that. |
@casesolved-co-uk If you're using an x86_64 Mac maybe you can try our latest test build targeting macOS 10.12: #3708 (comment) If that doesn't work my recommendation is to try older x86_64 Rustup builds, probably something like v1.26.0. According to https://blog.rust-lang.org/2023/09/25/Increasing-Apple-Version-Requirements.html, Rust only supports macOS 10.12+ now. Due to our release model it's not very feasible for us to pinpoint problems in an old build from 2019, sorry 🙇♀️ |
Yeah it's all moot now because I fixed the issue and closed this. But appreciate that I used the wrong version of rustup which sounds like it caused the issue. |
Ah, missed the age of rustup. Yes, lets close. |
Verification
Problem
rustup thinks the stable toolchain is both up to date and not installed:
Is there any way to force/trick an install?
I have tried an uninstall too.
I think this is the latest version for my old MacOS 10.11?
Steps
$ rustup --verbose toolchain install --force stable
Possible Solution(s)
I'm a newb, could be me, could just be the old version
Notes
No response
Rustup version
Installed toolchains
OS version
MacOS 10.11
The text was updated successfully, but these errors were encountered: