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 in cargo build #52

Closed Jzow closed 1 year ago

Jzow commented 1 year ago

The following is the error log:

error: failed to run custom build command for `esp-idf-sys v0.31.8`

Caused by:
  process didn't exit successfully: `/Users/jameszow/Documents/RustWorkSpace/esp-ruc/target/debug/build/esp-idf-sys-af0cc39900e7c900/build-script-build` (exit status: 1)
  --- stdout
  cargo:rerun-if-env-changed=ESP_IDF_TOOLS_INSTALL_DIR
  cargo:rerun-if-env-changed=ESP_IDF_SDKCONFIG
  cargo:rerun-if-env-changed=ESP_IDF_SDKCONFIG_DEFAULTS
  cargo:rerun-if-env-changed=MCU
  cargo:rerun-if-env-changed=ESP_IDF_SYS_ROOT_CRATE
  cargo:rerun-if-env-changed=ESP_IDF_VERSION
  cargo:rerun-if-env-changed=ESP_IDF_REPOSITORY
  cargo:rerun-if-env-changed=ESP_IDF_CMAKE_GENERATOR
  cargo:rerun-if-env-changed=IDF_PATH
  cargo:rerun-if-env-changed=ESP_IDF_COMPONENTS

  --- stderr
  Build configuration: BuildConfig {
      esp_idf_tools_install_dir: None,
      esp_idf_sdkconfig: None,
      esp_idf_sdkconfig_defaults: None,
      mcu: None,
      native: NativeConfig {
          esp_idf_version: Some(
              Branch(
                  "release/v4.4",
              ),
          ),
          esp_idf_repository: None,
          esp_idf_cmake_generator: None,
          idf_path: None,
          extra_components: [],
          esp_idf_components: None,
      },
      esp_idf_sys_root_crate: None,
  }
  Using managed esp-idf repository: EspIdfRemote { repo_url: None, git_ref: Branch("release/v4.4") }
  fatal: No names found, cannot describe anything.
  Cloning into '/Users/jameszow/Documents/RustWorkSpace/esp-ruc/.embuild/espressif/esp-idf/release-v4.4'...
