Skip to content

Help Needed - find compatible toolchain #500

@neo2043

Description

@neo2043

im trying to compile a repo kezii/esp32cam_rs. im just trying to make sure that the repo work. but compiling it gives errors, so asked what the issue was here. there they said that it was a compatibility issue with current rustc version, and i have to downgrade. so im trying to find a compatible rustc version.
esp-idf-svc version: 0.49

i tried this command MCU=esp32 cargo +1.80 espflash flash --before no-reset --target xtensa-esp32-espidf --example webserver --monitor and it gave me an error

  × Failed to build project
  ╰─▶ `cargo metadata` exited with an error: error: failed to run `rustc` to learn about target-specific
      information

      Caused by:
        process didn't exit successfully: `/home/auto/.rustup/toolchains/1.80-x86_64-unknown-linux-gnu/bin/
      rustc - --crate-name ___ --print=file-names --cfg espidf_time64 --target xtensa-esp32-espidf --crate-
      type bin --crate-type rlib --crate-type dylib --crate-type cdylib --crate-type staticlib --crate-type
      proc-macro --print=sysroot --print=split-debuginfo --print=crate-name --print=cfg` (exit status: 1)
        --- stderr
        error: Error loading target specification: Could not find specification for target "xtensa-esp32-
      espidf". Run `rustc --print target-list` for a list of built-in targets

i suppose this tried to compile the repo with non-esp toolchain versioned at 1.80.

i have the latest esp toolchain, 1.85 installed. how can i add and use a compatible toolchain or just use above command with + syntax directly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions