esp-rs / rust-build

Installation tools and workflows for deploying/building Rust fork esp-rs/rust with Xtensa and RISC-V support
MIT License
253 stars 33 forks source link

SOLVED: `cargo build` fails on colima arm container on M1 Mac #246

Closed noahbliss closed 1 year ago

noahbliss commented 1 year ago

Hey all. I have an M1 Mac running a template build directory. When using the latest (the only version I have tried) version of the docker on dockerhub, the initial cargo build fails with the following error. Any ideas? Any details I need to provide in addition?

Thanks!

  }
  Using managed esp-idf repository: RemoteSdk { repo_url: None, git_ref: Tag("v5.1.1") }
  Using esp-idf v5.1.1 at '/mnt/code/.embuild/espressif/esp-idf/v5.1.1'
  Compiler supported targets: xtensa-esp32s3-elf

  gmake[2]: Warning: File 'esp-idf/esp_https_ota/CMakeFiles/__idf_esp_https_ota.dir/compiler_depend.make' has modification time 0.38 s in the future
  gmake[2]: warning:  Clock skew detected.  Your build may be incomplete.
  gmake[2]: Warning: File 'esp-idf/esp_http_server/CMakeFiles/__idf_esp_http_server.dir/compiler_depend.make' has modification time 0.32 s in the future
  Compiler supported targets: xtensa-esp32s3-elf

  gmake[4]: Warning: File 'CMakeFiles/Makefile2' has modification time 0.48 s in the future
  gmake[5]: Warning: File 'esp-idf/log/CMakeFiles/__idf_log.dir/compiler_depend.make' has modification time 0.34 s in the future
  gmake[5]: warning:  Clock skew detected.  Your build may be incomplete.
  gmake[5]: Warning: File 'esp-idf/esp_common/CMakeFiles/__idf_esp_common.dir/compiler_depend.make' has modification time 0.73 s in the future
  gmake[2]: warning:  Clock skew detected.  Your build may be incomplete.
  gmake[2]: Warning: File 'esp-idf/esp_http_client/CMakeFiles/__idf_esp_http_client.dir/compiler_depend.make' has modification time 0.0056 s in the future
  gmake[5]: warning:  Clock skew detected.  Your build may be incomplete.
  gmake[5]: Warning: File 'esp-idf/esp_hw_support/CMakeFiles/__idf_esp_hw_support.dir/compiler_depend.make' has modification time 0.56 s in the future
  gmake[5]: warning:  Clock skew detected.  Your build may be incomplete.
  gmake[5]: Warning: File 'esp-idf/esp_system/CMakeFiles/__idf_esp_system.dir/compiler_depend.make' has modification time 0.29 s in the future
  gmake[5]: warning:  Clock skew detected.  Your build may be incomplete.
  gmake[5]: Warning: File 'esp-idf/efuse/CMakeFiles/__idf_efuse.dir/compiler_depend.make' has modification time 0.33 s in the future
  gmake[2]: warning:  Clock skew detected.  Your build may be incomplete.
  gmake[2]: Warning: File 'esp-idf/tcp_transport/CMakeFiles/__idf_tcp_transport.dir/compiler_depend.make' has modification time 0.43 s in the future
  gmake[5]: warning:  Clock skew detected.  Your build may be incomplete.
  gmake[5]: Warning: File 'esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/compiler_depend.make' has modification time 0.4 s in the future
  gmake[2]: warning:  Clock skew detected.  Your build may be incomplete.
  gmake[2]: Warning: File 'esp-idf/esp_gdbstub/CMakeFiles/__idf_esp_gdbstub.dir/compiler_depend.make' has modification time 0.085 s in the future
  gmake[5]: warning:  Clock skew detected.  Your build may be incomplete.
  gmake[5]: Warning: File 'esp-idf/esp_app_format/CMakeFiles/__idf_esp_app_format.dir/compiler_depend.make' has modification time 0.56 s in the future
  gmake[5]: warning:  Clock skew detected.  Your build may be incomplete.
  gmake[5]: Warning: File 'esp-idf/spi_flash/CMakeFiles/__idf_spi_flash.dir/compiler_depend.make' has modification time 0.66 s in the future
  gmake[5]: warning:  Clock skew detected.  Your build may be incomplete.
  gmake[5]: Warning: File 'esp-idf/hal/CMakeFiles/__idf_hal.dir/compiler_depend.make' has modification time 0.41 s in the future
  gmake[2]: warning:  Clock skew detected.  Your build may be incomplete.
  gmake[2]: Warning: File 'esp-idf/esp_eth/CMakeFiles/__idf_esp_eth.dir/compiler_depend.make' has modification time 0.21 s in the future
  gmake[5]: warning:  Clock skew detected.  Your build may be incomplete.
  gmake[5]: Warning: File 'esp-idf/micro-ecc/CMakeFiles/__idf_micro-ecc.dir/compiler_depend.make' has modification time 0.67 s in the future
  gmake[5]: warning:  Clock skew detected.  Your build may be incomplete.
  gmake[5]: Warning: File 'esp-idf/soc/CMakeFiles/__idf_soc.dir/compiler_depend.make' has modification time 0.51 s in the future
  gmake[2]: warning:  Clock skew detected.  Your build may be incomplete.
  gmake[5]: warning:  Clock skew detected.  Your build may be incomplete.
  gmake[5]: Warning: File 'esp-idf/xtensa/CMakeFiles/__idf_xtensa.dir/compiler_depend.make' has modification time 0.31 s in the future
  gmake[5]: warning:  Clock skew detected.  Your build may be incomplete.
  gmake[5]: Warning: File 'esp-idf/main/CMakeFiles/__idf_main.dir/compiler_depend.make' has modification time 0.38 s in the future
  gmake[5]: warning:  Clock skew detected.  Your build may be incomplete.
  gmake[5]: Warning: File 'CMakeFiles/bootloader.elf.dir/compiler_depend.make' has modification time 0.48 s in the future
  gmake[5]: warning:  Clock skew detected.  Your build may be incomplete.
  gmake[4]: warning:  Clock skew detected.  Your build may be incomplete.
  gmake[2]: Warning: File 'esp-idf/http_parser/CMakeFiles/__idf_http_parser.dir/compiler_depend.make' has modification time 0.55 s in the future
  gmake[2]: warning:  Clock skew detected.  Your build may be incomplete.
  gmake[2]: Warning: File 'esp-idf/esp_wifi/CMakeFiles/__idf_esp_wifi.dir/compiler_depend.make' has modification time 0.0038 s in the future
  gmake[2]: warning:  Clock skew detected.  Your build may be incomplete.
  gmake[2]: Warning: File 'esp-idf/esp_coex/CMakeFiles/__idf_esp_coex.dir/compiler_depend.make' has modification time 0.54 s in the future
  gmake[2]: warning:  Clock skew detected.  Your build may be incomplete.
  gmake[2]: Warning: File 'esp-idf/esp_phy/CMakeFiles/__idf_esp_phy.dir/compiler_depend.make' has modification time 0.52 s in the future
  gmake[2]: warning:  Clock skew detected.  Your build may be incomplete.
  gmake[2]: Warning: File 'esp-idf/nvs_flash/CMakeFiles/__idf_nvs_flash.dir/compiler_depend.make' has modification time 0.32 s in the future
  gmake[2]: warning:  Clock skew detected.  Your build may be incomplete.
  gmake[2]: Warning: File 'esp-idf/esp_event/CMakeFiles/__idf_esp_event.dir/compiler_depend.make' has modification time 0.13 s in the future
  gmake[2]: warning:  Clock skew detected.  Your build may be incomplete.
  gmake[2]: Warning: File 'esp-idf/esp_common/CMakeFiles/__idf_esp_common.dir/compiler_depend.make' has modification time 0.44 s in the future
  gmake[2]: warning:  Clock skew detected.  Your build may be incomplete.
  gmake[2]: Warning: File 'esp-idf/freertos/CMakeFiles/__idf_freertos.dir/compiler_depend.make' has modification time 0.37 s in the future
  gmake[2]: warning:  Clock skew detected.  Your build may be incomplete.
  gmake[2]: Warning: File 'esp-idf/soc/CMakeFiles/__idf_soc.dir/compiler_depend.make' has modification time 0.13 s in the future
  gmake[2]: warning:  Clock skew detected.  Your build may be incomplete.
  gmake[2]: Warning: File 'esp-idf/heap/CMakeFiles/__idf_heap.dir/compiler_depend.make' has modification time 0.54 s in the future
  gmake[2]: warning:  Clock skew detected.  Your build may be incomplete.
  gmake[2]: Warning: File 'esp-idf/log/CMakeFiles/__idf_log.dir/compiler_depend.make' has modification time 0.15 s in the future
  gmake[2]: warning:  Clock skew detected.  Your build may be incomplete.
  gmake[2]: Warning: File 'esp-idf/esp_rom/CMakeFiles/__idf_esp_rom.dir/compiler_depend.make' has modification time 0.073 s in the future
  gmake[2]: warning:  Clock skew detected.  Your build may be incomplete.
  gmake[2]: Warning: File 'esp-idf/pthread/CMakeFiles/__idf_pthread.dir/compiler_depend.make' has modification time 0.57 s in the future
  gmake[2]: warning:  Clock skew detected.  Your build may be incomplete.
  gmake[2]: Warning: File 'esp-idf/esp_mm/CMakeFiles/__idf_esp_mm.dir/compiler_depend.make' has modification time 0.6 s in the future
  gmake[2]: warning:  Clock skew detected.  Your build may be incomplete.
  gmake[2]: Warning: File 'esp-idf/esp_partition/CMakeFiles/__idf_esp_partition.dir/compiler_depend.make' has modification time 0.21 s in the future
  gmake[2]: warning:  Clock skew detected.  Your build may be incomplete.
  gmake[2]: Warning: File 'esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/compiler_depend.make' has modification time 0.58 s in the future
  gmake[2]: warning:  Clock skew detected.  Your build may be incomplete.
  gmake[2]: Warning: File 'esp-idf/esp_app_format/CMakeFiles/__idf_esp_app_format.dir/compiler_depend.make' has modification time 0.31 s in the future
  gmake[2]: warning:  Clock skew detected.  Your build may be incomplete.
  gmake[2]: Warning: File 'esp-idf/mbedtls/mbedtls/library/CMakeFiles/mbedtls.dir/compiler_depend.make' has modification time 0.12 s in the future
  gmake[2]: warning:  Clock skew detected.  Your build may be incomplete.
  gmake[2]: Warning: File 'esp-idf/mbedtls/CMakeFiles/__idf_mbedtls.dir/compiler_depend.make' has modification time 0.61 s in the future
  gmake[2]: warning:  Clock skew detected.  Your build may be incomplete.
  gmake[2]: Warning: File 'esp-idf/esp_pm/CMakeFiles/__idf_esp_pm.dir/compiler_depend.make' has modification time 0.18 s in the future
  gmake[2]: warning:  Clock skew detected.  Your build may be incomplete.
  gmake[2]: Warning: File 'esp-idf/efuse/CMakeFiles/__idf_efuse.dir/compiler_depend.make' has modification time 0.26 s in the future
  gmake[2]: warning:  Clock skew detected.  Your build may be incomplete.
  gmake[2]: Warning: File 'esp-idf/esp_ringbuf/CMakeFiles/__idf_esp_ringbuf.dir/compiler_depend.make' has modification time 0.39 s in the future
  gmake[2]: warning:  Clock skew detected.  Your build may be incomplete.
  gmake[2]: Warning: File 'esp-idf/json/CMakeFiles/__idf_json.dir/compiler_depend.make' has modification time 0.51 s in the future
  gmake[2]: Warning: File 'esp-idf/console/CMakeFiles/__idf_console.dir/compiler_depend.make' has modification time 0.43 s in the future
  gmake[2]: warning:  Clock skew detected.  Your build may be incomplete.
  gmake[2]: Warning: File 'esp-idf/protobuf-c/CMakeFiles/__idf_protobuf-c.dir/compiler_depend.make' has modification time 0.25 s in the future
  gmake[2]: warning:  Clock skew detected.  Your build may be incomplete.
  gmake[2]: Warning: File 'esp-idf/esp_hid/CMakeFiles/__idf_esp_hid.dir/compiler_depend.make' has modification time 0.12 s in the future
  gmake[2]: warning:  Clock skew detected.  Your build may be incomplete.
  gmake[2]: Warning: File 'esp-idf/esp_lcd/CMakeFiles/__idf_esp_lcd.dir/compiler_depend.make' has modification time 0.6 s in the future
  gmake[2]: warning:  Clock skew detected.  Your build may be incomplete.
  gmake[2]: Warning: File 'esp-idf/espcoredump/CMakeFiles/__idf_espcoredump.dir/compiler_depend.make' has modification time 0.58 s in the future
  gmake[2]: warning:  Clock skew detected.  Your build may be incomplete.
  gmake[2]: Warning: File 'esp-idf/wear_levelling/CMakeFiles/__idf_wear_levelling.dir/compiler_depend.make' has modification time 0.45 s in the future
  gmake[2]: warning:  Clock skew detected.  Your build may be incomplete.
  gmake[2]: Warning: File 'esp-idf/sdmmc/CMakeFiles/__idf_sdmmc.dir/compiler_depend.make' has modification time 0.53 s in the future
  gmake[2]: warning:  Clock skew detected.  Your build may be incomplete.
  gmake[2]: Warning: File 'esp-idf/mqtt/CMakeFiles/__idf_mqtt.dir/compiler_depend.make' has modification time 0.33 s in the future
  gmake[2]: warning:  Clock skew detected.  Your build may be incomplete.
  gmake[2]: Warning: File 'esp-idf/perfmon/CMakeFiles/__idf_perfmon.dir/compiler_depend.make' has modification time 0.26 s in the future
  gmake[2]: warning:  Clock skew detected.  Your build may be incomplete.
  gmake[2]: Warning: File 'esp-idf/spiffs/CMakeFiles/__idf_spiffs.dir/compiler_depend.make' has modification time 0.39 s in the future
  gmake[2]: warning:  Clock skew detected.  Your build may be incomplete.
  gmake[2]: Warning: File 'esp-idf/touch_element/CMakeFiles/__idf_touch_element.dir/compiler_depend.make' has modification time 0.14 s in the future
  gmake[2]: warning:  Clock skew detected.  Your build may be incomplete.
  gmake[2]: warning:  Clock skew detected.  Your build may be incomplete.
  gmake[2]: Warning: File 'esp-idf/protocomm/CMakeFiles/__idf_protocomm.dir/compiler_depend.make' has modification time 0.62 s in the future
  gmake[2]: Warning: File 'esp-idf/cmock/CMakeFiles/__idf_cmock.dir/compiler_depend.make' has modification time 0.49 s in the future
  gmake[2]: warning:  Clock skew detected.  Your build may be incomplete.
  gmake[2]: Warning: File 'esp-idf/fatfs/CMakeFiles/__idf_fatfs.dir/compiler_depend.make' has modification time 0.37 s in the future
  gmake[2]: warning:  Clock skew detected.  Your build may be incomplete.
  gmake[2]: Warning: File 'esp-idf/wifi_provisioning/CMakeFiles/__idf_wifi_provisioning.dir/compiler_depend.make' has modification time 0.67 s in the future
  gmake[2]: warning:  Clock skew detected.  Your build may be incomplete.
  gmake[2]: Warning: File 'esp-idf/esp_local_ctrl/CMakeFiles/__idf_esp_local_ctrl.dir/compiler_depend.make' has modification time 0.27 s in the future
  gmake[2]: warning:  Clock skew detected.  Your build may be incomplete.
  gmake[2]: warning:  Clock skew detected.  Your build may be incomplete.
  gmake[2]: Warning: File 'esp-idf/main/CMakeFiles/__idf_main.dir/compiler_depend.make' has modification time 0.6 s in the future
  gmake[2]: warning:  Clock skew detected.  Your build may be incomplete.
  gmake[2]: Warning: File 'CMakeFiles/libespidf.elf.dir/compiler_depend.make' has modification time 0.5 s in the future
  /home/esp/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld: cannot find esp-idf/esp_https_ota/libesp_https_ota.a: Operation not permitted
  /home/esp/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld: cannot find esp-idf/ulp/libulp.a: Operation not permitted
  /home/esp/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld: cannot find esp-idf/mbedtls/mbedtls/library/libmbedtls.a: Operation not permitted
  /home/esp/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld: cannot find esp-idf/mbedtls/mbedtls/library/libmbedcrypto.a: Operation not permitted
  /home/esp/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld: cannot find esp-idf/mbedtls/mbedtls/library/libmbedx509.a: Operation not permitted
  /home/esp/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld: cannot find /mnt/code/.embuild/espressif/esp-idf/v5.1.1/components/esp_wifi/lib/esp32s3/libcore.a: Operation not permitted
  /home/esp/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld: cannot find /mnt/code/.embuild/espressif/esp-idf/v5.1.1/components/esp_wifi/lib/esp32s3/libespnow.a: Operation not permitted
  /home/esp/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld: cannot find /mnt/code/.embuild/espressif/esp-idf/v5.1.1/components/esp_wifi/lib/esp32s3/libmesh.a: Operation not permitted
  /home/esp/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld: cannot find /mnt/code/.embuild/espressif/esp-idf/v5.1.1/components/esp_wifi/lib/esp32s3/libnet80211.a: Operation not permitted
  /home/esp/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld: cannot find /mnt/code/.embuild/espressif/esp-idf/v5.1.1/components/esp_wifi/lib/esp32s3/libpp.a: Operation not permitted
  /home/esp/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld: cannot find /mnt/code/.embuild/espressif/esp-idf/v5.1.1/components/esp_wifi/lib/esp32s3/libsmartconfig.a: Operation not permitted
  /home/esp/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld: cannot find /mnt/code/.embuild/espressif/esp-idf/v5.1.1/components/esp_wifi/lib/esp32s3/libwapi.a: Operation not permitted
  /home/esp/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld: cannot find esp-idf/xtensa/libxtensa.a: Operation not permitted
  /home/esp/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld: cannot find esp-idf/esp_ringbuf/libesp_ringbuf.a: Operation not permitted
  /home/esp/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld: cannot find esp-idf/efuse/libefuse.a: Operation not permitted
  /home/esp/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld: cannot find esp-idf/driver/libdriver.a: Operation not permitted
  /home/esp/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld: cannot find esp-idf/esp_pm/libesp_pm.a: Operation not permitted
  /home/esp/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld: cannot find esp-idf/mbedtls/libmbedtls.a: Operation not permitted
  /home/esp/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld: cannot find esp-idf/esp_app_format/libesp_app_format.a: Operation not permitted
  /home/esp/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld: cannot find esp-idf/bootloader_support/libbootloader_support.a: Operation not permitted
  /home/esp/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld: cannot find esp-idf/esp_partition/libesp_partition.a: Operation not permitted
  /home/esp/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld: cannot find esp-idf/app_update/libapp_update.a: Operation not permitted
  /home/esp/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld: cannot find esp-idf/esp_mm/libesp_mm.a: Operation not permitted
  /home/esp/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld: cannot find esp-idf/spi_flash/libspi_flash.a: Operation not permitted
  /home/esp/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld: cannot find esp-idf/pthread/libpthread.a: Operation not permitted
  /home/esp/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld: cannot find esp-idf/esp_system/libesp_system.a: Operation not permitted
  /home/esp/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld: cannot find esp-idf/esp_rom/libesp_rom.a: Operation not permitted
  /home/esp/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld: cannot find esp-idf/hal/libhal.a: Operation not permitted
  /home/esp/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld: cannot find esp-idf/log/liblog.a: Operation not permitted
  /home/esp/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld: cannot find esp-idf/heap/libheap.a: Operation not permitted
  /home/esp/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld: cannot find esp-idf/soc/libsoc.a: Operation not permitted
  /home/esp/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld: cannot find esp-idf/esp_hw_support/libesp_hw_support.a: Operation not permitted
  /home/esp/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld: cannot find esp-idf/freertos/libfreertos.a: Operation not permitted
  /home/esp/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld: cannot find esp-idf/newlib/libnewlib.a: Operation not permitted
  /home/esp/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld: cannot find esp-idf/cxx/libcxx.a: Operation not permitted
  /home/esp/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld: cannot find esp-idf/esp_common/libesp_common.a: Operation not permitted
  /home/esp/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld: cannot find esp-idf/esp_timer/libesp_timer.a: Operation not permitted
  /home/esp/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld: cannot find esp-idf/esp_event/libesp_event.a: Operation not permitted
  /home/esp/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld: cannot find esp-idf/nvs_flash/libnvs_flash.a: Operation not permitted
  /home/esp/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld: cannot find esp-idf/esp_phy/libesp_phy.a: Operation not permitted
  /home/esp/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld: cannot find esp-idf/vfs/libvfs.a: Operation not permitted
  /home/esp/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld: cannot find esp-idf/lwip/liblwip.a: Operation not permitted
  /home/esp/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld: cannot find esp-idf/esp_netif/libesp_netif.a: Operation not permitted
  /home/esp/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld: cannot find esp-idf/wpa_supplicant/libwpa_supplicant.a: Operation not permitted
  /home/esp/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld: cannot find esp-idf/esp_coex/libesp_coex.a: Operation not permitted
  /home/esp/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld: cannot find esp-idf/esp_wifi/libesp_wifi.a: Operation not permitted
  /home/esp/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld: cannot find esp-idf/http_parser/libhttp_parser.a: Operation not permitted
  /home/esp/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld: cannot find esp-idf/esp-tls/libesp-tls.a: Operation not permitted
  /home/esp/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld: cannot find esp-idf/esp_adc/libesp_adc.a: Operation not permitted
  /home/esp/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld: cannot find esp-idf/esp_eth/libesp_eth.a: Operation not permitted
  /home/esp/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld: cannot find esp-idf/esp_gdbstub/libesp_gdbstub.a: Operation not permitted
  /home/esp/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld: cannot find esp-idf/tcp_transport/libtcp_transport.a: Operation not permitted
  /home/esp/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld: cannot find esp-idf/esp_http_client/libesp_http_client.a: Operation not permitted
  /home/esp/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld: cannot find esp-idf/esp_http_server/libesp_http_server.a: Operation not permitted
  /home/esp/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld: cannot find esp-idf/esp_https_ota/libesp_https_ota.a: Operation not permitted
  /home/esp/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld: cannot find esp-idf/ulp/libulp.a: Operation not permitted
  /home/esp/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld: cannot find esp-idf/mbedtls/mbedtls/library/libmbedtls.a: Operation not permitted
  /home/esp/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld: cannot find esp-idf/mbedtls/mbedtls/library/libmbedcrypto.a: Operation not permitted
  /home/esp/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld: cannot find esp-idf/mbedtls/mbedtls/library/libmbedx509.a: Operation not permitted
  /home/esp/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld: cannot find /mnt/code/.embuild/espressif/esp-idf/v5.1.1/components/esp_wifi/lib/esp32s3/libcore.a: Operation not permitted
  /home/esp/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld: cannot find /mnt/code/.embuild/espressif/esp-idf/v5.1.1/components/esp_wifi/lib/esp32s3/libespnow.a: Operation not permitted
  /home/esp/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld: cannot find /mnt/code/.embuild/espressif/esp-idf/v5.1.1/components/esp_wifi/lib/esp32s3/libmesh.a: Operation not permitted
  /home/esp/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld: cannot find /mnt/code/.embuild/espressif/esp-idf/v5.1.1/components/esp_wifi/lib/esp32s3/libnet80211.a: Operation not permitted
  /home/esp/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld: cannot find /mnt/code/.embuild/espressif/esp-idf/v5.1.1/components/esp_wifi/lib/esp32s3/libpp.a: Operation not permitted
  /home/esp/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld: cannot find /mnt/code/.embuild/espressif/esp-idf/v5.1.1/components/esp_wifi/lib/esp32s3/libsmartconfig.a: Operation not permitted
  /home/esp/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld: cannot find /mnt/code/.embuild/espressif/esp-idf/v5.1.1/components/esp_wifi/lib/esp32s3/libwapi.a: Operation not permitted
  /home/esp/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld: cannot find esp-idf/xtensa/libxtensa.a: Operation not permitted
  /home/esp/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld: cannot find esp-idf/esp_ringbuf/libesp_ringbuf.a: Operation not permitted
  /home/esp/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld: cannot find esp-idf/efuse/libefuse.a: Operation not permitted
  /home/esp/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld: cannot find esp-idf/driver/libdriver.a: Operation not permitted
  /home/esp/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld: cannot find esp-idf/esp_pm/libesp_pm.a: Operation not permitted
  /home/esp/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld: cannot find esp-idf/mbedtls/libmbedtls.a: Operation not permitted
  /home/esp/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld: cannot find esp-idf/esp_app_format/libesp_app_format.a: Operation not permitted
  /home/esp/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld: cannot find esp-idf/bootloader_support/libbootloader_support.a: Operation not permitted
  /home/esp/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld: cannot find esp-idf/esp_partition/libesp_partition.a: Operation not permitted
  /home/esp/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld: cannot find esp-idf/app_update/libapp_update.a: Operation not permitted
  /home/esp/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld: cannot find esp-idf/esp_mm/libesp_mm.a: Operation not permitted
  /home/esp/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld: cannot find esp-idf/spi_flash/libspi_flash.a: Operation not permitted
  /home/esp/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld: cannot find esp-idf/pthread/libpthread.a: Operation not permitted
  /home/esp/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld: cannot find esp-idf/esp_system/libesp_system.a: Operation not permitted
  /home/esp/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld: cannot find esp-idf/esp_rom/libesp_rom.a: Operation not permitted
  /home/esp/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld: cannot find esp-idf/hal/libhal.a: Operation not permitted
  /home/esp/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld: cannot find esp-idf/log/liblog.a: Operation not permitted
  /home/esp/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld: cannot find esp-idf/heap/libheap.a: Operation not permitted
  /home/esp/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld: cannot find esp-idf/soc/libsoc.a: Operation not permitted
  /home/esp/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld: cannot find esp-idf/esp_hw_support/libesp_hw_support.a: Operation not permitted
  /home/esp/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld: cannot find esp-idf/freertos/libfreertos.a: Operation not permitted
  /home/esp/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld: cannot find esp-idf/newlib/libnewlib.a: Operation not permitted
  /home/esp/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld: cannot find esp-idf/cxx/libcxx.a: Operation not permitted
  /home/esp/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld: cannot find esp-idf/esp_common/libesp_common.a: Operation not permitted
  /home/esp/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld: cannot find esp-idf/esp_timer/libesp_timer.a: Operation not permitted
  /home/esp/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld: cannot find esp-idf/esp_event/libesp_event.a: Operation not permitted
  /home/esp/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld: cannot find esp-idf/nvs_flash/libnvs_flash.a: Operation not permitted
  /home/esp/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld: cannot find esp-idf/esp_phy/libesp_phy.a: Operation not permitted
  /home/esp/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld: cannot find esp-idf/vfs/libvfs.a: Operation not permitted
  /home/esp/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld: cannot find esp-idf/lwip/liblwip.a: Operation not permitted
  /home/esp/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld: cannot find esp-idf/esp_netif/libesp_netif.a: Operation not permitted
  /home/esp/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld: cannot find esp-idf/wpa_supplicant/libwpa_supplicant.a: Operation not permitted
  /home/esp/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld: cannot find esp-idf/esp_coex/libesp_coex.a: Operation not permitted
  /home/esp/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld: cannot find esp-idf/esp_wifi/libesp_wifi.a: Operation not permitted
  /home/esp/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld: cannot find esp-idf/http_parser/libhttp_parser.a: Operation not permitted
  /home/esp/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld: cannot find esp-idf/esp-tls/libesp-tls.a: Operation not permitted
  /home/esp/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld: cannot find esp-idf/esp_adc/libesp_adc.a: Operation not permitted
  /home/esp/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld: cannot find esp-idf/esp_eth/libesp_eth.a: Operation not permitted
  /home/esp/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld: cannot find esp-idf/esp_gdbstub/libesp_gdbstub.a: Operation not permitted
  /home/esp/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld: cannot find esp-idf/tcp_transport/libtcp_transport.a: Operation not permitted
  /home/esp/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld: cannot find esp-idf/esp_http_client/libesp_http_client.a: Operation not permitted
  /home/esp/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld: cannot find esp-idf/esp_http_server/libesp_http_server.a: Operation not permitted
  /home/esp/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld: cannot find esp-idf/esp_https_ota/libesp_https_ota.a: Operation not permitted
  /home/esp/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld: cannot find esp-idf/ulp/libulp.a: Operation not permitted
  /home/esp/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld: cannot find esp-idf/mbedtls/mbedtls/library/libmbedtls.a: Operation not permitted
  /home/esp/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld: cannot find esp-idf/mbedtls/mbedtls/library/libmbedcrypto.a: Operation not permitted
  /home/esp/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld: cannot find esp-idf/mbedtls/mbedtls/library/libmbedx509.a: Operation not permitted
  /home/esp/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld: cannot find /mnt/code/.embuild/espressif/esp-idf/v5.1.1/components/esp_wifi/lib/esp32s3/libcore.a: Operation not permitted
  /home/esp/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld: cannot find /mnt/code/.embuild/espressif/esp-idf/v5.1.1/components/esp_wifi/lib/esp32s3/libespnow.a: Operation not permitted
  /home/esp/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld: cannot find /mnt/code/.embuild/espressif/esp-idf/v5.1.1/components/esp_wifi/lib/esp32s3/libmesh.a: Operation not permitted
  /home/esp/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld: cannot find /mnt/code/.embuild/espressif/esp-idf/v5.1.1/components/esp_wifi/lib/esp32s3/libnet80211.a: Operation not permitted
  /home/esp/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld: cannot find /mnt/code/.embuild/espressif/esp-idf/v5.1.1/components/esp_wifi/lib/esp32s3/libpp.a: Operation not permitted
  /home/esp/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld: cannot find /mnt/code/.embuild/espressif/esp-idf/v5.1.1/components/esp_wifi/lib/esp32s3/libsmartconfig.a: Operation not permitted
  /home/esp/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld: cannot find /mnt/code/.embuild/espressif/esp-idf/v5.1.1/components/esp_wifi/lib/esp32s3/libwapi.a: Operation not permitted
  /home/esp/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld: cannot find esp-idf/xtensa/libxtensa.a: Operation not permitted
  /home/esp/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld: cannot find esp-idf/esp_ringbuf/libesp_ringbuf.a: Operation not permitted
  /home/esp/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld: cannot find esp-idf/efuse/libefuse.a: Operation not permitted
  /home/esp/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld: cannot find esp-idf/driver/libdriver.a: Operation not permitted
  /home/esp/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld: cannot find esp-idf/esp_pm/libesp_pm.a: Operation not permitted
  /home/esp/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld: cannot find esp-idf/mbedtls/libmbedtls.a: Operation not permitted
  /home/esp/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld: cannot find esp-idf/esp_app_format/libesp_app_format.a: Operation not permitted
  /home/esp/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld: cannot find esp-idf/bootloader_support/libbootloader_support.a: Operation not permitted
  /home/esp/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld: cannot find esp-idf/esp_partition/libesp_partition.a: Operation not permitted
  /home/esp/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld: cannot find esp-idf/app_update/libapp_update.a: Operation not permitted
  /home/esp/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld: cannot find esp-idf/esp_mm/libesp_mm.a: Operation not permitted
  /home/esp/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld: cannot find esp-idf/spi_flash/libspi_flash.a: Operation not permitted
  /home/esp/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld: cannot find esp-idf/pthread/libpthread.a: Operation not permitted
  /home/esp/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld: cannot find esp-idf/esp_system/libesp_system.a: Operation not permitted
  /home/esp/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld: cannot find esp-idf/esp_rom/libesp_rom.a: Operation not permitted
  /home/esp/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld: cannot find esp-idf/hal/libhal.a: Operation not permitted
  /home/esp/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld: cannot find esp-idf/log/liblog.a: Operation not permitted
  /home/esp/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld: cannot find esp-idf/heap/libheap.a: Operation not permitted
  /home/esp/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld: cannot find esp-idf/soc/libsoc.a: Operation not permitted
  /home/esp/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld: cannot find esp-idf/esp_hw_support/libesp_hw_support.a: Operation not permitted
  /home/esp/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld: cannot find esp-idf/freertos/libfreertos.a: Operation not permitted
  /home/esp/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld: cannot find esp-idf/newlib/libnewlib.a: Operation not permitted
  /home/esp/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld: cannot find esp-idf/cxx/libcxx.a: Operation not permitted
  /home/esp/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld: cannot find esp-idf/esp_common/libesp_common.a: Operation not permitted
  /home/esp/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld: cannot find esp-idf/esp_timer/libesp_timer.a: Operation not permitted
  /home/esp/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld: cannot find esp-idf/esp_event/libesp_event.a: Operation not permitted
  /home/esp/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld: cannot find esp-idf/nvs_flash/libnvs_flash.a: Operation not permitted
  /home/esp/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld: cannot find esp-idf/esp_phy/libesp_phy.a: Operation not permitted
  /home/esp/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld: cannot find esp-idf/vfs/libvfs.a: Operation not permitted
  /home/esp/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld: cannot find esp-idf/lwip/liblwip.a: Operation not permitted
  /home/esp/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld: cannot find esp-idf/esp_netif/libesp_netif.a: Operation not permitted
  /home/esp/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld: cannot find esp-idf/wpa_supplicant/libwpa_supplicant.a: Operation not permitted
  /home/esp/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld: cannot find esp-idf/esp_coex/libesp_coex.a: Operation not permitted
  /home/esp/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld: cannot find esp-idf/esp_wifi/libesp_wifi.a: Operation not permitted
  /home/esp/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld: cannot find esp-idf/http_parser/libhttp_parser.a: Operation not permitted
  /home/esp/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld: cannot find esp-idf/esp-tls/libesp-tls.a: Operation not permitted
  /home/esp/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld: cannot find esp-idf/esp_adc/libesp_adc.a: Operation not permitted
  /home/esp/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld: cannot find esp-idf/esp_eth/libesp_eth.a: Operation not permitted
  /home/esp/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld: cannot find esp-idf/esp_gdbstub/libesp_gdbstub.a: Operation not permitted
  /home/esp/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld: cannot find esp-idf/tcp_transport/libtcp_transport.a: Operation not permitted
  /home/esp/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld: cannot find esp-idf/esp_http_client/libesp_http_client.a: Operation not permitted
  /home/esp/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld: cannot find esp-idf/esp_http_server/libesp_http_server.a: Operation not permitted
  /home/esp/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld: cannot find esp-idf/esp_https_ota/libesp_https_ota.a: Operation not permitted
  /home/esp/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld: cannot find esp-idf/ulp/libulp.a: Operation not permitted
  /home/esp/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld: cannot find esp-idf/mbedtls/mbedtls/library/libmbedtls.a: Operation not permitted
  /home/esp/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld: cannot find esp-idf/mbedtls/mbedtls/library/libmbedcrypto.a: Operation not permitted
  /home/esp/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld: cannot find esp-idf/mbedtls/mbedtls/library/libmbedx509.a: Operation not permitted
  /home/esp/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld: cannot find /mnt/code/.embuild/espressif/esp-idf/v5.1.1/components/esp_wifi/lib/esp32s3/libcore.a: Operation not permitted
  /home/esp/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld: cannot find /mnt/code/.embuild/espressif/esp-idf/v5.1.1/components/esp_wifi/lib/esp32s3/libespnow.a: Operation not permitted
  /home/esp/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld: cannot find /mnt/code/.embuild/espressif/esp-idf/v5.1.1/components/esp_wifi/lib/esp32s3/libmesh.a: Operation not permitted
  /home/esp/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld: cannot find /mnt/code/.embuild/espressif/esp-idf/v5.1.1/components/esp_wifi/lib/esp32s3/libnet80211.a: Operation not permitted
  /home/esp/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld: cannot find /mnt/code/.embuild/espressif/esp-idf/v5.1.1/components/esp_wifi/lib/esp32s3/libpp.a: Operation not permitted
  /home/esp/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld: cannot find /mnt/code/.embuild/espressif/esp-idf/v5.1.1/components/esp_wifi/lib/esp32s3/libsmartconfig.a: Operation not permitted
  /home/esp/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld: cannot find /mnt/code/.embuild/espressif/esp-idf/v5.1.1/components/esp_wifi/lib/esp32s3/libwapi.a: Operation not permitted
  /home/esp/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld: cannot find /mnt/code/.embuild/espressif/esp-idf/v5.1.1/components/xtensa/esp32s3/libxt_hal.a: Operation not permitted
  /home/esp/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld: cannot find esp-idf/newlib/libnewlib.a: Operation not permitted
  /home/esp/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld: cannot find esp-idf/pthread/libpthread.a: Operation not permitted
  /home/esp/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld: cannot find esp-idf/cxx/libcxx.a: Operation not permitted
  /home/esp/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld: cannot find -lphy: No such file or directory
  /home/esp/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld: cannot find -lbtbb: No such file or directory
  /home/esp/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld: cannot find esp-idf/esp_phy/libesp_phy.a: Operation not permitted
  /home/esp/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld: cannot find -lphy: No such file or directory
  /home/esp/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld: cannot find -lbtbb: No such file or directory
  /home/esp/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld: cannot find esp-idf/esp_phy/libesp_phy.a: Operation not permitted
  /home/esp/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld: cannot find -lphy: No such file or directory
  /home/esp/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld: cannot find -lbtbb: No such file or directory
  collect2: error: ld returned 1 exit status
  gmake[2]: *** [CMakeFiles/libespidf.elf.dir/build.make:525: libespidf.elf] Error 1
  gmake[1]: *** [CMakeFiles/Makefile2:1943: CMakeFiles/libespidf.elf.dir/all] Error 2
  gmake: *** [Makefile:136: all] Error 2
  thread 'main' panicked at /home/esp/.cargo/registry/src/index.crates.io-6f17d22bba15001f/cmake-0.1.50/src/lib.rs:1098:5:

  command did not execute successfully, got: exit status: 2

  build script failed, must exit now
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
esp@eb3c2603458d:/mnt/code$ uname -a
Linux eb3c2603458d 6.1.29-0-virt #1-Alpine SMP Wed, 17 May 2023 14:22:15 +0000 aarch64 GNU/Linux
esp@eb3c2603458d:/mnt/code$
SergioGasquez commented 1 year ago

Do you mind expanding the commands that you used? So I can try to reproduce the issue. From the logs I suppose that you are trying to build esp-idf-template for esp32s3.

noahbliss commented 1 year ago

Hey @SergioGasquez I don't have all of the exact commands, but what you assume I did is more or less on-the-money.

System context: M1 Mac colima with docker tools installed via brew. custom docker invocation script, uses a shared volume with the esp-idf-template (for std) as you mentioned.

Nothing else really special. I start the container, cd to the directory, run cargo build, it chugs along fine for a while compiling other crates, chews on esp-idf-sys for a while then spits this error.

The exact same git repo/code running on x64 Linux compiles with no issues.

SergioGasquez commented 1 year ago

Just did a small test on my M1 mac with docker and had no issue, here is what I did:

$ docker pull espressif/idf-rust:esp32s3_latest
$ docker run -it --rm -u esp espressif/idf-rust:esp32s3_latest
docker$  cargo install cargo-generate
docker$ USER=esp cargo generate esp-rs/esp-idf-template cargo --name test -d mcu=esp32s3 -d advanced=false
docker$ cd test
docker$ cargo build
  ....
  Finished dev [optimized + debuginfo] target(s) in 2m 57s
noahbliss commented 1 year ago

@SergioGasquez thanks for testing this. I'll repeat your steps, if I also have no issues, then I suspect this may be stemming from the volume mount and will investigate that deeper. Thanks!

noahbliss commented 1 year ago

Is there a way to change the path where the .cargo and .embuild directories are created?

SergioGasquez commented 1 year ago

There are some options, here is the documentation for .cargo and .embuild

noahbliss commented 1 year ago

Hmmm it thickens.

I attempted to effectively "move" .embuild into the container fs by running export ESP_IDF_TOOLS_INSTALL_DIR=global prior to running cargo build.

It seems that this does install the IDF tools to the container's home directory, but later in the build process, I still receive an error which points to a path inside the workspace directory which now no longer exists rather than to the file which is present in the ~ directory. Any thoughts?

noahbliss commented 1 year ago

This is the snippet including the error now:

[esp-idf-sys 0.33.3] CMAKE_xtensa_esp32s3_espidf = None
[esp-idf-sys 0.33.3] TARGET_CMAKE = None
[esp-idf-sys 0.33.3] CMAKE = None
[esp-idf-sys 0.33.3] running: cd "/mnt/code/target/xtensa-esp32s3-espidf/debug/build/esp-idf-sys-67c3ebe566277a4d/out/build" && CMAKE_PREFIX_PATH="" EXTRA_COMPONENT_DIRS="" IDF_COMPONENT_MANAGER="1" IDF_PATH="/home/esp/.espressif/esp-idf/v5.1.1" IDF_TARGET="esp32s3" IDF_TOOLS_PATH="/home/esp/.espressif" PATH="/home/esp/.espressif/tools/cmake/3.24.0/bin:/home/esp/.espressif/python_env/idf5.1_py3.11_env/bin:/home/esp/.espressif/esp-idf/v5.1.1/tools:/home/esp/.espressif/tools/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin:/home/esp/.rustup/toolchains/esp/xtensa-esp-elf/esp-13.2.0_20230928/xtensa-esp-elf/bin:/home/esp/.rustup/toolchains/esp/riscv32-esp-elf/esp-13.2.0_20230928/riscv32-esp-elf/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/esp/.cargo/bin" PROJECT_DIR="/mnt/code" SDKCONFIG_DEFAULTS="/mnt/code/target/xtensa-esp32s3-espidf/debug/build/esp-idf-sys-67c3ebe566277a4d/out/gen-sdkconfig.defaults;/mnt/code/sdkconfig.defaults" "cmake" "/mnt/code/target/xtensa-esp32s3-espidf/debug/build/esp-idf-sys-67c3ebe566277a4d/out" "-G" "Unix Makefiles" "-DCMAKE_TOOLCHAIN_FILE=/home/esp/.espressif/esp-idf/v5.1.1/tools/cmake/toolchain-esp32s3.cmake" "-DCMAKE_BUILD_TYPE=" "-DPYTHON=/home/esp/.espressif/python_env/idf5.1_py3.11_env/bin/python" "-DCMAKE_INSTALL_PREFIX=/mnt/code/target/xtensa-esp32s3-espidf/debug/build/esp-idf-sys-67c3ebe566277a4d/out" "-DCMAKE_C_FLAGS= -mlongcalls -ffunction-sections -fdata-sections" "-DCMAKE_CXX_FLAGS= -mlongcalls -ffunction-sections -fdata-sections" "-DCMAKE_ASM_FLAGS= -mlongcalls -ffunction-sections -fdata-sections"
[esp-idf-sys 0.33.3] CMake Error at build/CMakeFiles/3.24.0/CMakeSystem.cmake:6 (include):
[esp-idf-sys 0.33.3]   include could not find requested file:
[esp-idf-sys 0.33.3]
[esp-idf-sys 0.33.3]     /mnt/code/.embuild/espressif/esp-idf/v5.1.1/tools/cmake/toolchain-esp32s3.cmake
[esp-idf-sys 0.33.3] Call Stack (most recent call first):
[esp-idf-sys 0.33.3]   /home/esp/.espressif/esp-idf/v5.1.1/tools/cmake/project.cmake:448 (__project)
[esp-idf-sys 0.33.3]   CMakeLists.txt:28 (project)
[esp-idf-sys 0.33.3]
[esp-idf-sys 0.33.3]
[esp-idf-sys 0.33.3] -- The C compiler identification is GNU 12.2.0
[esp-idf-sys 0.33.3] -- The CXX compiler identification is GNU 12.2.0
[esp-idf-sys 0.33.3] -- The ASM compiler identification is GNU
[esp-idf-sys 0.33.3] -- Found assembler: /usr/bin/cc
[esp-idf-sys 0.33.3] -- Detecting C compiler ABI info
[esp-idf-sys 0.33.3] CMake Error at /mnt/code/target/xtensa-esp32s3-espidf/debug/build/esp-idf-sys-67c3ebe566277a4d/out/build/CMakeFiles/3.24.0/CMakeSystem.cmake:6 (include):
[esp-idf-sys 0.33.3]   include could not find requested file:
[esp-idf-sys 0.33.3]
[esp-idf-sys 0.33.3]     /mnt/code/.embuild/espressif/esp-idf/v5.1.1/tools/cmake/toolchain-esp32s3.cmake
[esp-idf-sys 0.33.3] Call Stack (most recent call first):
[esp-idf-sys 0.33.3]   /mnt/code/target/xtensa-esp32s3-espidf/debug/build/esp-idf-sys-67c3ebe566277a4d/out/build/CMakeFiles/CMakeTmp/CMakeLists.txt:4 (project)
[esp-idf-sys 0.33.3]
[esp-idf-sys 0.33.3]
[esp-idf-sys 0.33.3] CMake Error at /home/esp/.espressif/tools/cmake/3.24.0/share/cmake-3.24/Modules/CMakeDetermineCompilerABI.cmake:57 (try_compile):
[esp-idf-sys 0.33.3]   Failed to configure test project build system.
[esp-idf-sys 0.33.3] Call Stack (most recent call first):
[esp-idf-sys 0.33.3]   /home/esp/.espressif/tools/cmake/3.24.0/share/cmake-3.24/Modules/CMakeTestCCompiler.cmake:26 (CMAKE_DETERMINE_COMPILER_ABI)
[esp-idf-sys 0.33.3]   /home/esp/.espressif/esp-idf/v5.1.1/tools/cmake/project.cmake:448 (__project)
[esp-idf-sys 0.33.3]   CMakeLists.txt:28 (project)
[esp-idf-sys 0.33.3]
[esp-idf-sys 0.33.3]
[esp-idf-sys 0.33.3] -- Configuring incomplete, errors occurred!
[esp-idf-sys 0.33.3] See also "/mnt/code/target/xtensa-esp32s3-espidf/debug/build/esp-idf-sys-67c3ebe566277a4d/out/build/CMakeFiles/CMakeOutput.log".
[esp-idf-sys 0.33.3] See also "/mnt/code/target/xtensa-esp32s3-espidf/debug/build/esp-idf-sys-67c3ebe566277a4d/out/build/CMakeFiles/CMakeError.log".
[esp-idf-sys 0.33.3] thread 'main' panicked at /home/esp/.cargo/registry/src/index.crates.io-6f17d22bba15001f/cmake-0.1.50/src/lib.rs:1098:5:
[esp-idf-sys 0.33.3]
[esp-idf-sys 0.33.3] command did not execute successfully, got: exit status: 1
[esp-idf-sys 0.33.3]
[esp-idf-sys 0.33.3] build script failed, must exit now
[esp-idf-sys 0.33.3] note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
error: failed to run custom build command for `esp-idf-sys v0.33.3`

Caused by:
  process didn't exit successfully: `/mnt/code/target/debug/build/esp-idf-sys-7a89f24be9931daf/build-script-build` (exit status: 101)
  --- 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=EXTRA-COMPONENTS
  cargo:rerun-if-env-changed=ESP_IDF_COMPONENTS
  cargo:rerun-if-env-changed=ESP_IDF_COMPONENT_MANAGER
  IDF_PYTHON_ENV_PATH=/home/esp/.espressif/python_env/idf5.1_py3.11_env
  ESP_IDF_VERSION=5.1
  PATH=/home/esp/.espressif/tools/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin:/home/esp/.espressif/tools/cmake/3.24.0/bin:/home/esp/.espressif/python_env/idf5.1_py3.11_env/bin:/home/esp/.espressif/esp-idf/v5.1.1/tools:$PATH
  IDF_DEACTIVATE_FILE_PATH=/tmp/tmpwpuwvttyidf_1101
  Current system platform: linux-arm64
  Skipping xtensa-esp32s3-elf@esp-12.2.0_20230208 (already installed)
  Skipping cmake@3.24.0 (already installed)
  IDF_PYTHON_ENV_PATH=/home/esp/.espressif/python_env/idf5.1_py3.11_env
  ESP_IDF_VERSION=5.1
  PATH=/home/esp/.espressif/tools/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin:/home/esp/.espressif/tools/cmake/3.24.0/bin:/home/esp/.espressif/python_env/idf5.1_py3.11_env/bin:/home/esp/.espressif/esp-idf/v5.1.1/tools:$PATH
  IDF_DEACTIVATE_FILE_PATH=/tmp/tmpnv149go7idf_1101
  cargo:rerun-if-changed=/mnt/code/sdkconfig.defaults
  CMAKE_PREFIX_PATH_xtensa-esp32s3-espidf = None
  CMAKE_PREFIX_PATH_xtensa_esp32s3_espidf = None
  TARGET_CMAKE_PREFIX_PATH = None
  CMAKE_PREFIX_PATH = None
  CMAKE_xtensa-esp32s3-espidf = None
  CMAKE_xtensa_esp32s3_espidf = None
  TARGET_CMAKE = None
  CMAKE = None
  running: cd "/mnt/code/target/xtensa-esp32s3-espidf/debug/build/esp-idf-sys-67c3ebe566277a4d/out/build" && CMAKE_PREFIX_PATH="" EXTRA_COMPONENT_DIRS="" IDF_COMPONENT_MANAGER="1" IDF_PATH="/home/esp/.espressif/esp-idf/v5.1.1" IDF_TARGET="esp32s3" IDF_TOOLS_PATH="/home/esp/.espressif" PATH="/home/esp/.espressif/tools/cmake/3.24.0/bin:/home/esp/.espressif/python_env/idf5.1_py3.11_env/bin:/home/esp/.espressif/esp-idf/v5.1.1/tools:/home/esp/.espressif/tools/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin:/home/esp/.rustup/toolchains/esp/xtensa-esp-elf/esp-13.2.0_20230928/xtensa-esp-elf/bin:/home/esp/.rustup/toolchains/esp/riscv32-esp-elf/esp-13.2.0_20230928/riscv32-esp-elf/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/esp/.cargo/bin" PROJECT_DIR="/mnt/code" SDKCONFIG_DEFAULTS="/mnt/code/target/xtensa-esp32s3-espidf/debug/build/esp-idf-sys-67c3ebe566277a4d/out/gen-sdkconfig.defaults;/mnt/code/sdkconfig.defaults" "cmake" "/mnt/code/target/xtensa-esp32s3-espidf/debug/build/esp-idf-sys-67c3ebe566277a4d/out" "-G" "Unix Makefiles" "-DCMAKE_TOOLCHAIN_FILE=/home/esp/.espressif/esp-idf/v5.1.1/tools/cmake/toolchain-esp32s3.cmake" "-DCMAKE_BUILD_TYPE=" "-DPYTHON=/home/esp/.espressif/python_env/idf5.1_py3.11_env/bin/python" "-DCMAKE_INSTALL_PREFIX=/mnt/code/target/xtensa-esp32s3-espidf/debug/build/esp-idf-sys-67c3ebe566277a4d/out" "-DCMAKE_C_FLAGS= -mlongcalls -ffunction-sections -fdata-sections" "-DCMAKE_CXX_FLAGS= -mlongcalls -ffunction-sections -fdata-sections" "-DCMAKE_ASM_FLAGS= -mlongcalls -ffunction-sections -fdata-sections"
  -- The C compiler identification is GNU 12.2.0
  -- The CXX compiler identification is GNU 12.2.0
  -- The ASM compiler identification is GNU
  -- Found assembler: /usr/bin/cc
  -- Detecting C compiler ABI info
  -- Configuring incomplete, errors occurred!
  See also "/mnt/code/target/xtensa-esp32s3-espidf/debug/build/esp-idf-sys-67c3ebe566277a4d/out/build/CMakeFiles/CMakeOutput.log".
  See also "/mnt/code/target/xtensa-esp32s3-espidf/debug/build/esp-idf-sys-67c3ebe566277a4d/out/build/CMakeFiles/CMakeError.log".

  --- stderr
  Build configuration: BuildConfig {
      esp_idf_tools_install_dir: Some(
          Global,
      ),
      esp_idf_sdkconfig: None,
      esp_idf_sdkconfig_defaults: None,
      mcu: Some(
          "esp32s3",
      ),
      native: NativeConfig {
          esp_idf_version: Some(
              Tag(
                  "v5.1.1",
              ),
          ),
          esp_idf_repository: None,
          esp_idf_cmake_generator: None,
          idf_path: None,
          extra_components: [],
          esp_idf_components: None,
          esp_idf_component_manager: None,
      },
      esp_idf_sys_root_crate: None,
  }
  Using managed esp-idf repository: RemoteSdk { repo_url: None, git_ref: Tag("v5.1.1") }
  Using esp-idf v5.1.1 at '/home/esp/.espressif/esp-idf/v5.1.1'
  CMake Error at build/CMakeFiles/3.24.0/CMakeSystem.cmake:6 (include):
    include could not find requested file:

      /mnt/code/.embuild/espressif/esp-idf/v5.1.1/tools/cmake/toolchain-esp32s3.cmake
  Call Stack (most recent call first):
    /home/esp/.espressif/esp-idf/v5.1.1/tools/cmake/project.cmake:448 (__project)
    CMakeLists.txt:28 (project)

  CMake Error at /mnt/code/target/xtensa-esp32s3-espidf/debug/build/esp-idf-sys-67c3ebe566277a4d/out/build/CMakeFiles/3.24.0/CMakeSystem.cmake:6 (include):
    include could not find requested file:

      /mnt/code/.embuild/espressif/esp-idf/v5.1.1/tools/cmake/toolchain-esp32s3.cmake
  Call Stack (most recent call first):
    /mnt/code/target/xtensa-esp32s3-espidf/debug/build/esp-idf-sys-67c3ebe566277a4d/out/build/CMakeFiles/CMakeTmp/CMakeLists.txt:4 (project)

  CMake Error at /home/esp/.espressif/tools/cmake/3.24.0/share/cmake-3.24/Modules/CMakeDetermineCompilerABI.cmake:57 (try_compile):
    Failed to configure test project build system.
  Call Stack (most recent call first):
    /home/esp/.espressif/tools/cmake/3.24.0/share/cmake-3.24/Modules/CMakeTestCCompiler.cmake:26 (CMAKE_DETERMINE_COMPILER_ABI)
    /home/esp/.espressif/esp-idf/v5.1.1/tools/cmake/project.cmake:448 (__project)
    CMakeLists.txt:28 (project)

  thread 'main' panicked at /home/esp/.cargo/registry/src/index.crates.io-6f17d22bba15001f/cmake-0.1.50/src/lib.rs:1098:5:

  command did not execute successfully, got: exit status: 1

  build script failed, must exit now
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
esp@678ab5bdf6f9:/mnt/code$
noahbliss commented 1 year ago

Update: Issue appears to be resolved.

I found this issue comment (https://github.com/abiosoft/colima/issues/362#issuecomment-1564068063) which hinted that telling colima to use mac vz instead of qemu would help. I switched and now the build is completing and with far fewer errors. I did not switch to virtiofs as the comment suggests.

Thanks all, I'll close this now.