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

After install aarch64-linux-android still show not install #3426

Closed
HuixingWong opened this issue Aug 4, 2023 · 4 comments
Closed

After install aarch64-linux-android still show not install #3426

HuixingWong opened this issue Aug 4, 2023 · 4 comments
Labels

Comments

@HuixingWong
Copy link

Problem

note: the aarch64-linux-android target may not be installed
= help: consider downloading the target with rustup target add aarch64-linux-android

Steps

rustup target add aarch64-linux-android

info: component 'rust-std' for target 'aarch64-linux-android' is up to date

Possible Solution(s)

No response

Notes

No response

Rustup version

rustup 1.26.0 (5af9b9484 2023-04-05)
info: This is the version for the rustup toolchain manager, not the rustc compiler.
info: The currently active `rustc` version is `rustc 1.69.0 (84c898d65 2023-04-16)`

Installed toolchains

installed targets for active toolchain
--------------------------------------

aarch64-apple-darwin
aarch64-apple-ios
aarch64-apple-ios-sim
aarch64-linux-android
aarch64-unknown-none
armv7-linux-androideabi
i686-linux-android
x86_64-apple-ios
x86_64-linux-android

active toolchain
----------------

stable-aarch64-apple-darwin (default)
rustc 1.69.0 (84c898d65 2023-04-16)
@HuixingWong HuixingWong added the bug label Aug 4, 2023
@rami3l
Copy link
Member

rami3l commented Aug 18, 2023

@HuixingWong Hi!

Would you mind sharing the command that you executed causing that error message? I see you have aarch64-linux-android in your list of installed targets.

There could be a problem of wrong error message being generated...


Update: That suggestion is indeed possibly wrong (but it is not generated by rustup anyway so we cannot do anything about it on our side, sorry).

My guess would be that you are actually using a different toolchain in cargo, but is prompted by rustc to add the target on the default toolchain.

cc rust-lang/rust#91600

@rami3l
Copy link
Member

rami3l commented Aug 18, 2023

@weihanglo:

If you have multiple installations of rust on your machine, please make sure that you are using the rustup-installed one.

See: https://users.rust-lang.org/t/compile-failed-with-target-aarch64-linux-android/92439/14


My personal recommendation for setting up a rust environment on macOS would be:

  1. Install rustup-init with brew install rustup-init;
  2. Proceed with that rustup-init installation;
  3. If you also wish to have brew-installed rust, make sure your rustup-installed rust comes first in the PATH, and optionally configure the system toolchain via rustup toolchain link system <path>.

@paul726
Copy link

paul726 commented Dec 9, 2023

@rami3l thank you so much, this way works for me

@rami3l
Copy link
Member

rami3l commented Dec 20, 2023

Since the info given in this issue is not enough to reproduce it, I'm closing this issue now.

Please feel free to tell me if there's anything we can do for you, and have a good day!

@rami3l rami3l closed this as not planned Won't fix, can't repro, duplicate, stale Dec 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants