espflash icon indicating copy to clipboard operation
espflash copied to clipboard

Installing cargo-espflash with cargo fails

Open FabienTregan opened this issue 6 months ago • 7 comments

Hi. I try installing cargo-espflash but it fails :

~/code/no_std-training$ cargo install cargo-espflash espflash
…
   Compiling gix-bitmap v0.2.11
error[E0283]: type annotations needed
  --> /home/fabien/.cargo/registry/src/index.crates.io-6f17d22bba15001f/gix-credentials-0.23.1/src/program/mod.rs:83:63
   |
83 |                 gix_command::prepare(gix_path::from_bstr(args.as_ref()).into_owned())
…
    Replaced package `espflash v3.1.0` with `espflash v3.1.1` (executable `espflash`)
error: failed to compile `cargo-espflash v3.1.1`, intermediate artifacts can be found at `/tmp/cargo-installmpKzeQ`.
To reuse those artifacts with a future compilation, set the environment variable `CARGO_TARGET_DIR` to that path.
     Summary Successfully installed espflash! Failed to install cargo-espflash (see error(s) above).
error: some crates failed to install

I think I've tried nightly and stable toolchains. I tried changing the defualt tool chains to those two:

nightly-x86_64-unknown-linux-gnu (default)
stable-x86_64-unknown-linux-gnu
~$ uname -v
#45~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Mon Jul 15 16:40:02 UTC 2
~$ rustup -V
rustup 1.27.1 (54dd3d00f 2024-04-24)
info: This is the version for the rustup toolchain manager, not the rustc compiler.
info: The currently active `rustc` version is `rustc 1.79.0 (129f3b996 2024-06-10)`

After updating the tool chain, (stable to rustc 1.80.1 (3f5fd8dd4 2024-08-06, nightly to rustc 1.82.0-nightly (506052d49 2024-08-16)`) the error is still there.

FabienTregan avatar Aug 17 '24 06:08 FabienTregan