esp-rs / esp-idf-template

A "Hello, world!" template of a Rust binary crate for the ESP-IDF framework.
380 stars 45 forks source link

error building using esp-idf v4.4 #53

Closed konradmoesch closed 1 year ago

konradmoesch commented 1 year ago

I installed the esp toolchain (including esp-idf 4.4) using the script (https://github.com/esp-rs/rust-build). A project using the template (selected idf toolchain version 4.4) failes to compile. The output shows

Using managed esp-idf repository: EspIdfRemote { repo_url: None, git_ref: Branch("release/v4.4") }
cloning into '/home/km/esp-rs/esp32-blink-test/.embuild/espressif/esp-idf/release-v4.4'...

then, a lot of normal git clone output is shown. Some errors fatal: no names found (i assume from git describe) is thrown (not sure whether this is the issue that prevents compiling) I also get error: unknown target triple 'xtensa', please use -triple or -arch, even when providing --target xtensa-esp32-espidf to cargo build

konradmoesch commented 1 year ago

was able to solve it by specifying LIBCLANG_PATH under [env] in the .cargo/config.toml