Updating files: 100% (9699/9699), done.
  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 '/Users/jameszow/Documents/RustWorkSpace/esp-ruc/.embuild/espressif/esp-idf/release-v4.4/components/asio/asio'...
  Cloning into '/Users/jameszow/Documents/RustWorkSpace/esp-ruc/.embuild/espressif/esp-idf/release-v4.4/components/bootloader/subproject/components/micro-ecc/micro-ecc'...
  Cloning into '/Users/jameszow/Documents/RustWorkSpace/esp-ruc/.embuild/espressif/esp-idf/release-v4.4/components/bt/controller/lib_esp32'...
  Cloning into '/Users/jameszow/Documents/RustWorkSpace/esp-ruc/.embuild/espressif/esp-idf/release-v4.4/components/bt/controller/lib_esp32c3_family'...
  Cloning into '/Users/jameszow/Documents/RustWorkSpace/esp-ruc/.embuild/espressif/esp-idf/release-v4.4/components/bt/host/nimble/nimble'...
  fatal: unable to access 'https://github.com/espressif/esp-nimble.git/': LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443 
  fatal: clone of 'https://github.com/espressif/esp-nimble.git' into submodule path '/Users/jameszow/Documents/RustWorkSpace/esp-ruc/.embuild/espressif/esp-idf/release-v4.4/components/bt/host/nimble/nimble' failed
  Failed to clone 'components/bt/host/nimble/nimble'. Retry scheduled
  Cloning into '/Users/jameszow/Documents/RustWorkSpace/esp-ruc/.embuild/espressif/esp-idf/release-v4.4/components/cbor/tinycbor'...
  Cloning into '/Users/jameszow/Documents/RustWorkSpace/esp-ruc/.embuild/espressif/esp-idf/release-v4.4/components/cmock/CMock'...
  Cloning into '/Users/jameszow/Documents/RustWorkSpace/esp-ruc/.embuild/espressif/esp-idf/release-v4.4/components/coap/libcoap'...
  Cloning into '/Users/jameszow/Documents/RustWorkSpace/esp-ruc/.embuild/espressif/esp-idf/release-v4.4/components/esp_phy/lib'...
  fatal: unable to access 'https://github.com/espressif/esp-phy-lib.git/': LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443 
  fatal: clone of 'https://github.com/espressif/esp-phy-lib.git' into submodule path '/Users/jameszow/Documents/RustWorkSpace/esp-ruc/.embuild/espressif/esp-idf/release-v4.4/components/esp_phy/lib' failed
  Failed to clone 'components/esp_phy/lib'. Retry scheduled
  Cloning into '/Users/jameszow/Documents/RustWorkSpace/esp-ruc/.embuild/espressif/esp-idf/release-v4.4/components/esp_wifi/lib'...
  Cloning into '/Users/jameszow/Documents/RustWorkSpace/esp-ruc/.embuild/espressif/esp-idf/release-v4.4/components/esptool_py/esptool'...
  fatal: unable to access 'https://github.com/espressif/esptool.git/': LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443 
  fatal: clone of 'https://github.com/espressif/esptool.git' into submodule path '/Users/jameszow/Documents/RustWorkSpace/esp-ruc/.embuild/espressif/esp-idf/release-v4.4/components/esptool_py/esptool' failed
  Failed to clone 'components/esptool_py/esptool'. Retry scheduled
  Cloning into '/Users/jameszow/Documents/RustWorkSpace/esp-ruc/.embuild/espressif/esp-idf/release-v4.4/components/expat/expat'...
  fatal: unable to access 'https://github.com/libexpat/libexpat.git/': LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443 
  fatal: clone of 'https://github.com/libexpat/libexpat.git' into submodule path '/Users/jameszow/Documents/RustWorkSpace/esp-ruc/.embuild/espressif/esp-idf/release-v4.4/components/expat/expat' failed
  Failed to clone 'components/expat/expat'. Retry scheduled
  Cloning into '/Users/jameszow/Documents/RustWorkSpace/esp-ruc/.embuild/espressif/esp-idf/release-v4.4/components/ieee802154/lib'...
  error: could not lock config file /Users/jameszow/Documents/RustWorkSpace/esp-ruc/.embuild/espressif/esp-idf/release-v4.4/.git/modules/components/ieee802154/lib/config: No such file or directory
  fatal: could not set 'core.repositoryformatversion' to '0'
  fatal: clone of 'https://github.com/espressif/esp-ieee802154-lib.git' into submodule path '/Users/jameszow/Documents/RustWorkSpace/esp-ruc/.embuild/espressif/esp-idf/release-v4.4/components/ieee802154/lib' failed
  Failed to clone 'components/ieee802154/lib'. Retry scheduled
  fatal: Unable to read current working directory: No such file or directory
  Failed to clone 'components/json/cJSON'. Retry scheduled
  fatal: Unable to read current working directory: No such file or directory
  Failed to clone 'components/libsodium/libsodium'. Retry scheduled
  fatal: Unable to read current working directory: No such file or directory
  Failed to clone 'components/lwip/lwip'. Retry scheduled
  fatal: Unable to read current working directory: No such file or directory
  Failed to clone 'components/mbedtls/mbedtls'. Retry scheduled
  fatal: Unable to read current working directory: No such file or directory
  Failed to clone 'components/mqtt/esp-mqtt'. Retry scheduled
  fatal: Unable to read current working directory: No such file or directory
  Failed to clone 'components/nghttp/nghttp2'. Retry scheduled
  fatal: Unable to read current working directory: No such file or directory
  Failed to clone 'components/openthread/lib'. Retry scheduled
  fatal: Unable to read current working directory: No such file or directory
  Failed to clone 'components/openthread/openthread'. Retry scheduled
  fatal: Unable to read current working directory: No such file or directory
  Failed to clone 'components/protobuf-c/protobuf-c'. Retry scheduled
  fatal: Unable to read current working directory: No such file or directory
  Failed to clone 'components/spiffs/spiffs'. Retry scheduled
  fatal: Unable to read current working directory: No such file or directory
  Failed to clone 'components/tinyusb/tinyusb'. Retry scheduled
  fatal: Unable to read current working directory: No such file or directory
  Failed to clone 'components/unity/unity'. Retry scheduled
  fatal: Unable to read current working directory: No such file or directory
  Failed to clone 'examples/build_system/cmake/import_lib/main/lib/tinyxml2'. Retry scheduled
  fatal: Unable to read current working directory: No such file or directory
  Failed to clone 'examples/peripherals/secure_element/atecc608_ecdsa/components/esp-cryptoauthlib'. Retry scheduled
  fatal: Unable to read current working directory: No such file or directory
  Failed to clone 'components/bt/host/nimble/nimble' a second time, aborting
  Error: Could not install esp-idf

  Caused by:
      command '"git" "clone" "--recursive" "--depth" "1" "--shallow-submodules" "--branch" "release/v4.4" "https://github.com/espressif/esp-idf.git" "/Users/jameszow/Documents/RustWorkSpace/esp-ruc/.embuild/espressif/esp-idf/release-v4.4"' exited with non-zero status code 1