esp-rs / esp-idf-template

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

Build failed #19

Closed turgu1 closed 2 years ago

turgu1 commented 2 years ago

Hello, I've just tried to create a test project using the template:

OS: Ubuntu 20.04 ESP-IDF: V4.4 Rust ESP version: 1.60

After generating the project, I used cargo build and it failed to build the project. As a newbie with Rust, I've no clue on how to resolve the issue. Here is the output from the terminal:

turgu1@phobos:~/Dev/rust-trials$ cargo generate --vcs none --git https://github.com/esp-rs/esp-idf-template cargo
⚠️   Unable to load config file: /home/turgu1/.cargo/cargo-generate.toml
🤷   Project Name : test
🔧   Generating template ...
? 🤷   ESP-IDF native build version (v4.3.2 = previous stable, v4.4 = stable, v5.0 = development; NOTE: applicable only with `cargo build --features native`✔ 🤷   ESP-IDF native build version (v4.3.2 = previous stable, v4.4 = stable, v5.0 = development; NOTE: applicable only with `cargo build --features native`) · v4.4
✔ 🤷   Rust toolchain (beware: nightly works only for esp32c3!) · esp
✔ 🤷   MCU · esp32
✔ 🤷   STD support · true
[1/9]   Done: .cargo/config.toml
[2/9]   Done: .cargo
[3/9]   Done: .gitignore
[4/9]   Done: Cargo.toml
[5/9]   Done: build.rs
[6/9]   Done: rust-toolchain.toml
[7/9]   Done: sdkconfig.defaults
[8/9]   Done: src/main.rs
[9/9]   Done: src
🔧   Moving generated files into: `/home/turgu1/Dev/rust-trials/test`...
💡   Initializing a fresh Git repository
✨   Done! New project created /home/turgu1/Dev/rust-trials/test
turgu1@phobos:~/Dev/rust-trials$ cd test
turgu1@phobos:~/Dev/rust-trials/test$ ls
build.rs  Cargo.toml  rust-toolchain.toml  sdkconfig.defaults  src
turgu1@phobos:~/Dev/rust-trials/test$ echo $PATH
/home/turgu1/esp/esp-idf/components/esptool_py/esptool:/home/turgu1/esp/esp-idf/components/espcoredump:/home/turgu1/esp/esp-idf/components/partition_table:/home/turgu1/esp/esp-idf/components/app_update:/home/turgu1/.espressif/tools/esp32ulp-elf/2.28.51-esp-20191205/esp32ulp-elf-binutils/bin:/home/turgu1/.espressif/tools/openocd-esp32/v0.11.0-esp32-20211220/openocd-esp32/bin:/home/turgu1/.espressif/tools/ninja/1.10.2/:/home/turgu1/.espressif/python_env/idf4.4_py3.8_env/bin:/home/turgu1/esp/esp-idf/tools:/home/turgu1/.espressif/tools/xtensa-esp32-elf-clang/esp-13.0.0-20211203-x86_64-unknown-linux-gnu/bin/:/home/turgu1/.cargo/bin:/home/turgu1/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/turgu1/.platformio/penv/bin
turgu1@phobos:~/Dev/rust-trials/test$ cargo build
    Updating crates.io index
   Compiling compiler_builtins v0.1.70
   Compiling core v0.0.0 (/home/turgu1/.rustup/toolchains/esp/lib/rustlib/src/rust/library/core)
   Compiling proc-macro2 v1.0.37
   Compiling libc v0.2.122
   Compiling memchr v2.4.1
   Compiling unicode-xid v0.2.2
   Compiling syn v1.0.91
   Compiling cfg-if v1.0.0
   Compiling log v0.4.16
   Compiling regex-syntax v0.6.25
   Compiling glob v0.3.0
   Compiling serde_derive v1.0.136
   Compiling rustversion v1.0.6
   Compiling crossbeam-utils v0.8.8
   Compiling serde v1.0.136
   Compiling lazy_static v1.4.0
   Compiling unicode-width v0.1.9
   Compiling same-file v1.0.6
   Compiling bitflags v1.3.2
   Compiling once_cell v1.10.0
   Compiling minimal-lexical v0.2.1
   Compiling libc v0.2.120
   Compiling unicode-segmentation v1.9.0
   Compiling fnv v1.0.7
   Compiling anyhow v1.0.56
   Compiling vec_map v0.8.2
   Compiling either v1.6.1
   Compiling strsim v0.8.0
   Compiling termcolor v1.1.3
   Compiling serde_json v1.0.79
   Compiling ansi_term v0.12.1
   Compiling humantime v2.1.0
   Compiling bindgen v0.59.2
   Compiling rustc-hash v1.1.0
   Compiling cc v1.0.73
   Compiling shlex v1.1.0
   Compiling lazycell v1.3.0
   Compiling peeking_take_while v0.1.2
   Compiling ryu v1.0.9
   Compiling remove_dir_all v0.5.3
   Compiling zero v0.1.2
   Compiling cc v1.0.69
   Compiling fastrand v1.7.0
   Compiling itoa v1.0.1
   Compiling std v0.0.0 (/home/turgu1/.rustup/toolchains/esp/lib/rustlib/src/rust/library/std)
   Compiling paste v1.0.7
   Compiling libloading v0.7.3
   Compiling textwrap v0.11.0
   Compiling walkdir v2.3.2
   Compiling thread_local v1.1.4
   Compiling heck v0.3.3
   Compiling clang-sys v1.3.1
   Compiling xmas-elf v0.8.0
   Compiling cmake v0.1.48
   Compiling aho-corasick v0.7.18
   Compiling bstr v0.2.17
   Compiling nom v7.1.1
   Compiling quote v1.0.17
   Compiling atty v0.2.14
   Compiling dirs-sys v0.3.7
   Compiling which v4.2.5
   Compiling tempfile v3.3.0
   Compiling remove_dir_all v0.7.0
   Compiling clap v2.34.0
   Compiling dirs v4.0.0
   Compiling regex v1.5.5
   Compiling unwind v0.0.0 (/home/turgu1/.rustup/toolchains/esp/lib/rustlib/src/rust/library/unwind)
   Compiling globset v0.4.8
   Compiling env_logger v0.9.0
   Compiling ignore v0.4.18
   Compiling cexpr v0.6.0
   Compiling globwalk v0.8.1
   Compiling thiserror-impl v1.0.30
   Compiling strum_macros v0.23.1
   Compiling thiserror v1.0.30
   Compiling strum v0.23.0
   Compiling rustc-std-workspace-core v1.99.0 (/home/turgu1/.rustup/toolchains/esp/lib/rustlib/src/rust/library/rustc-std-workspace-core)
   Compiling alloc v0.0.0 (/home/turgu1/.rustup/toolchains/esp/lib/rustlib/src/rust/library/alloc)
   Compiling cfg-if v0.1.10
   Compiling adler v0.2.3
   Compiling rustc-demangle v0.1.21
   Compiling rustc-std-workspace-alloc v1.99.0 (/home/turgu1/.rustup/toolchains/esp/lib/rustlib/src/rust/library/rustc-std-workspace-alloc)
   Compiling panic_abort v0.0.0 (/home/turgu1/.rustup/toolchains/esp/lib/rustlib/src/rust/library/panic_abort)
   Compiling panic_unwind v0.0.0 (/home/turgu1/.rustup/toolchains/esp/lib/rustlib/src/rust/library/panic_unwind)
   Compiling gimli v0.25.0
   Compiling miniz_oxide v0.4.0
   Compiling object v0.26.2
   Compiling std_detect v0.1.5 (/home/turgu1/.rustup/toolchains/esp/lib/rustlib/src/rust/library/stdarch/crates/std_detect)
   Compiling hashbrown v0.12.0
   Compiling toml v0.5.8
   Compiling addr2line v0.16.0
   Compiling embuild v0.28.5
   Compiling esp-idf-sys v0.31.0
   Compiling test v0.1.0 (/home/turgu1/Dev/rust-trials/test)
   Compiling proc_macro v0.0.0 (/home/turgu1/.rustup/toolchains/esp/lib/rustlib/src/rust/library/proc_macro)
error: failed to run custom build command for `esp-idf-sys v0.31.0`

Caused by:
  process didn't exit successfully: `/home/turgu1/Dev/rust-trials/test/target/debug/build/esp-idf-sys-991ede0d5d6a6d4d/build-script-build` (exit status: 1)
  --- stdout
  cargo:rerun-if-env-changed=ESP_IDF_TOOLS_INSTALL_DIR
  cargo:rerun-if-env-changed=ESP_IDF_VERSION
  cargo:rerun-if-env-changed=ESP_IDF_REPOSITORY
  cargo:rerun-if-env-changed=ESP_IDF_SDKCONFIG_DEFAULTS
  cargo:rerun-if-env-changed=ESP_IDF_SDKCONFIG
  cargo:rerun-if-env-changed=MCU
  Submodule path 'components/asio/asio': checked out 'f31694c9f1746ba189a4bcae2e34db15135ddb22'
  Submodule path 'components/bootloader/subproject/components/micro-ecc/micro-ecc': checked out 'd037ec89546fad14b5c4d5456c2e23a71e554966'
  Submodule path 'components/bt/controller/lib_esp32': checked out 'b877f7e1fc98dccfcf4dbf31f215c5cb44ec3f0d'
  Submodule path 'components/bt/controller/lib_esp32c3_family': checked out '98dcc9591365b5ac486a9f0b474c36bf8c4ca97b'
  Submodule path 'components/bt/host/nimble/nimble': checked out '1dc1ec6e76b0ab3bf93cc9f1ff7a2a09141e7c61'
  Submodule path 'components/cbor/tinycbor': checked out '7c349dbb6b8d76db39383b226d3ebdf59b8ab37d'
  Submodule path 'components/cmock/CMock': checked out 'eeecc49ce8af123cf8ad40efdb9673e37b56230f'
  Submodule path 'components/cmock/CMock/vendor/c_exception': checked out '71b47be7c950f1bf5f7e5303779fa99a16224bb6'
  Submodule path 'components/cmock/CMock/vendor/unity': checked out 'cf949f45ca6d172a177b00da21310607b97bc7a7'
  Submodule path 'components/coap/libcoap': checked out '3aa11612c143c9734d72022720f33e12506f7a2c'
  Submodule path 'components/coap/libcoap/ext/tinydtls': checked out '59055b8a935bc53bf69d002fc089ad4bd08851b2'
  Submodule path 'components/esp_phy/lib': checked out '449b432d94b968a75ffabffae91fe15796de7644'
  Submodule path 'components/esp_wifi/lib': checked out '5a0d2aee49633b1a0c0374c2a01ed8c2a10e2fe4'
  Submodule path 'components/esptool_py/esptool': checked out '66e1f163a4f9a32041ec48b8aa7ab958831f8410'
  Submodule path 'components/expat/expat': checked out '57c7da69b78e3698e112a6b5da19d5109b8232d1'
  Submodule path 'components/ieee802154/lib': checked out 'f7b5e8059a3bb6f321e79ac3bf2aa4d2a9b93326'
  Submodule path 'components/json/cJSON': checked out 'd348621ca93571343a56862df7de4ff3bc9b5667'
  Submodule path 'components/libsodium/libsodium': checked out '4f5e89fa84ce1d178a6765b8b46f2b6f91216677'
  Submodule path 'components/lwip/lwip': checked out '2749568fe15df2003f6c3f37f0dfd44f8f01fcd6'
  Submodule path 'components/mbedtls/mbedtls': checked out '8b0e35f2ad477fcc2a267cf434528024b8499085'
  Submodule path 'components/mqtt/esp-mqtt': checked out '89894bd0c611b1392967fe90bb49682eba858383'
  Submodule path 'components/nghttp/nghttp2': checked out '8f7b008b158e12de0e58247afd170f127dbb6456'
  Submodule path 'components/nghttp/nghttp2/third-party/mruby': checked out '7c91efc1ffda769a5f1a872c646c82b00698f1b8'
  Submodule path 'components/nghttp/nghttp2/third-party/neverbleed': checked out 'b967ca054f48a36f82d8fcdd32e54ec5144f2751'
  Submodule path 'components/openthread/lib': checked out '9a8d34d8f698cad2c9468468b473e26a3dda51b9'
  Submodule path 'components/openthread/openthread': checked out 'c36c0e77a2465355bcf13bd7dc718d8c9aa6ff64'
  Submodule path 'components/protobuf-c/protobuf-c': checked out 'dac1a65feac4ad72f612aab99f487056fbcf5c1a'
  Submodule path 'components/spiffs/spiffs': checked out 'f5e26c4e933189593a71c6b82cda381a7b21e41c'
  Submodule path 'components/tinyusb/tinyusb': checked out 'c4badd394eda18199c0196ed0be1e2d635f0a5f6'
  Submodule path 'components/unity/unity': checked out '7d2bf62b7e6afaf38153041a9d53c21aeeca9a25'
  Submodule path 'examples/build_system/cmake/import_lib/main/lib/tinyxml2': checked out '7e8e249990ec491ec15990cf95b6d871a66cf64a'
  Submodule path 'examples/peripherals/secure_element/atecc608_ecdsa/components/esp-cryptoauthlib': checked out '36d0642e66ff5b1c7a291873f24c498ca6ffedef'
  PATH=/home/turgu1/Dev/rust-trials/test/.embuild/espressif/esp-idf-release/v4.4/tools:$PATH

  --- stderr
  Cloning into '/home/turgu1/Dev/rust-trials/test/.embuild/espressif/esp-idf-release/v4.4'...
  Submodule 'components/asio/asio' (https://github.com/espressif/asio.git) registered for path 'components/asio/asio'
  Submodule 'components/bootloader/subproject/components/micro-ecc/micro-ecc' (https://github.com/kmackay/micro-ecc.git) registered for path 'components/bootloader/subproject/components/micro-ecc/micro-ecc'
  Submodule 'components/bt/controller/lib_esp32' (https://github.com/espressif/esp32-bt-lib.git) registered for path 'components/bt/controller/lib_esp32'
  Submodule 'components/bt/controller/lib_esp32c3_family' (https://github.com/espressif/esp32c3-bt-lib.git) registered for path 'components/bt/controller/lib_esp32c3_family'
  Submodule 'components/bt/host/nimble/nimble' (https://github.com/espressif/esp-nimble.git) registered for path 'components/bt/host/nimble/nimble'
  Submodule 'components/cbor/tinycbor' (https://github.com/intel/tinycbor.git) registered for path 'components/cbor/tinycbor'
  Submodule 'components/cmock/CMock' (https://github.com/ThrowTheSwitch/CMock.git) registered for path 'components/cmock/CMock'
  Submodule 'components/coap/libcoap' (https://github.com/obgm/libcoap.git) registered for path 'components/coap/libcoap'
  Submodule 'components/esp_phy/lib' (https://github.com/espressif/esp-phy-lib.git) registered for path 'components/esp_phy/lib'
  Submodule 'components/esp_wifi/lib' (https://github.com/espressif/esp32-wifi-lib.git) registered for path 'components/esp_wifi/lib'
  Submodule 'components/esptool_py/esptool' (https://github.com/espressif/esptool.git) registered for path 'components/esptool_py/esptool'
  Submodule 'components/expat/expat' (https://github.com/libexpat/libexpat.git) registered for path 'components/expat/expat'
  Submodule 'components/ieee802154/lib' (https://github.com/espressif/esp-ieee802154-lib.git) registered for path 'components/ieee802154/lib'
  Submodule 'components/json/cJSON' (https://github.com/DaveGamble/cJSON.git) registered for path 'components/json/cJSON'
  Submodule 'components/libsodium/libsodium' (https://github.com/jedisct1/libsodium.git) registered for path 'components/libsodium/libsodium'
  Submodule 'components/lwip/lwip' (https://github.com/espressif/esp-lwip.git) registered for path 'components/lwip/lwip'
  Submodule 'components/mbedtls/mbedtls' (https://github.com/espressif/mbedtls.git) registered for path 'components/mbedtls/mbedtls'
  Submodule 'components/mqtt/esp-mqtt' (https://github.com/espressif/esp-mqtt.git) registered for path 'components/mqtt/esp-mqtt'
  Submodule 'components/nghttp/nghttp2' (https://github.com/nghttp2/nghttp2.git) registered for path 'components/nghttp/nghttp2'
  Submodule 'components/openthread/lib' (https://github.com/espressif/esp-thread-lib.git) registered for path 'components/openthread/lib'
  Submodule 'components/openthread/openthread' (https://github.com/espressif/openthread.git) registered for path 'components/openthread/openthread'
  Submodule 'components/protobuf-c/protobuf-c' (https://github.com/protobuf-c/protobuf-c.git) registered for path 'components/protobuf-c/protobuf-c'
  Submodule 'components/spiffs/spiffs' (https://github.com/pellepl/spiffs.git) registered for path 'components/spiffs/spiffs'
  Submodule 'components/tinyusb/tinyusb' (https://github.com/espressif/tinyusb.git) registered for path 'components/tinyusb/tinyusb'
  Submodule 'components/unity/unity' (https://github.com/ThrowTheSwitch/Unity.git) registered for path 'components/unity/unity'
  Submodule 'examples/build_system/cmake/import_lib/main/lib/tinyxml2' (https://github.com/leethomason/tinyxml2.git) registered for path 'examples/build_system/cmake/import_lib/main/lib/tinyxml2'
  Submodule 'examples/peripherals/secure_element/atecc608_ecdsa/components/esp-cryptoauthlib' (https://github.com/espressif/esp-cryptoauthlib.git) registered for path 'examples/peripherals/secure_element/atecc608_ecdsa/components/esp-cryptoauthlib'
  Cloning into '/home/turgu1/Dev/rust-trials/test/.embuild/espressif/esp-idf-release/v4.4/components/asio/asio'...
  Cloning into '/home/turgu1/Dev/rust-trials/test/.embuild/espressif/esp-idf-release/v4.4/components/bootloader/subproject/components/micro-ecc/micro-ecc'...
  Cloning into '/home/turgu1/Dev/rust-trials/test/.embuild/espressif/esp-idf-release/v4.4/components/bt/controller/lib_esp32'...
  Cloning into '/home/turgu1/Dev/rust-trials/test/.embuild/espressif/esp-idf-release/v4.4/components/bt/controller/lib_esp32c3_family'...
  Cloning into '/home/turgu1/Dev/rust-trials/test/.embuild/espressif/esp-idf-release/v4.4/components/bt/host/nimble/nimble'...
  Cloning into '/home/turgu1/Dev/rust-trials/test/.embuild/espressif/esp-idf-release/v4.4/components/cbor/tinycbor'...
  Cloning into '/home/turgu1/Dev/rust-trials/test/.embuild/espressif/esp-idf-release/v4.4/components/cmock/CMock'...
  Cloning into '/home/turgu1/Dev/rust-trials/test/.embuild/espressif/esp-idf-release/v4.4/components/coap/libcoap'...
  Cloning into '/home/turgu1/Dev/rust-trials/test/.embuild/espressif/esp-idf-release/v4.4/components/esp_phy/lib'...
  Cloning into '/home/turgu1/Dev/rust-trials/test/.embuild/espressif/esp-idf-release/v4.4/components/esp_wifi/lib'...
  Cloning into '/home/turgu1/Dev/rust-trials/test/.embuild/espressif/esp-idf-release/v4.4/components/esptool_py/esptool'...
  Cloning into '/home/turgu1/Dev/rust-trials/test/.embuild/espressif/esp-idf-release/v4.4/components/expat/expat'...
  Cloning into '/home/turgu1/Dev/rust-trials/test/.embuild/espressif/esp-idf-release/v4.4/components/ieee802154/lib'...
  Cloning into '/home/turgu1/Dev/rust-trials/test/.embuild/espressif/esp-idf-release/v4.4/components/json/cJSON'...
  Cloning into '/home/turgu1/Dev/rust-trials/test/.embuild/espressif/esp-idf-release/v4.4/components/libsodium/libsodium'...
  Cloning into '/home/turgu1/Dev/rust-trials/test/.embuild/espressif/esp-idf-release/v4.4/components/lwip/lwip'...
  Cloning into '/home/turgu1/Dev/rust-trials/test/.embuild/espressif/esp-idf-release/v4.4/components/mbedtls/mbedtls'...
  Cloning into '/home/turgu1/Dev/rust-trials/test/.embuild/espressif/esp-idf-release/v4.4/components/mqtt/esp-mqtt'...
  Cloning into '/home/turgu1/Dev/rust-trials/test/.embuild/espressif/esp-idf-release/v4.4/components/nghttp/nghttp2'...
  Cloning into '/home/turgu1/Dev/rust-trials/test/.embuild/espressif/esp-idf-release/v4.4/components/openthread/lib'...
  Cloning into '/home/turgu1/Dev/rust-trials/test/.embuild/espressif/esp-idf-release/v4.4/components/openthread/openthread'...
  Cloning into '/home/turgu1/Dev/rust-trials/test/.embuild/espressif/esp-idf-release/v4.4/components/protobuf-c/protobuf-c'...
  Cloning into '/home/turgu1/Dev/rust-trials/test/.embuild/espressif/esp-idf-release/v4.4/components/spiffs/spiffs'...
  Cloning into '/home/turgu1/Dev/rust-trials/test/.embuild/espressif/esp-idf-release/v4.4/components/tinyusb/tinyusb'...
  Cloning into '/home/turgu1/Dev/rust-trials/test/.embuild/espressif/esp-idf-release/v4.4/components/unity/unity'...
  Cloning into '/home/turgu1/Dev/rust-trials/test/.embuild/espressif/esp-idf-release/v4.4/examples/build_system/cmake/import_lib/main/lib/tinyxml2'...
  Cloning into '/home/turgu1/Dev/rust-trials/test/.embuild/espressif/esp-idf-release/v4.4/examples/peripherals/secure_element/atecc608_ecdsa/components/esp-cryptoauthlib'...
  From https://github.com/espressif/asio
   * branch            f31694c9f1746ba189a4bcae2e34db15135ddb22 -> FETCH_HEAD
  From https://github.com/kmackay/micro-ecc
   * branch            d037ec89546fad14b5c4d5456c2e23a71e554966 -> FETCH_HEAD
  From https://github.com/espressif/esp-nimble
   * branch            1dc1ec6e76b0ab3bf93cc9f1ff7a2a09141e7c61 -> FETCH_HEAD
  From https://github.com/intel/tinycbor
   * branch            7c349dbb6b8d76db39383b226d3ebdf59b8ab37d -> FETCH_HEAD
  From https://github.com/ThrowTheSwitch/CMock
   * branch            eeecc49ce8af123cf8ad40efdb9673e37b56230f -> FETCH_HEAD
  Submodule 'vendor/c_exception' (https://github.com/throwtheswitch/cexception.git) registered for path 'components/cmock/CMock/vendor/c_exception'
  Submodule 'vendor/unity' (https://github.com/throwtheswitch/unity.git) registered for path 'components/cmock/CMock/vendor/unity'
  Cloning into '/home/turgu1/Dev/rust-trials/test/.embuild/espressif/esp-idf-release/v4.4/components/cmock/CMock/vendor/c_exception'...
  Cloning into '/home/turgu1/Dev/rust-trials/test/.embuild/espressif/esp-idf-release/v4.4/components/cmock/CMock/vendor/unity'...
  From https://github.com/throwtheswitch/cexception
   * branch            71b47be7c950f1bf5f7e5303779fa99a16224bb6 -> FETCH_HEAD
  From https://github.com/throwtheswitch/unity
   * branch            cf949f45ca6d172a177b00da21310607b97bc7a7 -> FETCH_HEAD
  From https://github.com/obgm/libcoap
   * branch            3aa11612c143c9734d72022720f33e12506f7a2c -> FETCH_HEAD
  Submodule 'ext/tinydtls' (https://github.com/eclipse/tinydtls.git) registered for path 'components/coap/libcoap/ext/tinydtls'
  Cloning into '/home/turgu1/Dev/rust-trials/test/.embuild/espressif/esp-idf-release/v4.4/components/coap/libcoap/ext/tinydtls'...
  From https://github.com/eclipse/tinydtls
   * branch            59055b8a935bc53bf69d002fc089ad4bd08851b2 -> FETCH_HEAD
  From https://github.com/espressif/esp32-wifi-lib
   * branch            5a0d2aee49633b1a0c0374c2a01ed8c2a10e2fe4 -> FETCH_HEAD
  From https://github.com/espressif/esptool
   * branch            66e1f163a4f9a32041ec48b8aa7ab958831f8410 -> FETCH_HEAD
  From https://github.com/libexpat/libexpat
   * branch            57c7da69b78e3698e112a6b5da19d5109b8232d1 -> FETCH_HEAD
  From https://github.com/espressif/esp-ieee802154-lib
   * branch            f7b5e8059a3bb6f321e79ac3bf2aa4d2a9b93326 -> FETCH_HEAD
  From https://github.com/DaveGamble/cJSON
   * branch            d348621ca93571343a56862df7de4ff3bc9b5667 -> FETCH_HEAD
  From https://github.com/jedisct1/libsodium
   * branch            4f5e89fa84ce1d178a6765b8b46f2b6f91216677 -> FETCH_HEAD
  From https://github.com/espressif/esp-lwip
   * branch            2749568fe15df2003f6c3f37f0dfd44f8f01fcd6 -> FETCH_HEAD
  From https://github.com/espressif/mbedtls
   * branch            8b0e35f2ad477fcc2a267cf434528024b8499085 -> FETCH_HEAD
  From https://github.com/espressif/esp-mqtt
   * branch            89894bd0c611b1392967fe90bb49682eba858383 -> FETCH_HEAD
  From https://github.com/nghttp2/nghttp2
   * branch            8f7b008b158e12de0e58247afd170f127dbb6456 -> FETCH_HEAD
  Submodule 'third-party/mruby' (https://github.com/mruby/mruby) registered for path 'components/nghttp/nghttp2/third-party/mruby'
  Submodule 'third-party/neverbleed' (https://github.com/tatsuhiro-t/neverbleed.git) registered for path 'components/nghttp/nghttp2/third-party/neverbleed'
  Cloning into '/home/turgu1/Dev/rust-trials/test/.embuild/espressif/esp-idf-release/v4.4/components/nghttp/nghttp2/third-party/mruby'...
  Cloning into '/home/turgu1/Dev/rust-trials/test/.embuild/espressif/esp-idf-release/v4.4/components/nghttp/nghttp2/third-party/neverbleed'...
  From https://github.com/mruby/mruby
   * branch            7c91efc1ffda769a5f1a872c646c82b00698f1b8 -> FETCH_HEAD
  From https://github.com/tatsuhiro-t/neverbleed
   * branch            b967ca054f48a36f82d8fcdd32e54ec5144f2751 -> FETCH_HEAD
  From https://github.com/espressif/esp-thread-lib
   * branch            9a8d34d8f698cad2c9468468b473e26a3dda51b9 -> FETCH_HEAD
  From https://github.com/espressif/openthread
   * branch            c36c0e77a2465355bcf13bd7dc718d8c9aa6ff64 -> FETCH_HEAD
  From https://github.com/protobuf-c/protobuf-c
   * branch            dac1a65feac4ad72f612aab99f487056fbcf5c1a -> FETCH_HEAD
  From https://github.com/pellepl/spiffs
   * branch            f5e26c4e933189593a71c6b82cda381a7b21e41c -> FETCH_HEAD
  From https://github.com/espressif/tinyusb
   * branch            c4badd394eda18199c0196ed0be1e2d635f0a5f6 -> FETCH_HEAD
  From https://github.com/ThrowTheSwitch/Unity
   * branch            7d2bf62b7e6afaf38153041a9d53c21aeeca9a25 -> FETCH_HEAD
  From https://github.com/leethomason/tinyxml2
   * branch            7e8e249990ec491ec15990cf95b6d871a66cf64a -> FETCH_HEAD
  From https://github.com/espressif/esp-cryptoauthlib
   * branch            36d0642e66ff5b1c7a291873f24c498ca6ffedef -> FETCH_HEAD
  fatal: No names found, cannot describe anything.
  fatal: No names found, cannot describe anything.
  Error: Could not install esp-idf

  Caused by:
      command '"python3" "/home/turgu1/Dev/rust-trials/test/.embuild/espressif/esp-idf-release/v4.4/tools/idf_tools.py" "--idf-path" "/home/turgu1/Dev/rust-trials/test/.embuild/espressif/esp-idf-release/v4.4" "--quiet" "--non-interactive" "install-python-env"' exited with non-zero status code 1
turgu1 commented 2 years ago

I found the problem: I needed to set the default toolchain to esp: rustup default esp. Please update the README file to indicate that.

Thanks!

MabezDev commented 2 years ago

Are you sure that was it? That shouldn't be needed, as we have this rust-toolchain.toml file to use the esp toolchain.

turgu1 commented 2 years ago

Well... I have tried without selecting the esp toolchain and it worked. Sorry for this. I've tried so many things to get it working that I may have lost the path of actions I have used.

Thanks for your answer! Guy