Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Cargo targets are not installed? #22

Open
hhanh00 opened this issue Mar 28, 2023 · 1 comment
Open

Cargo targets are not installed? #22

hhanh00 opened this issue Mar 28, 2023 · 1 comment

Comments

@hhanh00
Copy link

hhanh00 commented Mar 28, 2023

After running the setup, cargo ledger cannot find the custom targets.
Not sure what I'm missing here...

[hanh@archlinux rust-app]$ cargo ledger setup
[ ] Checking for installed custom targets...
* nanos already installed
* nanox already installed
* nanosplus already installed

[hanh@archlinux rust-app]$ cargo ledger build nanos
   Compiling num-traits v0.2.15
   Compiling rand_core v0.6.4
   Compiling quote v1.0.21
   Compiling rust-app v0.2.1 (/home/hanh/ledger/rust-app)
   Compiling nanos_sdk v0.2.0 (https://github.com/LedgerHQ/ledger-nanos-sdk.git#4e3a0138)
error[E0463]: can't find crate for `core`
  |
  = note: the `nanos` target may not be installed
  = help: consider downloading the target with `rustup target add nanos`


error[E0463]: can't find crate for `compiler_builtins`e, nanos_sdk(build), num-traits(build), rand_core                                                                                                               
@yhql
Copy link
Contributor

yhql commented Sep 5, 2023

I guess cargo ledger setup is run as cargo +stable, but then cargo ledger build nanos invokes the nightly, so it can't find the appropriate toolchain.
Try cargo +nightly ledger setup to install the target files at the right place

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants