esp-rs / rust-build

Installation tools and workflows for deploying/building Rust fork esp-rs/rust with Xtensa and RISC-V support

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

cargo build error

cmehmet opened this issue · comments

commented

This is the first error i get;;;
error: in C:\blink\rust-toolchain.toml: invalid toolchain name: 'esp'

After that i change the toolchain name esp to stable in that path C:\blink\rust-toolchain.toml but i get second error like the below;;;

error: failed to run rustc to learn about target-specific information

Caused by:
process didn't exit successfully: rustc - --crate-name ___ --print=file-names --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 code: 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

error1 error2

I am grateful for any kind of help

The Xtensa enabled toolchain is not installed, please follow the instructions outlined in the book: https://esp-rs.github.io/book/.

commented

Thank you so much for help