Error: binary `cargo-embed` already exists in destination

I'm working my way through the Getting Started section of the rp-rs/rp-hal project.

I've run:

rustup self update
rustup update stable
rustup target add thumbv6m-none-eabi

and then:

cargo install elf2uf2-rs --locked
cargo install --locked probe-rs-tools

The last one generated this error:

12:08:15 ~/projects/rp2040_1 main $ cargo install --locked probe-re-tools
**Updating** crates.io index
**Downloaded** probe-rs-tools v0.24.0
**Downloaded** 1 crate (202.9 KB) in 0.37s
**error****:** binary `cargo-embed` already exists in destination as part of `cargo-embed v0.18.0`
Add --force to overwrite

I am new to Rust and I don't understand the implications of this, so I have two questions:

  1. Should I re-run with --force or will there be negative consequences down the road?
  2. Should I report this on the rp-rs/rp-hal GitHub project or could it just be a consequence of something I've done?

it's not a big problem, it just means you have already installed cargo-embed.

the old version should work fine feature wise, but I suggest you to rerun with --force to overwrite using the newer version, even if you don't need the new features, it's good practice to keep your tools up to date, for bug fixes and security improvements.

Thank you.

For anyone else following this,

cargo install --locked probe-rs-tools --force

led to:

Updating crates.io index
  :
  :
Compiling tracing-core v0.1.32
error: failed to run custom build command for `libz-ng-sys v1.1.15`

Caused by:
  process didn't exit successfully: `/var/folders/jj/r0zm223n5mqczbxbc4r_qt8m0000gn/T/cargo-installuR4J6S/release/build/libz-ng-sys-a8c09c2aedde3c39/build-script-build_zng` (exit status: 101)
  --- stdout
  CMAKE_TOOLCHAIN_FILE_aarch64-apple-darwin = None
  CMAKE_TOOLCHAIN_FILE_aarch64_apple_darwin = None
  HOST_CMAKE_TOOLCHAIN_FILE = None
  CMAKE_TOOLCHAIN_FILE = None
  CMAKE_GENERATOR_aarch64-apple-darwin = None
  CMAKE_GENERATOR_aarch64_apple_darwin = None
  HOST_CMAKE_GENERATOR = None
  CMAKE_GENERATOR = None
  CMAKE_PREFIX_PATH_aarch64-apple-darwin = None
  CMAKE_PREFIX_PATH_aarch64_apple_darwin = None
  HOST_CMAKE_PREFIX_PATH = None
  CMAKE_PREFIX_PATH = None
  CMAKE_aarch64-apple-darwin = None
  CMAKE_aarch64_apple_darwin = None
  HOST_CMAKE = None
  CMAKE = None
  running: cd "/var/folders/jj/r0zm223n5mqczbxbc4r_qt8m0000gn/T/cargo-installuR4J6S/release/build/libz-ng-sys-27e5579e7a901994/out/build" && CMAKE_PREFIX_PATH="" "cmake" "/Users/simgar/.cargo/registry/src/index.crates.io-6f17d22bba15001f/libz-ng-sys-1.1.15/src/zlib-ng" "-DCMAKE_OSX_ARCHITECTURES=arm64" "-DBUILD_SHARED_LIBS=OFF" "-DZLIB_COMPAT=OFF" "-DZLIB_ENABLE_TESTS=OFF" "-DWITH_GZFILEOP=ON" "-DCMAKE_INSTALL_PREFIX=/var/folders/jj/r0zm223n5mqczbxbc4r_qt8m0000gn/T/cargo-installuR4J6S/release/build/libz-ng-sys-27e5579e7a901994/out" "-DCMAKE_C_FLAGS= -ffunction-sections -fdata-sections -fPIC --target=arm64-apple-darwin -mmacosx-version-min=15.1" "-DCMAKE_C_COMPILER=/usr/bin/cc" "-DCMAKE_CXX_FLAGS= -ffunction-sections -fdata-sections -fPIC --target=arm64-apple-darwin -mmacosx-version-min=15.1" "-DCMAKE_CXX_COMPILER=/usr/bin/c++" "-DCMAKE_ASM_FLAGS= -ffunction-sections -fdata-sections -fPIC --target=arm64-apple-darwin -mmacosx-version-min=15.1" "-DCMAKE_ASM_COMPILER=/usr/bin/cc" "-DCMAKE_BUILD_TYPE=Release"

  --- stderr
  thread 'main' panicked at /Users/simgar/.cargo/registry/src/index.crates.io-6f17d22bba15001f/cmake-0.1.50/src/lib.rs:1098:5:

  failed to execute command: No such file or directory (os error 2)
  is `cmake` not installed?

  build script failed, must exit now
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
warning: build failed, waiting for other jobs to finish...
error: failed to compile `probe-rs-tools v0.24.0`, intermediate artifacts can be found at `/var/folders/jj/r0zm223n5mqczbxbc4r_qt8m0000gn/T/cargo-installuR4J6S`.

I didn't have cmake installed but I found a gist, here: [macOS] Install CMake ยท GitHub and, after installing it, the probe-rs-tools installation (with --force) ran to completion.