-
-
Notifications
You must be signed in to change notification settings - Fork 57
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
unable to install #178
Comments
One possibility is that you have set the RUSTC_WRAPPER, RUSTC, or similar environment variable or config and cargo-llvm-cov is ignoring it. In this case, this patch may fix the problem. Otherwise, the problem seems to be either you are using a custom toolchain and have not been able to install llvm-tools-preview in the custom toolchain, or the custom toolchain has a different directory structure than the regular toolchain. Try the regular toolchain installed by rustup. (Note: It is very hard to fully support RUSTC_WRAPPER or custom toolchains because they allow cargo/rustc/rustup to do things that are very different from its default behavior.)
This error is because we do not distribute prebuilt binaries for aarch64 macOS. It should be fixed in the next release including #179. |
Thanks for the details. |
Published 0.4.5 which includes the RUSTC_WRAPPER-related fix and aarch64 macOS binary distribution. |
brew install works now but when I run λ cargo llvm-cov
error: failed to find llvm-tools-preview, please install llvm-tools-preview with `rustup component add llvm-tools-preview --toolchain local` And I have λ rustup component add llvm-tools-preview
info: downloading component 'llvm-tools-preview'
info: installing component 'llvm-tools-preview'
42.0 MiB / 42.0 MiB (100 %) 20.9 MiB/s in 2s ETA: 0s How do I debug this? I installed rust via |
First, could you confirm that rust is not installed by package managers such as homebrew or MacPorts? For homebrew:
The package manager installs specific versions of rustc, rustdoc, and cargo instead of rustup, and those binaries may take precedence over binaries installed by rustup. AFAIK, they basically do not work as the rust developer expects and it is recommended to uninstall or at least remove them from the path. If you have not installed anything via package managers, can you tell me what custom toolchain is installed?
|
Hey @taiki-e For those who happen to come upon this, this was the issue: λ rustup self uninstall
error: self-uninstall is disabled for this build of rustup
error: you should probably use your system package manager to uninstall rustup So I had to remove the dir |
Following the instructions I'm getting an error on macOS 12.4 ARM
Trying to install it via brew also fails:
The text was updated successfully, but these errors were encountered: