Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

esp-idf-sys-0.35.0: error[E0308]: mismatched types #343

Closed
omani opened this issue Oct 2, 2024 · 12 comments
Closed

esp-idf-sys-0.35.0: error[E0308]: mismatched types #343

omani opened this issue Oct 2, 2024 · 12 comments

Comments

@omani
Copy link

omani commented Oct 2, 2024

something has broken in the last month or so. this always worked for me. now it doesnt.

First install ESP-IDF, install for target esp32c3 and activate py environment:

mkdir ~/esp
cd ~/esp
git clone -b v5.2.3 --recursive https://github.com/espressif/esp-idf.git
cd esp-idf
./install.sh esp32c3
. ~/esp/esp-idf/export.sh

now cargo generate a project from the esp-idf-template:

$ cargo generate --git https://github.com/esp-rs/esp-idf-template
✔ 🤷   Which template should be expanded? · cargo
🤷   Project Name: esp-idf-websocket
🔧   Destination: /home/sun/shared/git/esp-idf-websocket ...
🔧   project-name: esp-idf-websocket ...
🔧   Generating template ...
✔ 🤷   Which MCU to target? · esp32c3
✔ 🤷   Configure advanced template options? · false
🔧   Moving generated files into: `/home/sun/shared/git/esp-idf-websocket`...
🔧   Initializing a fresh Git repository
✨   Done! New project created /home/sun/shared/git/esp-idf-websocket
$ cd esp-idf-websocket/

first of all, the esp-idf-template has the wrong ESP_IDF_VERSION. it is v5.2.2 but it should be v5.2.3. (esp-idf upstream has released v5.2.3 last month).

so I bump the version in .cargo/config.toml to v5.2.3:
ESP_IDF_VERSION = "v5.2.3"
(does not matter anyway, the error still exists with v5.2.2).

then cargo build.

fails with:

error[E0308]: mismatched types
  --> /home/sun/.cargo/registry/src/index.crates.io-6f17d22bba15001f/esp-idf-sys-0.35.0/src/lib.rs:63:62
   |
63 | const ESP_IDF_TIME64_CHECK: ::std::os::espidf::raw::time_t = 0 as crate::time_t;
   |                                                              ^^^^^^^^^^^^^^^^^^ expected `i32`, found `i64`

error[E0308]: mismatched types
  --> /home/sun/.cargo/registry/src/index.crates.io-6f17d22bba15001f/esp-idf-sys-0.35.0/src/lib.rs:65:51
   |
65 | const ESP_IDF_TIME64_CHECK_LIBC: ::libc::time_t = 0 as crate::time_t;
   |                                                   ^^^^^^^^^^^^^^^^^^ expected `i32`, found `i64`

For more information about this error, try `rustc --explain E0308`.
error: could not compile `esp-idf-sys` (lib) due to 2 previous errors

after failed build, check if env vars are set:

$ env | rg 'IDF|ESP'
IDF_PYTHON_ENV_PATH=/home/sun/.espressif/python_env/idf5.2_py3.12_env
IDF_PATH=/home/sun/esp/esp-idf
ESP_IDF_VERSION=5.2
IDF_DEACTIVATE_FILE_PATH=/tmp/tmp9gymmg0kidf_19534
IDF_TOOLS_EXPORT_CMD=/home/sun/esp/esp-idf/export.sh
IDF_TOOLS_INSTALL_CMD=/home/sun/esp/esp-idf/install.sh
ESP_ROM_ELF_DIR=/home/sun/.espressif/tools/esp-rom-elfs/20230320/

looks good. ESP_IDF_VERSION=5.2 has been set by cargo build. all the others are from activating the ESP-IDF python environment (via export.sh).

double check to make sure that the exported ESP-IDF is really being used instead of build script fetching ESP-IDF from source:

$ ls -l .embuild
".embuild": No such file or directory (os error 2)

double check that .cargo/config.toml rustflags look good:

rustflags = [ "--cfg",  "espidf_time64"] # Extending time_t for ESP IDF 5: https://github.com/esp-rs/rust/issues/110

the template does not include , "-C", "default-linker-libraries" (mentioned in previous issues regarding this topic), which - I guess - doesnt matter much here.

I know there were a few issues regarding this problem opened in the past. but I think this one seems to be a bug.

@omani
Copy link
Author

omani commented Oct 2, 2024

the error occurs also with no preinstalled ESP-IDF and the build script downloads the ESP-IDF repo and installs everything automatically.

@Vollbrecht
Copy link
Collaborator

We do not set any ENV variables persistently. They are only injected before the build script runs into the process directly.
ESP_IDF_VERSION=5.2 is a specific tag that is neither 5.2.2 nor 5.2.3.

If there are ENV variables in your environment like the IDF_PATH we will use that over a potential cloned repo by the build script. If you are having a IDF_PATH declared in your env you need to make sure that the version exactly matches the version set in the .cargo/config.toml. So is your version located in IDF_PATH=/home/sun/esp/esp-idf v5.2.2 ?

@Vollbrecht
Copy link
Collaborator

Vollbrecht commented Oct 3, 2024

Can you please copy/paste the build log that is inside target/riscv.../debug/build/<your-crate-name>.../output ?

@yaghmr
Copy link

yaghmr commented Oct 3, 2024

Adding these flags worked for me:

[build]
rustflags = ["--cfg", "espidf_time64", "-C", "default-linker-libraries"]

@ivmarkov
Copy link
Collaborator

ivmarkov commented Oct 3, 2024

Adding these flags worked for me:

[build]
rustflags = ["--cfg", "espidf_time64", "-C", "default-linker-libraries"]

These flags should anyway be in your .cargo/config.toml file if your binary crate project was configured correctly. One way to do this is by using the esp-idf-template project and carefully following all steps.

I have the same issue, this is my output file: cargo:rustc-cfg=esp_idf_adc_cali_efuse_tp_enable cargo:rustc-cfg=esp_idf_app_build_bootloader cargo:rustc-cfg=esp

This ^^^ you should absolutely not do. The way to configure ESP IDF, even when Rust is used is sdkconfig.defaults. You might also want to check out the Rust ESP-RS book.

@omani
Copy link
Author

omani commented Oct 3, 2024

ok so I have these two containers I do my rust things in (LXD containers). one container always worked, so I took it as a base container (cloned it) to see if I can reproduce this problem.

after many hours of trying I think I finally figured out what the problem is.

what I did was a system update (sudo apt update && sudo apt upgrade). and I remember that was the only thing I did on this "new" container before it started to fail. so I cloned again from my last working snapshot and took a look what actually is changing on the system. and it turns out it is the python3 package.

I tried it again. clone from working container where same steps from above work (cargo generate, cargo build, etc.) and try it again after a system update, and it fails.

Im pretty sure it is because of this, because there was one thing that gave it away.

I had exported the ESP-IDF environment before doing the system update (and a successful cargo build) with . ~/esp/esp-idf/export.sh.

I did the system update and ran cargo build again and it worked. then I thought "wait a minute. python has changed, but my py environment is still the old one (due to the export.sh). so I spawned a new shell and did a . ~/esp/esp-idf/export.sh again. and then cargo build fails with the above mismatched types error.

so I am 100% sure it is due to the new python version.

@omani
Copy link
Author

omani commented Oct 3, 2024

I can reproduce this over and over again. I roll back to the working version and cargo builds. I do a system update of ubuntu (python3 and libpython3 etc changes) and cargo build fails.

so I thought, why not do ./install.sh all again in ~/esp/esp-idf because python has changed, but to no luck.

looks like the problem is with the ESP-IDF repo. not esp-idf-sys.

@omani
Copy link
Author

omani commented Oct 3, 2024

So is your version located in IDF_PATH=/home/sun/esp/esp-idf v5.2.2 ?

yes. to get the idf version, activate the ESP-IDF environment and check the version with idf.py:

$ . ~/esp/esp-idf/export.sh
$ idf.py --version
ESP-IDF v5.4-dev-2306-gdbce23f8a4

it is v5.4 now because I switched to a different version. in my tests it was v5.2.3 before.
btw, what would one say in ESP_IDF_VERSION. v5.4 or 5.4 or exactly the above string?

@omani
Copy link
Author

omani commented Oct 3, 2024

btw my ESP_IDF_VERSION is ESP_IDF_VERSION = "5.4" the whole time in my tests. while the idf.py --version reports ESP-IDF v5.4-dev-2306-gdbce23f8a4. so I guess it does not matter if the version string is exactly the same.

@omani
Copy link
Author

omani commented Oct 3, 2024

Can you please copy/paste the build log that is inside target/riscv.../debug/build/.../output ?

cargo:rustc-cfg=esp_idf_esp_wifi_softap_sae_support
cargo:rustc-cfg=esp_idf_esp_timer_isr_affinity_cpu0
cargo:rustc-cfg=esp_idf_spi_flash_suspend_qvl_supported
cargo:rustc-cfg=esp_idf_bootloader_log_colors
cargo:rustc-cfg=esp_idf_soc_i2c_support_rtc
cargo:rustc-cfg=esp_idf_fatfs_use_strfunc_none
cargo:rustc-cfg=esp_idf_soc_memspi_is_independent
cargo:rustc-cfg=esp_idf_soc_sha_support_dma
cargo:rustc-cfg=esp_idf_esp_mac_universal_mac_addresses_four
cargo:rustc-cfg=esp_idf_esp_time_funcs_use_esp_timer
cargo:rustc-cfg=esp_idf_soc_i2s_supports_tdm
cargo:rustc-cfg=esp_idf_soc_pm_support_cpu_pd
cargo:rustc-cfg=esp_idf_mbedtls_ecp_dp_secp192r1_enabled
cargo:rustc-cfg=esp_idf_soc_gpio_filter_clk_support_apb
cargo:rustc-cfg=esp_idf_esptoolpy_after_reset
cargo:rustc-cfg=esp_idf_mbedtls_ecdsa_deterministic
cargo:rustc-cfg=esp_idf_soc_wifi_csi_support
cargo:rustc-cfg=esp_idf_spiffs_page_check
cargo:rustc-cfg=esp_idf_lwip_sntp_startup_delay
cargo:rustc-cfg=esp_idf_freertos_port
cargo:rustc-cfg=esp_idf_soc_pm_modem_retention_by_backupdma
cargo:rustc-cfg=esp_idf_soc_xt_wdt_supported
cargo:rustc-cfg=esp_idf_twai_errata_fix_listen_only_dom
cargo:rustc-cfg=esp_idf_log_tag_level_impl_cache_and_linked_list
cargo:rustc-cfg=esp_idf_esp_task_wdt_init
cargo:rustc-cfg=esp_idf_bootloader_region_protection_enable
cargo:rustc-cfg=esp_idf_mbedtls_ecp_fixed_point_optim
cargo:rustc-cfg=esp_idf_soc_support_secure_boot_revoke_key
cargo:rustc-cfg=esp_idf_soc_rmt_support_tx_carrier_data_only
cargo:rustc-cfg=esp_idf_mbedtls_server_ssl_session_tickets
cargo:rustc-cfg=esp_idf_soc_uart_support_rtc_clk
cargo:rustc-cfg=esp_idf_soc_uart_support_xtal_clk
cargo:rustc-cfg=esp_idf_soc_supports_secure_dl_mode
cargo:rustc-cfg=esp_idf_spi_flash_enable_encrypted_read_write
cargo:rustc-cfg=esp_idf_esptoolpy_before_reset
cargo:rustc-cfg=esp_idf_freertos_check_mutex_given_by_owner
cargo:rustc-cfg=esp_idf_mbedtls_asymmetric_content_len
cargo:rustc-cfg=esp_idf_partition_table_single_app
cargo:rustc-cfg=esp_idf_soc_spi_mem_support_check_sus
cargo:rustc-cfg=esp_idf_soc_wifi_hw_tsf
cargo:rustc-cfg=esp_idf_lwip_dhcps_static_entries
cargo:rustc-cfg=esp_idf_mbedtls_error_strings
cargo:rustc-cfg=esp_idf_esptoolpy_flashmode_dio
cargo:rustc-cfg=esp_idf_freertos_unicore
cargo:rustc-cfg=esp_idf_lwip_ip4_frag
cargo:rustc-cfg=esp_idf_spi_master_isr_in_iram
cargo:rustc-cfg=esp_idf_lwip_checksum_check_icmp
cargo:rustc-cfg=esp_idf_fatfs_lfn_none
cargo:rustc-cfg=esp_idf_mbedtls_key_exchange_elliptic_curve
cargo:rustc-cfg=esp_idf_esp_rom_needs_swsetup_workaround
cargo:rustc-cfg=esp_idf_compiler_disable_default_errors
cargo:rustc-cfg=esp_idf_soc_gpspi_supported
cargo:rustc-cfg=esp_idf_esp_wifi_rx_iram_opt
cargo:rustc-cfg=esp_idf_soc_spi_mem_support_config_gpio_by_efuse
cargo:rustc-cfg=esp_idf_esp_sleep_flash_leakage_workaround
cargo:rustc-cfg=esp_idf_soc_i2s_supports_xtal
cargo:rustc-cfg=esp_idf_compiler_optimization_assertions_enable
cargo:rustc-cfg=esp_idf_esp_main_task_affinity_cpu0
cargo:rustc-cfg=esp_idf_soc_light_sleep_supported
cargo:rustc-cfg=esp_idf_spiffs_use_magic
cargo:rustc-cfg=esp_idf_soc_adc_dig_ctrl_supported
cargo:rustc-cfg=esp_idf_esp_console_uart
cargo:rustc-cfg=esp_idf_idf_target_esp32c3
cargo:rustc-cfg=esp_idf_soc_ledc_supported
cargo:rustc-cfg=esp_idf_mbedtls_key_exchange_rsa
cargo:rustc-cfg=esp_idf_soc_pm_supported
cargo:rustc-cfg=esp_idf_mbedtls_client_ssl_session_tickets
cargo:rustc-cfg=esp_idf_soc_rmt_support_tx_async_stop
cargo:rustc-cfg=esp_idf_bootloader_log_timestamp_source_cpu_ticks
cargo:rustc-cfg=esp_idf_esp_wifi_enable_sae_pk
cargo:rustc-cfg=esp_idf_idf_toolchain_gcc
cargo:rustc-cfg=esp_idf_soc_flash_enc_supported
cargo:rustc-cfg=esp_idf_mqtt_transport_websocket_secure
cargo:rustc-cfg=esp_idf_soc_rtc_fast_mem_supported
cargo:rustc-cfg=esp_idf_freertos_coretimer_systimer_lvl1
cargo:rustc-cfg=esp_idf_soc_i2s_supported
cargo:rustc-cfg=esp_idf_esp_rom_ram_app_needs_mmu_init
cargo:rustc-cfg=esp_idf_soc_i2c_slave_support_i2cram_access
cargo:rustc-cfg=esp_idf_mbedtls_ecdsa_c
cargo:rustc-cfg=esp_idf_soc_ble_device_privacy_supported
cargo:rustc-cfg=esp_idf_freertos_place_snapshot_funs_into_flash
cargo:rustc-cfg=esp_idf_soc_sdm_clk_support_apb
cargo:rustc-cfg=esp_idf_mqtt_transport_ssl
cargo:rustc-cfg=esp_idf_soc_efuse_soft_dis_jtag
cargo:rustc-cfg=esp_idf_soc_i2c_support_slave
cargo:rustc-cfg=esp_idf_soc_i2c_support_xtal
cargo:rustc-cfg=esp_idf_soc_i2s_supports_pll_f160m
cargo:rustc-cfg=esp_idf_soc_rmt_support_tx_synchro
cargo:rustc-cfg=esp_idf_soc_aes_supported
cargo:rustc-cfg=esp_idf_mbedtls_tls_client
cargo:rustc-cfg=esp_idf_lwip_dhcps
cargo:rustc-cfg=esp_idf_esp_phy_calibration_and_data_storage
cargo:rustc-cfg=esp_idf_app_build_bootloader
cargo:rustc-cfg=esp_idf_soc_i2c_slave_can_get_stretch_cause
cargo:rustc-cfg=esp_idf_esp_brownout_det
cargo:rustc-cfg=esp_idf_soc_pm_support_wifi_wakeup
cargo:rustc-cfg=esp_idf_spi_flash_support_issi_chip
cargo:rustc-cfg=esp_idf_spi_flash_support_mxic_chip
cargo:rustc-cfg=esp_idf_soc_sleep_tgwdt_stop_workaround
cargo:rustc-cfg=esp_idf_spi_flash_yield_during_erase
cargo:rustc-cfg=esp_idf_mbedtls_tls_server_and_client
cargo:rustc-cfg=esp_idf_soc_brownout_reset_supported
cargo:rustc-cfg=esp_idf_mbedtls_key_exchange_ecdhe_ecdsa
cargo:rustc-cfg=esp_idf_spi_flash_support_gd_chip
cargo:rustc-cfg=esp_idf_bootloader_compile_time_date
cargo:rustc-cfg=esp_idf_esp_rom_needs_set_cache_mmu_size
cargo:rustc-cfg=esp_idf_soc_shared_idcache_supported
cargo:rustc-cfg=esp_idf_soc_coex_hw_pti
cargo:rustc-cfg=esp_idf_spi_flash_support_boya_chip
cargo:rustc-cfg=esp_idf_soc_efuse_dis_direct_boot
cargo:rustc-cfg=esp_idf_mbedtls_gcm_c
cargo:rustc-cfg=esp_idf_mbedtls_pem_write_c
cargo:rustc-cfg=esp_idf_lwip_hook_netconn_ext_resolve_none
cargo:rustc-cfg=esp_idf_soc_ledc_support_fade_stop
cargo:rustc-cfg=esp_idf_esp_wifi_nvs_enabled
cargo:rustc-cfg=esp_idf_esp_rom_has_ets_printf_bug
cargo:rustc-cfg=esp_idf_mbedtls_sha512_c
cargo:rustc-cfg=esp_idf_soc_twai_supported
cargo:rustc-cfg=esp_idf_spi_flash_vendor_xmc_supported
cargo:rustc-cfg=esp_idf_unity_enable_float
cargo:rustc-cfg=esp_idf_soc_ahb_gdma_supported
cargo:rustc-cfg=esp_idf_vfs_initialize_dev_null
cargo:rustc-cfg=esp_idf_lwip_ipv6
cargo:rustc-cfg=esp_idf_esp_console_usb_serial_jtag_enabled
cargo:rustc-cfg=esp_idf_soc_spi_flash_supported
cargo:rustc-cfg=esp_idf_soc_systimer_supported
cargo:rustc-cfg=esp_idf_soc_sha_support_sha1
cargo:rustc-cfg=esp_idf_bootloader_log_level_info
cargo:rustc-cfg=esp_idf_rtc_clk_src_int_rc
cargo:rustc-cfg=esp_idf_soc_timer_group_support_apb
cargo:rustc-cfg=esp_idf_wifi_prov_sta_all_channel_scan
cargo:rustc-cfg=esp_idf_esp_netif_tcpip_lwip
cargo:rustc-cfg=esp_idf_log_dynamic_level_control
cargo:rustc-cfg=esp_idf_esp_rom_has_crc_be
cargo:rustc-cfg=esp_idf_mbedtls_x509_crl_parse_c
cargo:rustc-cfg=esp_idf_soc_cpu_has_csr_pc
cargo:rustc-cfg=esp_idf_soc_spi_support_clk_xtal
cargo:rustc-cfg=esp_idf_esp_coex_enabled
cargo:rustc-cfg=esp_idf_newlib_time_syscall_use_rtc_hrt
cargo:rustc-cfg=esp_idf_lwip_icmp
cargo:rustc-cfg=esp_idf_soc_lp_periph_share_interrupt
cargo:rustc-cfg=esp_idf_soc_efuse_has_efuse_rst_bug
cargo:rustc-cfg=esp_idf_esp_brownout_det_lvl_sel_7
cargo:rustc-cfg=esp_idf_spiffs_use_magic_length
cargo:rustc-cfg=esp_idf_esp_sleep_gpio_enable_internal_resistors
cargo:rustc-cfg=esp_idf_soc_spi_support_slave_hd_ver2
cargo:rustc-cfg=esp_idf_soc_usb_serial_jtag_supported
cargo:rustc-cfg=esp_idf_mbedtls_cmac_c
cargo:rustc-cfg=esp_idf_soc_pm_cpu_retention_by_rtccntl
cargo:rustc-cfg=esp_idf_unity_enable_double
cargo:rustc-cfg=esp_idf_soc_sha_gdma
cargo:rustc-cfg=esp_idf_apptrace_dest_uart_none
cargo:rustc-cfg=esp_idf_esp_system_panic_print_reboot
cargo:rustc-cfg=esp_idf_esp_rom_has_jpeg_decode
cargo:rustc-cfg=esp_idf_mbedtls_large_key_software_mpi
cargo:rustc-cfg=esp_idf_soc_adc_dma_supported
cargo:rustc-cfg=esp_idf_soc_spi_support_ddrclk
cargo:rustc-cfg=esp_idf_spiffs_use_mtime
cargo:rustc-cfg=esp_idf_esp_phy_rf_cal_partial
cargo:rustc-cfg=esp_idf_soc_gpio_support_deepsleep_wakeup
cargo:rustc-cfg=esp_idf_soc_pm_support_mac_bb_pd
cargo:rustc-cfg=esp_idf_soc_i2s_supports_pdm_tx
cargo:rustc-cfg=esp_idf_esp_rom_has_erase_0_region_bug
cargo:rustc-cfg=esp_idf_soc_apb_backup_dma
cargo:rustc-cfg=esp_idf_esp_system_check_int_level_4
cargo:rustc-cfg=esp_idf_soc_aes_support_dma
cargo:rustc-cfg=esp_idf_mbedtls_have_time
cargo:rustc-cfg=esp_idf_mbedtls_gcm_support_non_aes_cipher
cargo:rustc-cfg=esp_idf_esptoolpy_flashfreq_80m
cargo:rustc-cfg=esp_idf_soc_pm_support_wifi_pd
cargo:rustc-cfg=esp_idf_bootloader_flash_xmc_support
cargo:rustc-cfg=esp_idf_mbedtls_ecp_dp_bp384r1_enabled
cargo:rustc-cfg=esp_idf_soc_dig_sign_supported
cargo:rustc-cfg=esp_idf_fatfs_sector_4096
cargo:rustc-cfg=esp_idf_compiler_stack_check_mode_none
cargo:rustc-cfg=esp_idf_mbedtls_ssl_proto_tls1_2
cargo:rustc-cfg=esp_idf_soc_i2c_supported
cargo:rustc-cfg=esp_idf_mbedtls_pkcs7_c
cargo:rustc-cfg=esp_idf_soc_spi_sct_supported
cargo:rustc-cfg=esp_idf_mbedtls_tls_server
cargo:rustc-cfg=esp_idf_esp_rom_has_spi_flash
cargo:rustc-cfg=esp_idf_esp_wifi_enable_wpa3_owe_sta
cargo:rustc-cfg=esp_idf_soc_memspi_src_freq_80m_supported
cargo:rustc-cfg=esp_idf_spi_flash_vendor_boya_supported
cargo:rustc-cfg=esp_idf_vfs_support_select
cargo:rustc-cfg=esp_idf_soc_wdt_supported
cargo:rustc-cfg=esp_idf_soc_rmt_support_rx_demodulation
cargo:rustc-cfg=esp_idf_mbedtls_tls_enabled
cargo:rustc-cfg=esp_idf_soc_secure_boot_v2_rsa
cargo:rustc-cfg=esp_idf_soc_sha_support_resume
cargo:rustc-cfg=esp_idf_httpd_err_resp_no_delay
cargo:rustc-cfg=esp_idf_esp_rom_get_clk_freq
cargo:rustc-cfg=esp_idf_gptimer_isr_handler_in_iram
cargo:rustc-cfg=esp_idf_lwip_hook_tcp_isn_default
cargo:rustc-cfg=esp_idf_newlib_stdout_line_ending_crlf
cargo:rustc-cfg=esp_idf_esp_system_hw_stack_guard
cargo:rustc-cfg=esp_idf_compiler_rt_lib_gcclib
cargo:rustc-cfg=esp_idf_soc_adc_arbiter_supported
cargo:rustc-cfg=esp_idf_soc_efuse_dis_pad_jtag
cargo:rustc-cfg=esp_idf_soc_systimer_alarm_miss_compensate
cargo:rustc-cfg=esp_idf_esp_timer_impl_systimer
cargo:rustc-cfg=esp_idf_esp_spi_bus_lock_isr_funcs_in_iram
cargo:rustc-cfg=esp_idf_freertos_check_stackoverflow_canary
cargo:rustc-cfg=esp_idf_esp_mac_addr_universe_bt
cargo:rustc-cfg=esp_idf_soc_rmt_supported
cargo:rustc-cfg=esp_idf_esp_event_post_from_isr
cargo:rustc-cfg=esp_idf_soc_adc_self_hw_cali_supported
cargo:rustc-cfg=esp_idf_spi_flash_support_th_chip
cargo:rustc-cfg=esp_idf_spiffs_cache
cargo:rustc-cfg=esp_idf_soc_i2s_supports_pdm
cargo:rustc-cfg=esp_idf_eth_enabled
cargo:rustc-cfg=esp_idf_esp_mac_addr_universe_wifi_ap
cargo:rustc-cfg=esp_idf_soc_mwdt_support_xtal
cargo:rustc-cfg=esp_idf_esptoolpy_flash_sample_mode_str
cargo:rustc-cfg=esp_idf_esp_system_brownout_intr
cargo:rustc-cfg=esp_idf_esp_wifi_enterprise_support
cargo:rustc-cfg=esp_idf_lwip_nd6
cargo:rustc-cfg=esp_idf_soc_efuse_dis_icache
cargo:rustc-cfg=esp_idf_soc_memspi_src_freq_20m_supported
cargo:rustc-cfg=esp_idf_vfs_suppress_select_debug_output
cargo:rustc-cfg=esp_idf_partition_table_md5
cargo:rustc-cfg=esp_idf_soc_ledc_support_xtal_clock
cargo:rustc-cfg=esp_idf_hal_spi_master_func_in_iram
cargo:rustc-cfg=esp_idf_freertos_interrupt_backtrace
cargo:rustc-cfg=esp_idf_app_build_generate_binaries
cargo:rustc-cfg=esp_idf_idf_target_arch="riscv"
cargo:rustc-cfg=esp_idf_esp_rom_has_retargetable_locking
cargo:rustc-cfg=esp_idf_app_build_type_app_2ndboot
cargo:rustc-cfg=esp_idf_soc_twai_supports_rx_status
cargo:rustc-cfg=esp_idf_soc_uart_support_apb_clk
cargo:rustc-cfg=esp_idf_vfs_support_termios
cargo:rustc-cfg=esp_idf_esp_rom_has_newlib_nano_format
cargo:rustc-cfg=esp_idf_soc_spi_mem_support_auto_resume
cargo:rustc-cfg=esp_idf_lwip_esp_lwip_assert
cargo:rustc-cfg=esp_idf_mbedtls_hardware_sha
cargo:rustc-cfg=esp_idf_esp_gdbstub_support_tasks
cargo:rustc-cfg=esp_idf_lwip_hook_ip6_route_none
cargo:rustc-cfg=esp_idf_fatfs_per_file_cache
cargo:rustc-cfg=esp_idf_esp_phy_enabled
cargo:rustc-cfg=esp_idf_esp_rom_has_mz_crc32
cargo:rustc-cfg=esp_idf_freertos_tlsp_deletion_callbacks
cargo:rustc-cfg=esp_idf_log_maximum_equals_default
cargo:rustc-cfg=esp_idf_lwip_dhcp_disable_vendor_class_id
cargo:rustc-cfg=esp_idf_lwip_esp_gratuitous_arp
cargo:rustc-cfg=esp_idf_periph_ctrl_func_in_iram
cargo:rustc-cfg=esp_idf_soc_assist_debug_supported
cargo:rustc-cfg=esp_idf_esp_wifi_softap_support
cargo:rustc-cfg=esp_idf_soc_sdm_supported
cargo:rustc-cfg=esp_idf_soc_timer_group_support_xtal
cargo:rustc-cfg=esp_idf_mbedtls_ecp_dp_secp256r1_enabled
cargo:rustc-cfg=esp_idf_soc_clk_tree_supported
cargo:rustc-cfg=esp_idf_apptrace_dest_none
cargo:rustc-cfg=esp_idf_soc_clk_rc_fast_d256_supported
cargo:rustc-cfg=esp_idf_soc_dedicated_gpio_supported
cargo:rustc-cfg=esp_idf_soc_bod_supported
cargo:rustc-cfg=esp_idf_freertos_support_static_allocation
cargo:rustc-cfg=esp_idf_freertos_timer_task_no_affinity
cargo:rustc-cfg=esp_idf_soc_wifi_ftm_support
cargo:rustc-cfg=esp_idf_soc_pm_support_rc_fast_pd
cargo:rustc-cfg=esp_idf_soc_secure_boot_supported
cargo:rustc-cfg=esp_idf_bootloader_wdt_enable
cargo:rustc-cfg=esp_idf_esp_netif_uses_tcpip_with_bsd_api
cargo:rustc-cfg=esp_idf_soc_memspi_src_freq_40m_supported
cargo:rustc-cfg=esp_idf_freertos_enable_task_snapshot
cargo:rustc-cfg=esp_idf_idf_cmake
cargo:rustc-cfg=esp_idf_soc_ble_supported
cargo:rustc-cfg=esp_idf_esp_console_secondary_usb_serial_jtag
cargo:rustc-cfg=esp_idf_hal_assertion_equals_system
cargo:rustc-cfg=esp_idf_soc_sha_support_sha224
cargo:rustc-cfg=esp_idf_spi_flash_brownout_reset_xmc
cargo:rustc-cfg=esp_idf_lwip_ipv4
cargo:rustc-cfg=esp_idf_soc_aes_gdma
cargo:rustc-cfg=esp_idf_esp_wifi_ampdu_tx_enabled
cargo:rustc-cfg=esp_idf_mqtt_transport_websocket
cargo:rustc-cfg=esp_idf_newlib_stdin_line_ending_cr
cargo:rustc-cfg=esp_idf_soc_adc_shared_power
cargo:rustc-cfg=esp_idf_soc_temperature_sensor_support_xtal
cargo:rustc-cfg=esp_idf_soc_gpio_support_pin_glitch_filter
cargo:rustc-cfg=esp_idf_soc_xtal_support_40m
cargo:rustc-cfg=esp_idf_secure_boot_v2_preferred
cargo:rustc-cfg=esp_idf_hal_spi_slave_func_in_iram
cargo:rustc-cfg=esp_idf_lwip_hook_ip6_input_none
cargo:rustc-cfg=esp_idf_soc_clk_xtal32k_supported
cargo:rustc-cfg=esp_idf_esp_wifi_mbedtls_crypto
cargo:rustc-cfg=esp_idf_esp_http_client_enable_https
cargo:rustc-cfg=esp_idf_unity_enable_idf_test_runner
cargo:rustc-cfg=esp_idf_soc_flash_encryption_xts_aes_128
cargo:rustc-cfg=esp_idf_spi_flash_rom_driver_patch
cargo:rustc-cfg=esp_idf_esp_rom_support_deep_sleep_wakeup_stub
cargo:rustc-cfg=esp_idf_esp_rom_has_crc_le
cargo:rustc-cfg=esp_idf_mbedtls_ecp_dp_bp512r1_enabled
cargo:rustc-cfg=esp_idf_pm_power_down_cpu_in_light_sleep
cargo:rustc-cfg=esp_idf_soc_aes_support_aes_128
cargo:rustc-cfg=esp_idf_soc_aes_support_aes_256
cargo:rustc-cfg=esp_idf_spi_slave_isr_in_iram
cargo:rustc-cfg=esp_idf_esp_wifi_ampdu_rx_enabled
cargo:rustc-cfg=esp_idf_soc_i2c_support_hw_clr_bus
cargo:rustc-cfg=esp_idf_heap_poisoning_disabled
cargo:rustc-cfg=esp_idf_soc_gdma_supported
cargo:rustc-cfg=esp_idf_soc_clk_rc_fast_support_calibration
cargo:rustc-cfg=esp_idf_soc_gpio_support_force_hold
cargo:rustc-cfg=esp_idf_esp_coredump_enable_to_none
cargo:rustc-cfg=esp_idf_esp_system_allow_rtc_fast_mem_as_heap
cargo:rustc-cfg=esp_idf_freertos_use_timers
cargo:rustc-cfg=esp_idf_esptoolpy_flashsize_2mb
cargo:rustc-cfg=esp_idf_esp_rom_has_sw_float
cargo:rustc-cfg=esp_idf_soc_systimer_fixed_divider
cargo:rustc-cfg=esp_idf_esp_time_funcs_use_rtc_timer
cargo:rustc-cfg=esp_idf_esp_rom_has_version
cargo:rustc-cfg=esp_idf_soc_temperature_sensor_support_fast_rc
cargo:rustc-cfg=esp_idf_mbedtls_ccm_c
cargo:rustc-cfg=esp_idf_esp_tls_use_ds_peripheral
cargo:rustc-cfg=esp_idf_esp32c3_rev_min_3
cargo:rustc-cfg=esp_idf_soc_efuse_supported
cargo:rustc-cfg=esp_idf_fatfs_link_lock
cargo:rustc-cfg=esp_idf_soc_spi_mem_support_auto_wait_idle
cargo:rustc-cfg=esp_idf_soc_async_memcpy_supported
cargo:rustc-cfg=esp_idf_lwip_timers_ondemand
cargo:rustc-cfg=esp_idf_soc_wifi_phy_needs_usb_workaround
cargo:rustc-cfg=esp_idf_soc_spi_mem_support_auto_suspend
cargo:rustc-cfg=esp_idf_mbedtls_key_exchange_ecdhe_rsa
cargo:rustc-cfg=esp_idf_esp_wifi_dynamic_tx_buffer
cargo:rustc-cfg=esp_idf_freertos_systick_uses_systimer
cargo:rustc-cfg=esp_idf_mbedtls_ecp_dp_secp224k1_enabled
cargo:rustc-cfg=esp_idf_idf_target="esp32c3"
cargo:rustc-cfg=esp_idf_soc_mpi_supported
cargo:rustc-cfg=esp_idf_soc_blufi_supported
cargo:rustc-cfg=esp_idf_lwip_so_reuse
cargo:rustc-cfg=esp_idf_esp_gdbstub_enabled
cargo:rustc-cfg=esp_idf_soc_i2s_hw_version_2
cargo:rustc-cfg=esp_idf_soc_rmt_support_apb
cargo:rustc-cfg=esp_idf_soc_wifi_support_variable_beacon_window
cargo:rustc-cfg=esp_idf_soc_adc_monitor_supported
cargo:rustc-cfg=esp_idf_mbedtls_mpi_use_interrupt
cargo:rustc-cfg=esp_idf_soc_flash_encryption_xts_aes
cargo:rustc-cfg=esp_idf_soc_rmt_support_tx_loop_count
cargo:rustc-cfg=esp_idf_esp_wifi_static_rx_mgmt_buffer
cargo:rustc-cfg=esp_idf_soc_bt_supported
cargo:rustc-cfg=esp_idf_soc_pm_support_vddsdio_pd
cargo:rustc-cfg=esp_idf_soc_deep_sleep_supported
cargo:rustc-cfg=esp_idf_lwip_so_reuse_rxtoall
cargo:rustc-cfg=esp_idf_usj_enable_usb_serial_jtag
cargo:rustc-cfg=esp_idf_esp_sleep_gpio_reset_workaround
cargo:rustc-cfg=esp_idf_soc_wifi_supported
cargo:rustc-cfg=esp_idf_wl_sector_size_4096
cargo:rustc-cfg=esp_idf_soc_gptimer_supported
cargo:rustc-cfg=esp_idf_soc_sha_supported
cargo:rustc-cfg=esp_idf_mbedtls_ecp_dp_secp224r1_enabled
cargo:rustc-cfg=esp_idf_spi_flash_dangerous_write_aborts
cargo:rustc-cfg=esp_idf_fatfs_codepage_437
cargo:rustc-cfg=esp_idf_soc_efuse_key_purpose_field
cargo:rustc-cfg=esp_idf_soc_spi_periph_support_control_dummy_out
cargo:rustc-cfg=esp_idf_spi_flash_brownout_reset
cargo:rustc-cfg=esp_idf_soc_spi_slave_support_seg_trans
cargo:rustc-cfg=esp_idf_esp_rom_has_newlib
cargo:rustc-cfg=esp_idf_esp_protocomm_support_security_version_1
cargo:rustc-cfg=esp_idf_esp_system_single_core_mode
cargo:rustc-cfg=esp_idf_app_build_use_flash_sections
cargo:rustc-cfg=esp_idf_mbedtls_ecp_dp_secp384r1_enabled
cargo:rustc-cfg=esp_idf_lwip_esp_mldv6_report
cargo:rustc-cfg=esp_idf_soc_rmt_support_rx_pingpong
cargo:rustc-cfg=esp_idf_esp_wifi_sta_disconnected_pm_enable
cargo:rustc-cfg=esp_idf_vfs_support_dir
cargo:rustc-cfg=esp_idf_soc_ledc_support_apb_clock
cargo:rustc-cfg=esp_idf_soc_cpu_has_flexible_intc
cargo:rustc-cfg=esp_idf_esp_rom_has_newlib_32bit_time
cargo:rustc-cfg=esp_idf_mbedtls_ssl_keep_peer_certificate
cargo:rustc-cfg=esp_idf_soc_support_coexistence
cargo:rustc-cfg=esp_idf_heap_tracing_off
cargo:rustc-cfg=esp_idf_lwip_dhcp_does_arp_check
cargo:rustc-cfg=esp_idf_esp_protocomm_support_security_version_2
cargo:rustc-cfg=esp_idf_spi_flash_support_winbond_chip
cargo:rustc-cfg=esp_idf_esp_protocomm_support_security_version_0
cargo:rustc-cfg=esp_idf_freertos_optimized_scheduler
cargo:rustc-cfg=esp_idf_log_timestamp_source_rtos
cargo:rustc-cfg=esp_idf_mbedtls_certificate_bundle
cargo:rustc-cfg=esp_idf_spi_flash_vendor_mxic_supported
cargo:rustc-cfg=esp_idf_esp_task_wdt_check_idle_task_cpu0
cargo:rustc-cfg=esp_idf_mbedtls_key_exchange_ecdh_rsa
cargo:rustc-cfg=esp_idf_soc_uart_support_wakeup_int
cargo:rustc-cfg=esp_idf_mbedtls_key_exchange_ecdh_ecdsa
cargo:rustc-cfg=esp_idf_mbedtls_ssl_alpn
cargo:rustc-cfg=esp_idf_compiler_orphan_sections_warning
cargo:rustc-cfg=esp_idf_soc_wifi_mesh_support
cargo:rustc-cfg=esp_idf_spi_flash_vendor_th_supported
cargo:rustc-cfg=esp_idf_mbedtls_ecp_c
cargo:rustc-cfg=esp_idf_boot_rom_log_always_on
cargo:rustc-cfg=esp_idf_soc_sha_support_sha256
cargo:rustc-cfg=esp_idf_esp_mac_addr_universe_wifi_sta
cargo:rustc-cfg=esp_idf_lwip_dns_support_mdns_queries
cargo:rustc-cfg=esp_idf_mbedtls_aes_c
cargo:rustc-cfg=esp_idf_esp_system_hw_pc_record
cargo:rustc-cfg=esp_idf_soc_ble_mesh_supported
cargo:rustc-cfg=esp_idf_vfs_support_io
cargo:rustc-cfg=esp_idf_secure_boot_v2_rsa_supported
cargo:rustc-cfg=esp_idf_soc_uart_supported
cargo:rustc-cfg=esp_idf_soc_adc_dig_iir_filter_supported
cargo:rustc-cfg=esp_idf_soc_dedic_periph_always_enable
cargo:rustc-cfg=esp_idf_soc_efuse_dis_usb_jtag
cargo:rustc-cfg=esp_idf_soc_phy_combo_module
cargo:rustc-cfg=esp_idf_spi_flash_vendor_gd_supported
cargo:rustc-cfg=esp_idf_mbedtls_ecp_dp_secp192k1_enabled
cargo:rustc-cfg=esp_idf_mbedtls_pem_parse_c
cargo:rustc-cfg=esp_idf_soc_spi_support_continuous_trans
cargo:rustc-cfg=esp_idf_soc_memspi_src_freq_26m_supported
cargo:rustc-cfg=esp_idf_esp_err_to_name_lookup
cargo:rustc-cfg=esp_idf_soc_temp_sensor_supported
cargo:rustc-cfg=esp_idf_mbedtls_internal_mem_alloc
cargo:rustc-cfg=esp_idf_mbedtls_x509_csr_parse_c
cargo:rustc-cfg=esp_idf_esp_debug_ocdaware
cargo:rustc-cfg=esp_idf_compiler_hide_paths_macros
cargo:rustc-cfg=esp_idf_esp_tls_using_mbedtls
cargo:rustc-cfg=esp_idf_esp_wifi_iram_opt
cargo:rustc-cfg=esp_idf_mbedtls_ecdh_c
cargo:rustc-cfg=esp_idf_log_colors
cargo:rustc-cfg=esp_idf_soc_i2c_support_10bit_addr
cargo:rustc-cfg=esp_idf_soc_pm_support_bt_wakeup
cargo:rustc-cfg=esp_idf_esp_netif_report_data_traffic
cargo:rustc-cfg=esp_idf_soc_efuse_revoke_boot_key_digests
cargo:rustc-cfg=esp_idf_soc_gpio_clockout_by_gpio_matrix
cargo:rustc-cfg=esp_idf_mbedtls_hardware_aes
cargo:rustc-cfg=esp_idf_mqtt_protocol_311
cargo:rustc-cfg=esp_idf_ws_transport
cargo:rustc-cfg=esp_idf_soc_rmt_support_rc_fast
cargo:rustc-cfg=esp_idf_esp32c3_universal_mac_addresses_four
cargo:rustc-cfg=esp_idf_lwip_netif_loopback
cargo:rustc-cfg=esp_idf_lwip_tcp_queue_ooseq
cargo:rustc-cfg=esp_idf_compiler_float_lib_from_gcclib
cargo:rustc-cfg=esp_idf_log_default_level_info
cargo:rustc-cfg=esp_idf_soc_rng_supported
cargo:rustc-cfg=esp_idf_esp_default_cpu_freq_mhz_160
cargo:rustc-cfg=esp_idf_mbedtls_ecp_dp_secp256k1_enabled
cargo:rustc-cfg=esp_idf_esp_task_wdt_en
cargo:rustc-cfg=esp_idf_mbedtls_hardware_mpi
cargo:rustc-cfg=esp_idf_mbedtls_ecp_dp_secp521r1_enabled
cargo:rustc-cfg=esp_idf_spiffs_cache_wr
cargo:rustc-cfg=esp_idf_soc_rmt_support_xtal
cargo:rustc-cfg=esp_idf_soc_i2s_supports_pcm
cargo:rustc-cfg=esp_idf_esp_wifi_mbedtls_tls_client
cargo:rustc-cfg=esp_idf_soc_spi_mem_support_wrap
cargo:rustc-cfg=esp_idf_soc_systimer_int_level
cargo:rustc-cfg=esp_idf_soc_spi_support_cd_sig
cargo:rustc-cfg=esp_idf_log_tag_level_cache_binary_min_heap
cargo:rustc-cfg=esp_idf_soc_spi_sct_buffer_num_max
cargo:rustc-cfg=esp_idf_esp_event_post_from_iram_isr
cargo:rustc-cfg=esp_idf_soc_twai_clk_support_apb
cargo:rustc-cfg=esp_idf_soc_spi_mem_support_idle_intr
cargo:rustc-cfg=esp_idf_soc_phy_supported
cargo:rustc-cfg=esp_idf_lwip_hook_ip6_select_src_addr_none
cargo:rustc-cfg=esp_idf_esp_rom_has_layout_table
cargo:rustc-cfg=esp_idf_soc_hmac_supported
cargo:rustc-cfg=esp_idf_soc_spi_support_clk_apb
cargo:rustc-cfg=esp_idf_soc_adc_supported
cargo:rustc-cfg=esp_idf_soc_rtc_slow_clk_support_rc_fast_d256
cargo:rustc-cfg=esp_idf_esptoolpy_flashfreq_80m_default
cargo:rustc-cfg=esp_idf_lwip_enable
cargo:rustc-cfg=esp_idf_app_compile_time_date
cargo:rustc-cfg=esp_idf_xtal_freq_40
cargo:rustc-cfg=esp_idf_soc_sleep_systimer_stall_workaround
cargo:rustc-cfg=esp_idf_esp_wifi_enabled
cargo:rustc-cfg=esp_idf_esp_int_wdt
cargo:rustc-cfg=esp_idf_mbedtls_ssl_renegotiation
cargo:rustc-cfg=esp_idf_mbedtls_rom_md5
cargo:rustc-cfg=esp_idf_compiler_optimization_size
cargo:rustc-cfg=esp_idf_soc_memprot_supported
cargo:rustc-cfg=esp_idf_idf_target_arch_riscv
cargo:rustc-cfg=esp_idf_esp_system_memprot_feature_lock
cargo:rustc-cfg=esp_idf_esp_console_uart_default
cargo:rustc-cfg=esp_idf_soc_adc_calibration_v1_supported
cargo:rustc-cfg=esp_idf_mbedtls_aes_use_interrupt
cargo:rustc-cfg=esp_idf_lwip_tcpip_task_affinity_no_affinity
cargo:rustc-cfg=esp_idf_esp_mac_addr_universe_eth
cargo:rustc-cfg=esp_idf_soc_spi_mem_support_sw_suspend
cargo:rustc-cfg=esp_idf_lwip_hook_nd6_get_gw_none
cargo:rustc-cfg=esp_idf_mbedtls_ecp_dp_bp256r1_enabled
cargo:rustc-cfg=esp_idf_soc_efuse_dis_download_icache
cargo:rustc-cfg=esp_idf_spi_flash_vendor_issi_supported
cargo:rustc-cfg=esp_idf_mmu_page_size_64kb
cargo:rustc-cfg=esp_idf_esp_timer_task_affinity_cpu0
cargo:rustc-cfg=esp_idf_eth_use_spi_ethernet
cargo:rustc-cfg=esp_idf_soc_wifi_wapi_support
cargo:rustc-cfg=esp_idf_lwip_ip6_frag
cargo:rustc-cfg=esp_idf_bootloader_compiler_optimization_size
cargo:rustc-cfg=esp_idf_apptrace_lock_enable
cargo:rustc-cfg=esp_idf_esp_wifi_enable_wpa3_sae
cargo:rustc-cfg=esp_idf_freertos_debug_ocdaware
cargo:rustc-cfg=esp_idf_soc_rtc_mem_supported
cargo:rustc-cfg=esp_idf_lwip_tcp_high_speed_retransmission
cargo:rustc-cfg=esp_idf_soc_uart_support_fsm_tx_wait_send
cargo:rustc-cfg=esp_idf_esp_system_rtc_fast_mem_as_heap_depcheck
cargo:rustc-cfg=esp_idf_mbedtls_certificate_bundle_default_full
cargo:rustc-cfg=esp_idf_esp_rom_uart_clk_is_xtal
cargo:rustc-cfg=esp_idf_openthread_rx_on_when_idle
cargo:rustc-cfg=esp_idf_esp_rom_has_encrypted_writes_using_legacy_drv
cargo:rustc-cfg=esp_idf_spi_flash_vendor_winbond_supported
cargo:rustc-cfg=esp_idf_freertos_tick_support_systimer
cargo:rustc-cfg=esp_idf_mbedtls_ecp_nist_optim
cargo:rustc-cfg=esp_idf_esp_wifi_gmac_support
cargo:rustc-cfg=esp_idf_soc_gpio_support_hold_io_in_dslp
cargo:rustc-cfg=esp_idf_mbedtls_ecp_dp_curve25519_enabled
cargo:rustc-cfg=esp_idf_soc_wifi_gcmp_support
cargo:rustc-cfg=esp_idf_esp_phy_enable_usb
cargo:rustc-cfg=esp_idf_soc_ble_50_supported
cargo:rustc-cfg=esp_idf_soc_i2c_slave_support_broadcast
cargo:rustc-cfg=esp_idf_soc_efuse_block9_key_purpose_quirk
cargo:rustc-cfg=esp_idf_esp_system_memprot_feature
cargo:rustc-cfg=esp_idf_gdma_ctrl_func_in_iram
cargo:rustc-cfg=esp_idf_soc_pm_support_bt_pd
cargo:rustc-cfg=esp_idf_lwip_tcp_oversize_mss
cargo:rustc-cfg=esp_idf_secure_rom_dl_mode_enabled
cargo:rustc-cfg=esp_idf_version_full="5.4.0"
cargo:rustc-cfg=esp_idf_version="5.4"
cargo:rustc-cfg=esp_idf_version_major="5"
cargo:rustc-cfg=esp_idf_version_minor="4"
cargo:rustc-cfg=esp_idf_version_patch="0"
cargo:rustc-cfg=esp_idf_comp_esp_driver_isp_enabled
cargo:rustc-cfg=esp_idf_comp_esp_common_enabled
cargo:rustc-cfg=esp_idf_comp_esp_driver_ppa_enabled
cargo:rustc-cfg=esp_idf_comp_esp_driver_touch_sens_enabled
cargo:rustc-cfg=esp_idf_comp_protobuf_c_enabled
cargo:rustc-cfg=esp_idf_comp_fatfs_enabled
cargo:rustc-cfg=esp_idf_comp_esp_driver_cam_enabled
cargo:rustc-cfg=esp_idf_comp_ieee802154_enabled
cargo:rustc-cfg=esp_idf_comp_esp_phy_enabled
cargo:rustc-cfg=esp_idf_comp_esp_driver_uart_enabled
cargo:rustc-cfg=esp_idf_comp_esp_tls_enabled
cargo:rustc-cfg=esp_idf_comp_esp_adc_enabled
cargo:rustc-cfg=esp_idf_comp_esp_driver_gpio_enabled
cargo:rustc-cfg=esp_idf_comp_esp_eth_enabled
cargo:rustc-cfg=esp_idf_comp_esp_local_ctrl_enabled
cargo:rustc-cfg=esp_idf_comp_idf_test_enabled
cargo:rustc-cfg=esp_idf_comp_nvs_sec_provider_enabled
cargo:rustc-cfg=esp_idf_comp_openthread_enabled
cargo:rustc-cfg=esp_idf_comp_esp_driver_tsens_enabled
cargo:rustc-cfg=esp_idf_comp_ulp_enabled
cargo:rustc-cfg=esp_idf_comp_esptool_py_enabled
cargo:rustc-cfg=esp_idf_comp_app_trace_enabled
cargo:rustc-cfg=esp_idf_comp_esp_partition_enabled
cargo:rustc-cfg=esp_idf_comp_esp_psram_enabled
cargo:rustc-cfg=esp_idf_comp_esp_driver_sdio_enabled
cargo:rustc-cfg=esp_idf_comp_riscv_enabled
cargo:rustc-cfg=esp_idf_comp_wifi_provisioning_enabled
cargo:rustc-cfg=esp_idf_comp_esp_gdbstub_enabled
cargo:rustc-cfg=esp_idf_comp_http_parser_enabled
cargo:rustc-cfg=esp_idf_comp_usb_enabled
cargo:rustc-cfg=esp_idf_comp_esp_https_server_enabled
cargo:rustc-cfg=esp_idf_comp_esp_hid_enabled
cargo:rustc-cfg=esp_idf_comp_sdmmc_enabled
cargo:rustc-cfg=esp_idf_comp_esp_driver_gptimer_enabled
cargo:rustc-cfg=esp_idf_comp_esp_driver_i2c_enabled
cargo:rustc-cfg=esp_idf_comp_esp_wifi_enabled
cargo:rustc-cfg=esp_idf_comp_spiffs_enabled
cargo:rustc-cfg=esp_idf_comp_esp_https_ota_enabled
cargo:rustc-cfg=esp_idf_comp_newlib_enabled
cargo:rustc-cfg=esp_idf_comp_esp_driver_i2s_enabled
cargo:rustc-cfg=esp_idf_comp_esp_mm_enabled
cargo:rustc-cfg=esp_idf_comp_esp_netif_enabled
cargo:rustc-cfg=esp_idf_comp_esp_http_server_enabled
cargo:rustc-cfg=esp_idf_comp_wear_levelling_enabled
cargo:rustc-cfg=esp_idf_comp_esp_event_enabled
cargo:rustc-cfg=esp_idf_comp_esp_coex_enabled
cargo:rustc-cfg=esp_idf_comp_esp_driver_ledc_enabled
cargo:rustc-cfg=esp_idf_comp_bootloader_enabled
cargo:rustc-cfg=esp_idf_comp_cxx_enabled
cargo:rustc-cfg=esp_idf_comp_esp_driver_sdmmc_enabled
cargo:rustc-cfg=esp_idf_comp_partition_table_enabled
cargo:rustc-cfg=esp_idf_comp_esp_vfs_console_enabled
cargo:rustc-cfg=esp_idf_comp_esp_lcd_enabled
cargo:rustc-cfg=esp_idf_comp_esp_rom_enabled
cargo:rustc-cfg=esp_idf_comp_esp_ringbuf_enabled
cargo:rustc-cfg=esp_idf_comp_bootloader_support_enabled
cargo:rustc-cfg=esp_idf_comp_esp_http_client_enabled
cargo:rustc-cfg=esp_idf_comp_espcoredump_enabled
cargo:rustc-cfg=esp_idf_comp_protocomm_enabled
cargo:rustc-cfg=esp_idf_comp_esp_driver_parlio_enabled
cargo:rustc-cfg=esp_idf_comp_app_update_enabled
cargo:rustc-cfg=esp_idf_comp_esp_hw_support_enabled
cargo:rustc-cfg=esp_idf_comp_lwip_enabled
cargo:rustc-cfg=esp_idf_comp_json_enabled
cargo:rustc-cfg=esp_idf_comp_esp_netif_stack_enabled
cargo:rustc-cfg=esp_idf_comp_esp_app_format_enabled
cargo:rustc-cfg=esp_idf_comp_heap_enabled
cargo:rustc-cfg=esp_idf_comp_pthread_enabled
cargo:rustc-cfg=esp_idf_comp_esp_driver_ana_cmpr_enabled
cargo:rustc-cfg=esp_idf_comp_esp_driver_sdspi_enabled
cargo:rustc-cfg=esp_idf_comp_esp_driver_usb_serial_jtag_enabled
cargo:rustc-cfg=esp_idf_comp_wpa_supplicant_enabled
cargo:rustc-cfg=esp_idf_comp_esp_driver_jpeg_enabled
cargo:rustc-cfg=esp_idf_comp_tcp_transport_enabled
cargo:rustc-cfg=esp_idf_comp_mqtt_enabled
cargo:rustc-cfg=esp_idf_comp_hal_enabled
cargo:rustc-cfg=esp_idf_comp_main_enabled
cargo:rustc-cfg=esp_idf_comp_spi_flash_enabled
cargo:rustc-cfg=esp_idf_comp_soc_enabled
cargo:rustc-cfg=esp_idf_comp_esp_driver_dac_enabled
cargo:rustc-cfg=esp_idf_comp_esp_system_enabled
cargo:rustc-cfg=esp_idf_comp_esp_bootloader_format_enabled
cargo:rustc-cfg=esp_idf_comp_unity_enabled
cargo:rustc-cfg=esp_idf_comp_rt_enabled
cargo:rustc-cfg=esp_idf_comp_esp_driver_pcnt_enabled
cargo:rustc-cfg=esp_idf_comp_esp_driver_spi_enabled
cargo:rustc-cfg=esp_idf_comp_esp_driver_mcpwm_enabled
cargo:rustc-cfg=esp_idf_comp_mbedtls_enabled
cargo:rustc-cfg=esp_idf_comp_efuse_enabled
cargo:rustc-cfg=esp_idf_comp_log_enabled
cargo:rustc-cfg=esp_idf_comp_nvs_flash_enabled
cargo:rustc-cfg=esp_idf_comp_esp_driver_rmt_enabled
cargo:rustc-cfg=esp_idf_comp_vfs_enabled
cargo:rustc-cfg=esp_idf_comp_cmock_enabled
cargo:rustc-cfg=esp_idf_comp_esp_driver_sdm_enabled
cargo:rustc-cfg=esp_idf_comp_bt_enabled
cargo:rustc-cfg=esp_idf_comp_driver_enabled
cargo:rustc-cfg=esp_idf_comp_console_enabled
cargo:rustc-cfg=esp_idf_comp_esp_pm_enabled
cargo:rustc-cfg=esp_idf_comp_esp_timer_enabled
cargo:rustc-cfg=esp_idf_comp_freertos_enabled
cargo:rustc-cfg=esp32c3
cargo:rustc-link-arg=--ldproxy-linker
cargo:rustc-link-arg=/home/sun/.espressif/tools/riscv32-esp-elf/esp-13.2.0_20240530/riscv32-esp-elf/bin/riscv32-esp-elf-gcc
cargo:rustc-link-arg=--ldproxy-cwd
cargo:rustc-link-arg=/home/sun/shared/git/esp-idf-websocket/target/riscv32imc-esp-espidf/debug/build/esp-idf-sys-da5cd259e2501118/out/build
cargo:rustc-link-arg=-march=rv32imc_zicsr_zifencei
cargo:rustc-link-arg=-nostartfiles
cargo:rustc-link-arg=-march=rv32imc_zicsr_zifencei
cargo:rustc-link-arg=--specs=nosys.specs
cargo:rustc-link-arg=-Wl,--cref
cargo:rustc-link-arg=-Wl,--defsym=IDF_TARGET_ESP32C3=0
cargo:rustc-link-arg=-Wl,--Map=/home/sun/shared/git/esp-idf-websocket/target/riscv32imc-esp-espidf/debug/build/esp-idf-sys-da5cd259e2501118/out/build/libespidf.map
cargo:rustc-link-arg=-Wl,--no-warn-rwx-segments
cargo:rustc-link-arg=-fno-rtti
cargo:rustc-link-arg=-fno-lto
cargo:rustc-link-arg=-Wl,--gc-sections
cargo:rustc-link-arg=-Wl,--warn-common
cargo:rustc-link-arg=-T
cargo:rustc-link-arg=rom.api.ld
cargo:rustc-link-arg=-T
cargo:rustc-link-arg=esp32c3.peripherals.ld
cargo:rustc-link-arg=-T
cargo:rustc-link-arg=esp32c3.rom.ld
cargo:rustc-link-arg=-T
cargo:rustc-link-arg=esp32c3.rom.api.ld
cargo:rustc-link-arg=-T
cargo:rustc-link-arg=esp32c3.rom.libgcc.ld
cargo:rustc-link-arg=-T
cargo:rustc-link-arg=esp32c3.rom.version.ld
cargo:rustc-link-arg=-T
cargo:rustc-link-arg=esp32c3.rom.eco3.ld
cargo:rustc-link-arg=-T
cargo:rustc-link-arg=esp32c3.rom.newlib.ld
cargo:rustc-link-arg=-T
cargo:rustc-link-arg=memory.ld
cargo:rustc-link-arg=-T
cargo:rustc-link-arg=sections.ld
cargo:rustc-link-arg=-L/home/sun/esp/esp-idf/components/riscv/ld
cargo:rustc-link-arg=-L/home/sun/esp/esp-idf/components/soc/esp32c3/ld
cargo:rustc-link-arg=-L/home/sun/esp/esp-idf/components/esp_rom/esp32c3/ld
cargo:rustc-link-arg=-L/home/sun/shared/git/esp-idf-websocket/target/riscv32imc-esp-espidf/debug/build/esp-idf-sys-da5cd259e2501118/out/build/esp-idf/esp_system/ld
cargo:rustc-link-arg=-L/home/sun/esp/esp-idf/components/esp_phy/lib/esp32c3
cargo:rustc-link-arg=-L/home/sun/esp/esp-idf/components/esp_wifi/lib/esp32c3
cargo:rustc-link-arg=esp-idf/riscv/libriscv.a
cargo:rustc-link-arg=esp-idf/esp_driver_gpio/libesp_driver_gpio.a
cargo:rustc-link-arg=esp-idf/esp_pm/libesp_pm.a
cargo:rustc-link-arg=esp-idf/mbedtls/libmbedtls.a
cargo:rustc-link-arg=esp-idf/esp_app_format/libesp_app_format.a
cargo:rustc-link-arg=esp-idf/esp_bootloader_format/libesp_bootloader_format.a
cargo:rustc-link-arg=esp-idf/app_update/libapp_update.a
cargo:rustc-link-arg=esp-idf/esp_partition/libesp_partition.a
cargo:rustc-link-arg=esp-idf/efuse/libefuse.a
cargo:rustc-link-arg=esp-idf/bootloader_support/libbootloader_support.a
cargo:rustc-link-arg=esp-idf/esp_mm/libesp_mm.a
cargo:rustc-link-arg=esp-idf/spi_flash/libspi_flash.a
cargo:rustc-link-arg=esp-idf/esp_system/libesp_system.a
cargo:rustc-link-arg=esp-idf/esp_common/libesp_common.a
cargo:rustc-link-arg=esp-idf/esp_rom/libesp_rom.a
cargo:rustc-link-arg=esp-idf/hal/libhal.a
cargo:rustc-link-arg=esp-idf/log/liblog.a
cargo:rustc-link-arg=esp-idf/heap/libheap.a
cargo:rustc-link-arg=esp-idf/soc/libsoc.a
cargo:rustc-link-arg=esp-idf/esp_hw_support/libesp_hw_support.a
cargo:rustc-link-arg=esp-idf/freertos/libfreertos.a
cargo:rustc-link-arg=esp-idf/newlib/libnewlib.a
cargo:rustc-link-arg=esp-idf/pthread/libpthread.a
cargo:rustc-link-arg=esp-idf/cxx/libcxx.a
cargo:rustc-link-arg=esp-idf/esp_timer/libesp_timer.a
cargo:rustc-link-arg=esp-idf/esp_driver_gptimer/libesp_driver_gptimer.a
cargo:rustc-link-arg=esp-idf/esp_ringbuf/libesp_ringbuf.a
cargo:rustc-link-arg=esp-idf/esp_driver_uart/libesp_driver_uart.a
cargo:rustc-link-arg=esp-idf/app_trace/libapp_trace.a
cargo:rustc-link-arg=esp-idf/esp_event/libesp_event.a
cargo:rustc-link-arg=esp-idf/nvs_flash/libnvs_flash.a
cargo:rustc-link-arg=esp-idf/esp_driver_spi/libesp_driver_spi.a
cargo:rustc-link-arg=esp-idf/esp_driver_i2s/libesp_driver_i2s.a
cargo:rustc-link-arg=esp-idf/sdmmc/libsdmmc.a
cargo:rustc-link-arg=esp-idf/esp_driver_sdspi/libesp_driver_sdspi.a
cargo:rustc-link-arg=esp-idf/esp_driver_rmt/libesp_driver_rmt.a
cargo:rustc-link-arg=esp-idf/esp_driver_tsens/libesp_driver_tsens.a
cargo:rustc-link-arg=esp-idf/esp_driver_sdm/libesp_driver_sdm.a
cargo:rustc-link-arg=esp-idf/esp_driver_i2c/libesp_driver_i2c.a
cargo:rustc-link-arg=esp-idf/esp_driver_ledc/libesp_driver_ledc.a
cargo:rustc-link-arg=esp-idf/esp_driver_usb_serial_jtag/libesp_driver_usb_serial_jtag.a
cargo:rustc-link-arg=esp-idf/driver/libdriver.a
cargo:rustc-link-arg=esp-idf/esp_phy/libesp_phy.a
cargo:rustc-link-arg=esp-idf/esp_vfs_console/libesp_vfs_console.a
cargo:rustc-link-arg=esp-idf/vfs/libvfs.a
cargo:rustc-link-arg=esp-idf/lwip/liblwip.a
cargo:rustc-link-arg=esp-idf/esp_netif/libesp_netif.a
cargo:rustc-link-arg=esp-idf/wpa_supplicant/libwpa_supplicant.a
cargo:rustc-link-arg=esp-idf/esp_coex/libesp_coex.a
cargo:rustc-link-arg=esp-idf/esp_wifi/libesp_wifi.a
cargo:rustc-link-arg=esp-idf/unity/libunity.a
cargo:rustc-link-arg=esp-idf/cmock/libcmock.a
cargo:rustc-link-arg=esp-idf/console/libconsole.a
cargo:rustc-link-arg=esp-idf/http_parser/libhttp_parser.a
cargo:rustc-link-arg=esp-idf/esp-tls/libesp-tls.a
cargo:rustc-link-arg=esp-idf/esp_adc/libesp_adc.a
cargo:rustc-link-arg=esp-idf/esp_driver_cam/libesp_driver_cam.a
cargo:rustc-link-arg=esp-idf/esp_eth/libesp_eth.a
cargo:rustc-link-arg=esp-idf/esp_gdbstub/libesp_gdbstub.a
cargo:rustc-link-arg=esp-idf/esp_hid/libesp_hid.a
cargo:rustc-link-arg=esp-idf/tcp_transport/libtcp_transport.a
cargo:rustc-link-arg=esp-idf/esp_http_client/libesp_http_client.a
cargo:rustc-link-arg=esp-idf/esp_http_server/libesp_http_server.a
cargo:rustc-link-arg=esp-idf/esp_https_ota/libesp_https_ota.a
cargo:rustc-link-arg=esp-idf/esp_https_server/libesp_https_server.a
cargo:rustc-link-arg=esp-idf/esp_lcd/libesp_lcd.a
cargo:rustc-link-arg=esp-idf/protobuf-c/libprotobuf-c.a
cargo:rustc-link-arg=esp-idf/protocomm/libprotocomm.a
cargo:rustc-link-arg=esp-idf/esp_local_ctrl/libesp_local_ctrl.a
cargo:rustc-link-arg=esp-idf/espcoredump/libespcoredump.a
cargo:rustc-link-arg=esp-idf/wear_levelling/libwear_levelling.a
cargo:rustc-link-arg=esp-idf/fatfs/libfatfs.a
cargo:rustc-link-arg=esp-idf/json/libjson.a
cargo:rustc-link-arg=esp-idf/mqtt/libmqtt.a
cargo:rustc-link-arg=esp-idf/nvs_sec_provider/libnvs_sec_provider.a
cargo:rustc-link-arg=esp-idf/rt/librt.a
cargo:rustc-link-arg=esp-idf/spiffs/libspiffs.a
cargo:rustc-link-arg=esp-idf/wifi_provisioning/libwifi_provisioning.a
cargo:rustc-link-arg=esp-idf/main/libmain.a
cargo:rustc-link-arg=esp-idf/app_trace/libapp_trace.a
cargo:rustc-link-arg=esp-idf/app_trace/libapp_trace.a
cargo:rustc-link-arg=esp-idf/cmock/libcmock.a
cargo:rustc-link-arg=esp-idf/unity/libunity.a
cargo:rustc-link-arg=esp-idf/esp_driver_cam/libesp_driver_cam.a
cargo:rustc-link-arg=esp-idf/esp_eth/libesp_eth.a
cargo:rustc-link-arg=esp-idf/esp_hid/libesp_hid.a
cargo:rustc-link-arg=esp-idf/esp_lcd/libesp_lcd.a
cargo:rustc-link-arg=esp-idf/esp_local_ctrl/libesp_local_ctrl.a
cargo:rustc-link-arg=esp-idf/esp_https_server/libesp_https_server.a
cargo:rustc-link-arg=esp-idf/espcoredump/libespcoredump.a
cargo:rustc-link-arg=-u
cargo:rustc-link-arg=esp_system_include_coredump_init
cargo:rustc-link-arg=esp-idf/fatfs/libfatfs.a
cargo:rustc-link-arg=esp-idf/wear_levelling/libwear_levelling.a
cargo:rustc-link-arg=esp-idf/mqtt/libmqtt.a
cargo:rustc-link-arg=esp-idf/nvs_sec_provider/libnvs_sec_provider.a
cargo:rustc-link-arg=-u
cargo:rustc-link-arg=nvs_sec_provider_include_impl
cargo:rustc-link-arg=esp-idf/rt/librt.a
cargo:rustc-link-arg=esp-idf/spiffs/libspiffs.a
cargo:rustc-link-arg=esp-idf/wifi_provisioning/libwifi_provisioning.a
cargo:rustc-link-arg=esp-idf/protocomm/libprotocomm.a
cargo:rustc-link-arg=esp-idf/console/libconsole.a
cargo:rustc-link-arg=esp-idf/protobuf-c/libprotobuf-c.a
cargo:rustc-link-arg=esp-idf/json/libjson.a
cargo:rustc-link-arg=esp-idf/riscv/libriscv.a
cargo:rustc-link-arg=esp-idf/esp_driver_gpio/libesp_driver_gpio.a
cargo:rustc-link-arg=esp-idf/esp_pm/libesp_pm.a
cargo:rustc-link-arg=esp-idf/mbedtls/libmbedtls.a
cargo:rustc-link-arg=esp-idf/esp_app_format/libesp_app_format.a
cargo:rustc-link-arg=esp-idf/esp_bootloader_format/libesp_bootloader_format.a
cargo:rustc-link-arg=esp-idf/app_update/libapp_update.a
cargo:rustc-link-arg=esp-idf/esp_partition/libesp_partition.a
cargo:rustc-link-arg=esp-idf/efuse/libefuse.a
cargo:rustc-link-arg=esp-idf/bootloader_support/libbootloader_support.a
cargo:rustc-link-arg=esp-idf/esp_mm/libesp_mm.a
cargo:rustc-link-arg=esp-idf/spi_flash/libspi_flash.a
cargo:rustc-link-arg=esp-idf/esp_system/libesp_system.a
cargo:rustc-link-arg=esp-idf/esp_common/libesp_common.a
cargo:rustc-link-arg=esp-idf/esp_rom/libesp_rom.a
cargo:rustc-link-arg=esp-idf/hal/libhal.a
cargo:rustc-link-arg=esp-idf/log/liblog.a
cargo:rustc-link-arg=esp-idf/heap/libheap.a
cargo:rustc-link-arg=esp-idf/soc/libsoc.a
cargo:rustc-link-arg=esp-idf/esp_hw_support/libesp_hw_support.a
cargo:rustc-link-arg=esp-idf/freertos/libfreertos.a
cargo:rustc-link-arg=esp-idf/newlib/libnewlib.a
cargo:rustc-link-arg=esp-idf/pthread/libpthread.a
cargo:rustc-link-arg=esp-idf/cxx/libcxx.a
cargo:rustc-link-arg=esp-idf/esp_timer/libesp_timer.a
cargo:rustc-link-arg=esp-idf/esp_driver_gptimer/libesp_driver_gptimer.a
cargo:rustc-link-arg=esp-idf/esp_ringbuf/libesp_ringbuf.a
cargo:rustc-link-arg=esp-idf/esp_driver_uart/libesp_driver_uart.a
cargo:rustc-link-arg=esp-idf/esp_event/libesp_event.a
cargo:rustc-link-arg=esp-idf/nvs_flash/libnvs_flash.a
cargo:rustc-link-arg=esp-idf/esp_driver_spi/libesp_driver_spi.a
cargo:rustc-link-arg=esp-idf/esp_driver_i2s/libesp_driver_i2s.a
cargo:rustc-link-arg=esp-idf/sdmmc/libsdmmc.a
cargo:rustc-link-arg=esp-idf/esp_driver_sdspi/libesp_driver_sdspi.a
cargo:rustc-link-arg=esp-idf/esp_driver_rmt/libesp_driver_rmt.a
cargo:rustc-link-arg=esp-idf/esp_driver_tsens/libesp_driver_tsens.a
cargo:rustc-link-arg=esp-idf/esp_driver_sdm/libesp_driver_sdm.a
cargo:rustc-link-arg=esp-idf/esp_driver_i2c/libesp_driver_i2c.a
cargo:rustc-link-arg=esp-idf/esp_driver_ledc/libesp_driver_ledc.a
cargo:rustc-link-arg=esp-idf/esp_driver_usb_serial_jtag/libesp_driver_usb_serial_jtag.a
cargo:rustc-link-arg=esp-idf/driver/libdriver.a
cargo:rustc-link-arg=esp-idf/esp_phy/libesp_phy.a
cargo:rustc-link-arg=esp-idf/esp_vfs_console/libesp_vfs_console.a
cargo:rustc-link-arg=esp-idf/vfs/libvfs.a
cargo:rustc-link-arg=esp-idf/lwip/liblwip.a
cargo:rustc-link-arg=esp-idf/esp_netif/libesp_netif.a
cargo:rustc-link-arg=esp-idf/wpa_supplicant/libwpa_supplicant.a
cargo:rustc-link-arg=esp-idf/esp_coex/libesp_coex.a
cargo:rustc-link-arg=esp-idf/esp_wifi/libesp_wifi.a
cargo:rustc-link-arg=esp-idf/http_parser/libhttp_parser.a
cargo:rustc-link-arg=esp-idf/esp-tls/libesp-tls.a
cargo:rustc-link-arg=esp-idf/esp_adc/libesp_adc.a
cargo:rustc-link-arg=esp-idf/esp_gdbstub/libesp_gdbstub.a
cargo:rustc-link-arg=esp-idf/tcp_transport/libtcp_transport.a
cargo:rustc-link-arg=esp-idf/esp_http_client/libesp_http_client.a
cargo:rustc-link-arg=esp-idf/esp_http_server/libesp_http_server.a
cargo:rustc-link-arg=esp-idf/esp_https_ota/libesp_https_ota.a
cargo:rustc-link-arg=esp-idf/mbedtls/mbedtls/library/libmbedtls.a
cargo:rustc-link-arg=esp-idf/mbedtls/mbedtls/library/libmbedcrypto.a
cargo:rustc-link-arg=esp-idf/mbedtls/mbedtls/library/libmbedx509.a
cargo:rustc-link-arg=esp-idf/mbedtls/mbedtls/3rdparty/everest/libeverest.a
cargo:rustc-link-arg=esp-idf/mbedtls/mbedtls/3rdparty/p256-m/libp256m.a
cargo:rustc-link-arg=/home/sun/esp/esp-idf/components/esp_wifi/lib/esp32c3/libcore.a
cargo:rustc-link-arg=/home/sun/esp/esp-idf/components/esp_wifi/lib/esp32c3/libespnow.a
cargo:rustc-link-arg=/home/sun/esp/esp-idf/components/esp_wifi/lib/esp32c3/libmesh.a
cargo:rustc-link-arg=/home/sun/esp/esp-idf/components/esp_wifi/lib/esp32c3/libnet80211.a
cargo:rustc-link-arg=/home/sun/esp/esp-idf/components/esp_wifi/lib/esp32c3/libpp.a
cargo:rustc-link-arg=/home/sun/esp/esp-idf/components/esp_wifi/lib/esp32c3/libsmartconfig.a
cargo:rustc-link-arg=/home/sun/esp/esp-idf/components/esp_wifi/lib/esp32c3/libwapi.a
cargo:rustc-link-arg=esp-idf/riscv/libriscv.a
cargo:rustc-link-arg=esp-idf/esp_driver_gpio/libesp_driver_gpio.a
cargo:rustc-link-arg=esp-idf/esp_pm/libesp_pm.a
cargo:rustc-link-arg=esp-idf/mbedtls/libmbedtls.a
cargo:rustc-link-arg=esp-idf/esp_app_format/libesp_app_format.a
cargo:rustc-link-arg=esp-idf/esp_bootloader_format/libesp_bootloader_format.a
cargo:rustc-link-arg=esp-idf/app_update/libapp_update.a
cargo:rustc-link-arg=esp-idf/esp_partition/libesp_partition.a
cargo:rustc-link-arg=esp-idf/efuse/libefuse.a
cargo:rustc-link-arg=esp-idf/bootloader_support/libbootloader_support.a
cargo:rustc-link-arg=esp-idf/esp_mm/libesp_mm.a
cargo:rustc-link-arg=esp-idf/spi_flash/libspi_flash.a
cargo:rustc-link-arg=esp-idf/esp_system/libesp_system.a
cargo:rustc-link-arg=esp-idf/esp_common/libesp_common.a
cargo:rustc-link-arg=esp-idf/esp_rom/libesp_rom.a
cargo:rustc-link-arg=esp-idf/hal/libhal.a
cargo:rustc-link-arg=esp-idf/log/liblog.a
cargo:rustc-link-arg=esp-idf/heap/libheap.a
cargo:rustc-link-arg=esp-idf/soc/libsoc.a
cargo:rustc-link-arg=esp-idf/esp_hw_support/libesp_hw_support.a
cargo:rustc-link-arg=esp-idf/freertos/libfreertos.a
cargo:rustc-link-arg=esp-idf/newlib/libnewlib.a
cargo:rustc-link-arg=esp-idf/pthread/libpthread.a
cargo:rustc-link-arg=esp-idf/cxx/libcxx.a
cargo:rustc-link-arg=esp-idf/esp_timer/libesp_timer.a
cargo:rustc-link-arg=esp-idf/esp_driver_gptimer/libesp_driver_gptimer.a
cargo:rustc-link-arg=esp-idf/esp_ringbuf/libesp_ringbuf.a
cargo:rustc-link-arg=esp-idf/esp_driver_uart/libesp_driver_uart.a
cargo:rustc-link-arg=esp-idf/esp_event/libesp_event.a
cargo:rustc-link-arg=esp-idf/nvs_flash/libnvs_flash.a
cargo:rustc-link-arg=esp-idf/esp_driver_spi/libesp_driver_spi.a
cargo:rustc-link-arg=esp-idf/esp_driver_i2s/libesp_driver_i2s.a
cargo:rustc-link-arg=esp-idf/sdmmc/libsdmmc.a
cargo:rustc-link-arg=esp-idf/esp_driver_sdspi/libesp_driver_sdspi.a
cargo:rustc-link-arg=esp-idf/esp_driver_rmt/libesp_driver_rmt.a
cargo:rustc-link-arg=esp-idf/esp_driver_tsens/libesp_driver_tsens.a
cargo:rustc-link-arg=esp-idf/esp_driver_sdm/libesp_driver_sdm.a
cargo:rustc-link-arg=esp-idf/esp_driver_i2c/libesp_driver_i2c.a
cargo:rustc-link-arg=esp-idf/esp_driver_ledc/libesp_driver_ledc.a
cargo:rustc-link-arg=esp-idf/esp_driver_usb_serial_jtag/libesp_driver_usb_serial_jtag.a
cargo:rustc-link-arg=esp-idf/driver/libdriver.a
cargo:rustc-link-arg=esp-idf/esp_phy/libesp_phy.a
cargo:rustc-link-arg=esp-idf/esp_vfs_console/libesp_vfs_console.a
cargo:rustc-link-arg=esp-idf/vfs/libvfs.a
cargo:rustc-link-arg=esp-idf/lwip/liblwip.a
cargo:rustc-link-arg=esp-idf/esp_netif/libesp_netif.a
cargo:rustc-link-arg=esp-idf/wpa_supplicant/libwpa_supplicant.a
cargo:rustc-link-arg=esp-idf/esp_coex/libesp_coex.a
cargo:rustc-link-arg=esp-idf/esp_wifi/libesp_wifi.a
cargo:rustc-link-arg=esp-idf/http_parser/libhttp_parser.a
cargo:rustc-link-arg=esp-idf/esp-tls/libesp-tls.a
cargo:rustc-link-arg=esp-idf/esp_adc/libesp_adc.a
cargo:rustc-link-arg=esp-idf/esp_gdbstub/libesp_gdbstub.a
cargo:rustc-link-arg=esp-idf/tcp_transport/libtcp_transport.a
cargo:rustc-link-arg=esp-idf/esp_http_client/libesp_http_client.a
cargo:rustc-link-arg=esp-idf/esp_http_server/libesp_http_server.a
cargo:rustc-link-arg=esp-idf/esp_https_ota/libesp_https_ota.a
cargo:rustc-link-arg=esp-idf/mbedtls/mbedtls/library/libmbedtls.a
cargo:rustc-link-arg=esp-idf/mbedtls/mbedtls/library/libmbedcrypto.a
cargo:rustc-link-arg=esp-idf/mbedtls/mbedtls/library/libmbedx509.a
cargo:rustc-link-arg=esp-idf/mbedtls/mbedtls/3rdparty/everest/libeverest.a
cargo:rustc-link-arg=esp-idf/mbedtls/mbedtls/3rdparty/p256-m/libp256m.a
cargo:rustc-link-arg=/home/sun/esp/esp-idf/components/esp_wifi/lib/esp32c3/libcore.a
cargo:rustc-link-arg=/home/sun/esp/esp-idf/components/esp_wifi/lib/esp32c3/libespnow.a
cargo:rustc-link-arg=/home/sun/esp/esp-idf/components/esp_wifi/lib/esp32c3/libmesh.a
cargo:rustc-link-arg=/home/sun/esp/esp-idf/components/esp_wifi/lib/esp32c3/libnet80211.a
cargo:rustc-link-arg=/home/sun/esp/esp-idf/components/esp_wifi/lib/esp32c3/libpp.a
cargo:rustc-link-arg=/home/sun/esp/esp-idf/components/esp_wifi/lib/esp32c3/libsmartconfig.a
cargo:rustc-link-arg=/home/sun/esp/esp-idf/components/esp_wifi/lib/esp32c3/libwapi.a
cargo:rustc-link-arg=esp-idf/riscv/libriscv.a
cargo:rustc-link-arg=esp-idf/esp_driver_gpio/libesp_driver_gpio.a
cargo:rustc-link-arg=esp-idf/esp_pm/libesp_pm.a
cargo:rustc-link-arg=esp-idf/mbedtls/libmbedtls.a
cargo:rustc-link-arg=esp-idf/esp_app_format/libesp_app_format.a
cargo:rustc-link-arg=esp-idf/esp_bootloader_format/libesp_bootloader_format.a
cargo:rustc-link-arg=esp-idf/app_update/libapp_update.a
cargo:rustc-link-arg=esp-idf/esp_partition/libesp_partition.a
cargo:rustc-link-arg=esp-idf/efuse/libefuse.a
cargo:rustc-link-arg=esp-idf/bootloader_support/libbootloader_support.a
cargo:rustc-link-arg=esp-idf/esp_mm/libesp_mm.a
cargo:rustc-link-arg=esp-idf/spi_flash/libspi_flash.a
cargo:rustc-link-arg=esp-idf/esp_system/libesp_system.a
cargo:rustc-link-arg=esp-idf/esp_common/libesp_common.a
cargo:rustc-link-arg=esp-idf/esp_rom/libesp_rom.a
cargo:rustc-link-arg=esp-idf/hal/libhal.a
cargo:rustc-link-arg=esp-idf/log/liblog.a
cargo:rustc-link-arg=esp-idf/heap/libheap.a
cargo:rustc-link-arg=esp-idf/soc/libsoc.a
cargo:rustc-link-arg=esp-idf/esp_hw_support/libesp_hw_support.a
cargo:rustc-link-arg=esp-idf/freertos/libfreertos.a
cargo:rustc-link-arg=esp-idf/newlib/libnewlib.a
cargo:rustc-link-arg=esp-idf/pthread/libpthread.a
cargo:rustc-link-arg=esp-idf/cxx/libcxx.a
cargo:rustc-link-arg=esp-idf/esp_timer/libesp_timer.a
cargo:rustc-link-arg=esp-idf/esp_driver_gptimer/libesp_driver_gptimer.a
cargo:rustc-link-arg=esp-idf/esp_ringbuf/libesp_ringbuf.a
cargo:rustc-link-arg=esp-idf/esp_driver_uart/libesp_driver_uart.a
cargo:rustc-link-arg=esp-idf/esp_event/libesp_event.a
cargo:rustc-link-arg=esp-idf/nvs_flash/libnvs_flash.a
cargo:rustc-link-arg=esp-idf/esp_driver_spi/libesp_driver_spi.a
cargo:rustc-link-arg=esp-idf/esp_driver_i2s/libesp_driver_i2s.a
cargo:rustc-link-arg=esp-idf/sdmmc/libsdmmc.a
cargo:rustc-link-arg=esp-idf/esp_driver_sdspi/libesp_driver_sdspi.a
cargo:rustc-link-arg=esp-idf/esp_driver_rmt/libesp_driver_rmt.a
cargo:rustc-link-arg=esp-idf/esp_driver_tsens/libesp_driver_tsens.a
cargo:rustc-link-arg=esp-idf/esp_driver_sdm/libesp_driver_sdm.a
cargo:rustc-link-arg=esp-idf/esp_driver_i2c/libesp_driver_i2c.a
cargo:rustc-link-arg=esp-idf/esp_driver_ledc/libesp_driver_ledc.a
cargo:rustc-link-arg=esp-idf/esp_driver_usb_serial_jtag/libesp_driver_usb_serial_jtag.a
cargo:rustc-link-arg=esp-idf/driver/libdriver.a
cargo:rustc-link-arg=esp-idf/esp_phy/libesp_phy.a
cargo:rustc-link-arg=esp-idf/esp_vfs_console/libesp_vfs_console.a
cargo:rustc-link-arg=esp-idf/vfs/libvfs.a
cargo:rustc-link-arg=esp-idf/lwip/liblwip.a
cargo:rustc-link-arg=esp-idf/esp_netif/libesp_netif.a
cargo:rustc-link-arg=esp-idf/wpa_supplicant/libwpa_supplicant.a
cargo:rustc-link-arg=esp-idf/esp_coex/libesp_coex.a
cargo:rustc-link-arg=esp-idf/esp_wifi/libesp_wifi.a
cargo:rustc-link-arg=esp-idf/http_parser/libhttp_parser.a
cargo:rustc-link-arg=esp-idf/esp-tls/libesp-tls.a
cargo:rustc-link-arg=esp-idf/esp_adc/libesp_adc.a
cargo:rustc-link-arg=esp-idf/esp_gdbstub/libesp_gdbstub.a
cargo:rustc-link-arg=esp-idf/tcp_transport/libtcp_transport.a
cargo:rustc-link-arg=esp-idf/esp_http_client/libesp_http_client.a
cargo:rustc-link-arg=esp-idf/esp_http_server/libesp_http_server.a
cargo:rustc-link-arg=esp-idf/esp_https_ota/libesp_https_ota.a
cargo:rustc-link-arg=esp-idf/mbedtls/mbedtls/library/libmbedtls.a
cargo:rustc-link-arg=esp-idf/mbedtls/mbedtls/library/libmbedcrypto.a
cargo:rustc-link-arg=esp-idf/mbedtls/mbedtls/library/libmbedx509.a
cargo:rustc-link-arg=esp-idf/mbedtls/mbedtls/3rdparty/everest/libeverest.a
cargo:rustc-link-arg=esp-idf/mbedtls/mbedtls/3rdparty/p256-m/libp256m.a
cargo:rustc-link-arg=/home/sun/esp/esp-idf/components/esp_wifi/lib/esp32c3/libcore.a
cargo:rustc-link-arg=/home/sun/esp/esp-idf/components/esp_wifi/lib/esp32c3/libespnow.a
cargo:rustc-link-arg=/home/sun/esp/esp-idf/components/esp_wifi/lib/esp32c3/libmesh.a
cargo:rustc-link-arg=/home/sun/esp/esp-idf/components/esp_wifi/lib/esp32c3/libnet80211.a
cargo:rustc-link-arg=/home/sun/esp/esp-idf/components/esp_wifi/lib/esp32c3/libpp.a
cargo:rustc-link-arg=/home/sun/esp/esp-idf/components/esp_wifi/lib/esp32c3/libsmartconfig.a
cargo:rustc-link-arg=/home/sun/esp/esp-idf/components/esp_wifi/lib/esp32c3/libwapi.a
cargo:rustc-link-arg=esp-idf/riscv/libriscv.a
cargo:rustc-link-arg=esp-idf/esp_driver_gpio/libesp_driver_gpio.a
cargo:rustc-link-arg=esp-idf/esp_pm/libesp_pm.a
cargo:rustc-link-arg=esp-idf/mbedtls/libmbedtls.a
cargo:rustc-link-arg=esp-idf/esp_app_format/libesp_app_format.a
cargo:rustc-link-arg=esp-idf/esp_bootloader_format/libesp_bootloader_format.a
cargo:rustc-link-arg=esp-idf/app_update/libapp_update.a
cargo:rustc-link-arg=esp-idf/esp_partition/libesp_partition.a
cargo:rustc-link-arg=esp-idf/efuse/libefuse.a
cargo:rustc-link-arg=esp-idf/bootloader_support/libbootloader_support.a
cargo:rustc-link-arg=esp-idf/esp_mm/libesp_mm.a
cargo:rustc-link-arg=esp-idf/spi_flash/libspi_flash.a
cargo:rustc-link-arg=esp-idf/esp_system/libesp_system.a
cargo:rustc-link-arg=esp-idf/esp_common/libesp_common.a
cargo:rustc-link-arg=esp-idf/esp_rom/libesp_rom.a
cargo:rustc-link-arg=esp-idf/hal/libhal.a
cargo:rustc-link-arg=esp-idf/log/liblog.a
cargo:rustc-link-arg=esp-idf/heap/libheap.a
cargo:rustc-link-arg=esp-idf/soc/libsoc.a
cargo:rustc-link-arg=esp-idf/esp_hw_support/libesp_hw_support.a
cargo:rustc-link-arg=esp-idf/freertos/libfreertos.a
cargo:rustc-link-arg=esp-idf/newlib/libnewlib.a
cargo:rustc-link-arg=esp-idf/pthread/libpthread.a
cargo:rustc-link-arg=esp-idf/cxx/libcxx.a
cargo:rustc-link-arg=esp-idf/esp_timer/libesp_timer.a
cargo:rustc-link-arg=esp-idf/esp_driver_gptimer/libesp_driver_gptimer.a
cargo:rustc-link-arg=esp-idf/esp_ringbuf/libesp_ringbuf.a
cargo:rustc-link-arg=esp-idf/esp_driver_uart/libesp_driver_uart.a
cargo:rustc-link-arg=esp-idf/esp_event/libesp_event.a
cargo:rustc-link-arg=esp-idf/nvs_flash/libnvs_flash.a
cargo:rustc-link-arg=esp-idf/esp_driver_spi/libesp_driver_spi.a
cargo:rustc-link-arg=esp-idf/esp_driver_i2s/libesp_driver_i2s.a
cargo:rustc-link-arg=esp-idf/sdmmc/libsdmmc.a
cargo:rustc-link-arg=esp-idf/esp_driver_sdspi/libesp_driver_sdspi.a
cargo:rustc-link-arg=esp-idf/esp_driver_rmt/libesp_driver_rmt.a
cargo:rustc-link-arg=esp-idf/esp_driver_tsens/libesp_driver_tsens.a
cargo:rustc-link-arg=esp-idf/esp_driver_sdm/libesp_driver_sdm.a
cargo:rustc-link-arg=esp-idf/esp_driver_i2c/libesp_driver_i2c.a
cargo:rustc-link-arg=esp-idf/esp_driver_ledc/libesp_driver_ledc.a
cargo:rustc-link-arg=esp-idf/esp_driver_usb_serial_jtag/libesp_driver_usb_serial_jtag.a
cargo:rustc-link-arg=esp-idf/driver/libdriver.a
cargo:rustc-link-arg=esp-idf/esp_phy/libesp_phy.a
cargo:rustc-link-arg=esp-idf/esp_vfs_console/libesp_vfs_console.a
cargo:rustc-link-arg=esp-idf/vfs/libvfs.a
cargo:rustc-link-arg=esp-idf/lwip/liblwip.a
cargo:rustc-link-arg=esp-idf/esp_netif/libesp_netif.a
cargo:rustc-link-arg=esp-idf/wpa_supplicant/libwpa_supplicant.a
cargo:rustc-link-arg=esp-idf/esp_coex/libesp_coex.a
cargo:rustc-link-arg=esp-idf/esp_wifi/libesp_wifi.a
cargo:rustc-link-arg=esp-idf/http_parser/libhttp_parser.a
cargo:rustc-link-arg=esp-idf/esp-tls/libesp-tls.a
cargo:rustc-link-arg=esp-idf/esp_adc/libesp_adc.a
cargo:rustc-link-arg=esp-idf/esp_gdbstub/libesp_gdbstub.a
cargo:rustc-link-arg=esp-idf/tcp_transport/libtcp_transport.a
cargo:rustc-link-arg=esp-idf/esp_http_client/libesp_http_client.a
cargo:rustc-link-arg=esp-idf/esp_http_server/libesp_http_server.a
cargo:rustc-link-arg=esp-idf/esp_https_ota/libesp_https_ota.a
cargo:rustc-link-arg=esp-idf/mbedtls/mbedtls/library/libmbedtls.a
cargo:rustc-link-arg=esp-idf/mbedtls/mbedtls/library/libmbedcrypto.a
cargo:rustc-link-arg=esp-idf/mbedtls/mbedtls/library/libmbedx509.a
cargo:rustc-link-arg=esp-idf/mbedtls/mbedtls/3rdparty/everest/libeverest.a
cargo:rustc-link-arg=esp-idf/mbedtls/mbedtls/3rdparty/p256-m/libp256m.a
cargo:rustc-link-arg=/home/sun/esp/esp-idf/components/esp_wifi/lib/esp32c3/libcore.a
cargo:rustc-link-arg=/home/sun/esp/esp-idf/components/esp_wifi/lib/esp32c3/libespnow.a
cargo:rustc-link-arg=/home/sun/esp/esp-idf/components/esp_wifi/lib/esp32c3/libmesh.a
cargo:rustc-link-arg=/home/sun/esp/esp-idf/components/esp_wifi/lib/esp32c3/libnet80211.a
cargo:rustc-link-arg=/home/sun/esp/esp-idf/components/esp_wifi/lib/esp32c3/libpp.a
cargo:rustc-link-arg=/home/sun/esp/esp-idf/components/esp_wifi/lib/esp32c3/libsmartconfig.a
cargo:rustc-link-arg=/home/sun/esp/esp-idf/components/esp_wifi/lib/esp32c3/libwapi.a
cargo:rustc-link-arg=esp-idf/riscv/libriscv.a
cargo:rustc-link-arg=esp-idf/esp_driver_gpio/libesp_driver_gpio.a
cargo:rustc-link-arg=esp-idf/esp_pm/libesp_pm.a
cargo:rustc-link-arg=esp-idf/mbedtls/libmbedtls.a
cargo:rustc-link-arg=esp-idf/esp_app_format/libesp_app_format.a
cargo:rustc-link-arg=esp-idf/esp_bootloader_format/libesp_bootloader_format.a
cargo:rustc-link-arg=esp-idf/app_update/libapp_update.a
cargo:rustc-link-arg=esp-idf/esp_partition/libesp_partition.a
cargo:rustc-link-arg=esp-idf/efuse/libefuse.a
cargo:rustc-link-arg=esp-idf/bootloader_support/libbootloader_support.a
cargo:rustc-link-arg=esp-idf/esp_mm/libesp_mm.a
cargo:rustc-link-arg=esp-idf/spi_flash/libspi_flash.a
cargo:rustc-link-arg=esp-idf/esp_system/libesp_system.a
cargo:rustc-link-arg=esp-idf/esp_common/libesp_common.a
cargo:rustc-link-arg=esp-idf/esp_rom/libesp_rom.a
cargo:rustc-link-arg=esp-idf/hal/libhal.a
cargo:rustc-link-arg=esp-idf/log/liblog.a
cargo:rustc-link-arg=esp-idf/heap/libheap.a
cargo:rustc-link-arg=esp-idf/soc/libsoc.a
cargo:rustc-link-arg=esp-idf/esp_hw_support/libesp_hw_support.a
cargo:rustc-link-arg=esp-idf/freertos/libfreertos.a
cargo:rustc-link-arg=esp-idf/newlib/libnewlib.a
cargo:rustc-link-arg=esp-idf/pthread/libpthread.a
cargo:rustc-link-arg=esp-idf/cxx/libcxx.a
cargo:rustc-link-arg=esp-idf/esp_timer/libesp_timer.a
cargo:rustc-link-arg=esp-idf/esp_driver_gptimer/libesp_driver_gptimer.a
cargo:rustc-link-arg=esp-idf/esp_ringbuf/libesp_ringbuf.a
cargo:rustc-link-arg=esp-idf/esp_driver_uart/libesp_driver_uart.a
cargo:rustc-link-arg=esp-idf/esp_event/libesp_event.a
cargo:rustc-link-arg=esp-idf/nvs_flash/libnvs_flash.a
cargo:rustc-link-arg=esp-idf/esp_driver_spi/libesp_driver_spi.a
cargo:rustc-link-arg=esp-idf/esp_driver_i2s/libesp_driver_i2s.a
cargo:rustc-link-arg=esp-idf/sdmmc/libsdmmc.a
cargo:rustc-link-arg=esp-idf/esp_driver_sdspi/libesp_driver_sdspi.a
cargo:rustc-link-arg=esp-idf/esp_driver_rmt/libesp_driver_rmt.a
cargo:rustc-link-arg=esp-idf/esp_driver_tsens/libesp_driver_tsens.a
cargo:rustc-link-arg=esp-idf/esp_driver_sdm/libesp_driver_sdm.a
cargo:rustc-link-arg=esp-idf/esp_driver_i2c/libesp_driver_i2c.a
cargo:rustc-link-arg=esp-idf/esp_driver_ledc/libesp_driver_ledc.a
cargo:rustc-link-arg=esp-idf/esp_driver_usb_serial_jtag/libesp_driver_usb_serial_jtag.a
cargo:rustc-link-arg=esp-idf/driver/libdriver.a
cargo:rustc-link-arg=esp-idf/esp_phy/libesp_phy.a
cargo:rustc-link-arg=esp-idf/esp_vfs_console/libesp_vfs_console.a
cargo:rustc-link-arg=esp-idf/vfs/libvfs.a
cargo:rustc-link-arg=esp-idf/lwip/liblwip.a
cargo:rustc-link-arg=esp-idf/esp_netif/libesp_netif.a
cargo:rustc-link-arg=esp-idf/wpa_supplicant/libwpa_supplicant.a
cargo:rustc-link-arg=esp-idf/esp_coex/libesp_coex.a
cargo:rustc-link-arg=esp-idf/esp_wifi/libesp_wifi.a
cargo:rustc-link-arg=esp-idf/http_parser/libhttp_parser.a
cargo:rustc-link-arg=esp-idf/esp-tls/libesp-tls.a
cargo:rustc-link-arg=esp-idf/esp_adc/libesp_adc.a
cargo:rustc-link-arg=esp-idf/esp_gdbstub/libesp_gdbstub.a
cargo:rustc-link-arg=esp-idf/tcp_transport/libtcp_transport.a
cargo:rustc-link-arg=esp-idf/esp_http_client/libesp_http_client.a
cargo:rustc-link-arg=esp-idf/esp_http_server/libesp_http_server.a
cargo:rustc-link-arg=esp-idf/esp_https_ota/libesp_https_ota.a
cargo:rustc-link-arg=esp-idf/mbedtls/mbedtls/library/libmbedtls.a
cargo:rustc-link-arg=esp-idf/mbedtls/mbedtls/library/libmbedcrypto.a
cargo:rustc-link-arg=esp-idf/mbedtls/mbedtls/library/libmbedx509.a
cargo:rustc-link-arg=esp-idf/mbedtls/mbedtls/3rdparty/everest/libeverest.a
cargo:rustc-link-arg=esp-idf/mbedtls/mbedtls/3rdparty/p256-m/libp256m.a
cargo:rustc-link-arg=/home/sun/esp/esp-idf/components/esp_wifi/lib/esp32c3/libcore.a
cargo:rustc-link-arg=/home/sun/esp/esp-idf/components/esp_wifi/lib/esp32c3/libespnow.a
cargo:rustc-link-arg=/home/sun/esp/esp-idf/components/esp_wifi/lib/esp32c3/libmesh.a
cargo:rustc-link-arg=/home/sun/esp/esp-idf/components/esp_wifi/lib/esp32c3/libnet80211.a
cargo:rustc-link-arg=/home/sun/esp/esp-idf/components/esp_wifi/lib/esp32c3/libpp.a
cargo:rustc-link-arg=/home/sun/esp/esp-idf/components/esp_wifi/lib/esp32c3/libsmartconfig.a
cargo:rustc-link-arg=/home/sun/esp/esp-idf/components/esp_wifi/lib/esp32c3/libwapi.a
cargo:rustc-link-arg=esp-idf/riscv/libriscv.a
cargo:rustc-link-arg=esp-idf/esp_driver_gpio/libesp_driver_gpio.a
cargo:rustc-link-arg=esp-idf/esp_pm/libesp_pm.a
cargo:rustc-link-arg=esp-idf/mbedtls/libmbedtls.a
cargo:rustc-link-arg=esp-idf/esp_app_format/libesp_app_format.a
cargo:rustc-link-arg=esp-idf/esp_bootloader_format/libesp_bootloader_format.a
cargo:rustc-link-arg=esp-idf/app_update/libapp_update.a
cargo:rustc-link-arg=esp-idf/esp_partition/libesp_partition.a
cargo:rustc-link-arg=esp-idf/efuse/libefuse.a
cargo:rustc-link-arg=esp-idf/bootloader_support/libbootloader_support.a
cargo:rustc-link-arg=esp-idf/esp_mm/libesp_mm.a
cargo:rustc-link-arg=esp-idf/spi_flash/libspi_flash.a
cargo:rustc-link-arg=esp-idf/esp_system/libesp_system.a
cargo:rustc-link-arg=esp-idf/esp_common/libesp_common.a
cargo:rustc-link-arg=esp-idf/esp_rom/libesp_rom.a
cargo:rustc-link-arg=esp-idf/hal/libhal.a
cargo:rustc-link-arg=esp-idf/log/liblog.a
cargo:rustc-link-arg=esp-idf/heap/libheap.a
cargo:rustc-link-arg=esp-idf/soc/libsoc.a
cargo:rustc-link-arg=esp-idf/esp_hw_support/libesp_hw_support.a
cargo:rustc-link-arg=esp-idf/freertos/libfreertos.a
cargo:rustc-link-arg=esp-idf/newlib/libnewlib.a
cargo:rustc-link-arg=esp-idf/pthread/libpthread.a
cargo:rustc-link-arg=esp-idf/cxx/libcxx.a
cargo:rustc-link-arg=esp-idf/esp_timer/libesp_timer.a
cargo:rustc-link-arg=esp-idf/esp_driver_gptimer/libesp_driver_gptimer.a
cargo:rustc-link-arg=esp-idf/esp_ringbuf/libesp_ringbuf.a
cargo:rustc-link-arg=esp-idf/esp_driver_uart/libesp_driver_uart.a
cargo:rustc-link-arg=esp-idf/esp_event/libesp_event.a
cargo:rustc-link-arg=esp-idf/nvs_flash/libnvs_flash.a
cargo:rustc-link-arg=esp-idf/esp_driver_spi/libesp_driver_spi.a
cargo:rustc-link-arg=esp-idf/esp_driver_i2s/libesp_driver_i2s.a
cargo:rustc-link-arg=esp-idf/sdmmc/libsdmmc.a
cargo:rustc-link-arg=esp-idf/esp_driver_sdspi/libesp_driver_sdspi.a
cargo:rustc-link-arg=esp-idf/esp_driver_rmt/libesp_driver_rmt.a
cargo:rustc-link-arg=esp-idf/esp_driver_tsens/libesp_driver_tsens.a
cargo:rustc-link-arg=esp-idf/esp_driver_sdm/libesp_driver_sdm.a
cargo:rustc-link-arg=esp-idf/esp_driver_i2c/libesp_driver_i2c.a
cargo:rustc-link-arg=esp-idf/esp_driver_ledc/libesp_driver_ledc.a
cargo:rustc-link-arg=esp-idf/esp_driver_usb_serial_jtag/libesp_driver_usb_serial_jtag.a
cargo:rustc-link-arg=esp-idf/driver/libdriver.a
cargo:rustc-link-arg=esp-idf/esp_phy/libesp_phy.a
cargo:rustc-link-arg=esp-idf/esp_vfs_console/libesp_vfs_console.a
cargo:rustc-link-arg=esp-idf/vfs/libvfs.a
cargo:rustc-link-arg=esp-idf/lwip/liblwip.a
cargo:rustc-link-arg=esp-idf/esp_netif/libesp_netif.a
cargo:rustc-link-arg=esp-idf/wpa_supplicant/libwpa_supplicant.a
cargo:rustc-link-arg=esp-idf/esp_coex/libesp_coex.a
cargo:rustc-link-arg=esp-idf/esp_wifi/libesp_wifi.a
cargo:rustc-link-arg=esp-idf/http_parser/libhttp_parser.a
cargo:rustc-link-arg=esp-idf/esp-tls/libesp-tls.a
cargo:rustc-link-arg=esp-idf/esp_adc/libesp_adc.a
cargo:rustc-link-arg=esp-idf/esp_gdbstub/libesp_gdbstub.a
cargo:rustc-link-arg=esp-idf/tcp_transport/libtcp_transport.a
cargo:rustc-link-arg=esp-idf/esp_http_client/libesp_http_client.a
cargo:rustc-link-arg=esp-idf/esp_http_server/libesp_http_server.a
cargo:rustc-link-arg=esp-idf/esp_https_ota/libesp_https_ota.a
cargo:rustc-link-arg=esp-idf/mbedtls/mbedtls/library/libmbedtls.a
cargo:rustc-link-arg=esp-idf/mbedtls/mbedtls/library/libmbedcrypto.a
cargo:rustc-link-arg=esp-idf/mbedtls/mbedtls/library/libmbedx509.a
cargo:rustc-link-arg=esp-idf/mbedtls/mbedtls/3rdparty/everest/libeverest.a
cargo:rustc-link-arg=esp-idf/mbedtls/mbedtls/3rdparty/p256-m/libp256m.a
cargo:rustc-link-arg=/home/sun/esp/esp-idf/components/esp_wifi/lib/esp32c3/libcore.a
cargo:rustc-link-arg=/home/sun/esp/esp-idf/components/esp_wifi/lib/esp32c3/libespnow.a
cargo:rustc-link-arg=/home/sun/esp/esp-idf/components/esp_wifi/lib/esp32c3/libmesh.a
cargo:rustc-link-arg=/home/sun/esp/esp-idf/components/esp_wifi/lib/esp32c3/libnet80211.a
cargo:rustc-link-arg=/home/sun/esp/esp-idf/components/esp_wifi/lib/esp32c3/libpp.a
cargo:rustc-link-arg=/home/sun/esp/esp-idf/components/esp_wifi/lib/esp32c3/libsmartconfig.a
cargo:rustc-link-arg=/home/sun/esp/esp-idf/components/esp_wifi/lib/esp32c3/libwapi.a
cargo:rustc-link-arg=-u
cargo:rustc-link-arg=esp_app_desc
cargo:rustc-link-arg=-u
cargo:rustc-link-arg=esp_efuse_startup_include_func
cargo:rustc-link-arg=-u
cargo:rustc-link-arg=start_app
cargo:rustc-link-arg=-u
cargo:rustc-link-arg=__ubsan_include
cargo:rustc-link-arg=-u
cargo:rustc-link-arg=esp_system_include_startup_funcs
cargo:rustc-link-arg=-u
cargo:rustc-link-arg=__assert_func
cargo:rustc-link-arg=-Wl,--undefined=FreeRTOS_openocd_params
cargo:rustc-link-arg=-u
cargo:rustc-link-arg=app_main
cargo:rustc-link-arg=-lc
cargo:rustc-link-arg=-lm
cargo:rustc-link-arg=-u
cargo:rustc-link-arg=newlib_include_heap_impl
cargo:rustc-link-arg=-u
cargo:rustc-link-arg=newlib_include_syscalls_impl
cargo:rustc-link-arg=-u
cargo:rustc-link-arg=newlib_include_pthread_impl
cargo:rustc-link-arg=-u
cargo:rustc-link-arg=newlib_include_assert_impl
cargo:rustc-link-arg=-u
cargo:rustc-link-arg=newlib_include_getentropy_impl
cargo:rustc-link-arg=-u
cargo:rustc-link-arg=newlib_include_init_funcs
cargo:rustc-link-arg=-u
cargo:rustc-link-arg=pthread_include_pthread_impl
cargo:rustc-link-arg=-u
cargo:rustc-link-arg=pthread_include_pthread_cond_var_impl
cargo:rustc-link-arg=-u
cargo:rustc-link-arg=pthread_include_pthread_local_storage_impl
cargo:rustc-link-arg=-u
cargo:rustc-link-arg=pthread_include_pthread_rwlock_impl
cargo:rustc-link-arg=-u
cargo:rustc-link-arg=pthread_include_pthread_semaphore_impl
cargo:rustc-link-arg=-Wl,--wrap=__register_frame_info_bases
cargo:rustc-link-arg=-Wl,--wrap=__register_frame_info
cargo:rustc-link-arg=-Wl,--wrap=__register_frame
cargo:rustc-link-arg=-Wl,--wrap=__register_frame_info_table_bases
cargo:rustc-link-arg=-Wl,--wrap=__register_frame_info_table
cargo:rustc-link-arg=-Wl,--wrap=__register_frame_table
cargo:rustc-link-arg=-Wl,--wrap=__deregister_frame_info_bases
cargo:rustc-link-arg=-Wl,--wrap=__deregister_frame_info
cargo:rustc-link-arg=-Wl,--wrap=_Unwind_Find_FDE
cargo:rustc-link-arg=-Wl,--wrap=_Unwind_GetGR
cargo:rustc-link-arg=-Wl,--wrap=_Unwind_GetCFA
cargo:rustc-link-arg=-Wl,--wrap=_Unwind_GetIP
cargo:rustc-link-arg=-Wl,--wrap=_Unwind_GetIPInfo
cargo:rustc-link-arg=-Wl,--wrap=_Unwind_GetRegionStart
cargo:rustc-link-arg=-Wl,--wrap=_Unwind_GetDataRelBase
cargo:rustc-link-arg=-Wl,--wrap=_Unwind_GetTextRelBase
cargo:rustc-link-arg=-Wl,--wrap=_Unwind_SetIP
cargo:rustc-link-arg=-Wl,--wrap=_Unwind_SetGR
cargo:rustc-link-arg=-Wl,--wrap=_Unwind_GetLanguageSpecificData
cargo:rustc-link-arg=-Wl,--wrap=_Unwind_FindEnclosingFunction
cargo:rustc-link-arg=-Wl,--wrap=_Unwind_Resume
cargo:rustc-link-arg=-Wl,--wrap=_Unwind_RaiseException
cargo:rustc-link-arg=-Wl,--wrap=_Unwind_DeleteException
cargo:rustc-link-arg=-Wl,--wrap=_Unwind_ForcedUnwind
cargo:rustc-link-arg=-Wl,--wrap=_Unwind_Resume_or_Rethrow
cargo:rustc-link-arg=-Wl,--wrap=_Unwind_Backtrace
cargo:rustc-link-arg=-Wl,--wrap=__cxa_call_unexpected
cargo:rustc-link-arg=-Wl,--wrap=__gxx_personality_v0
cargo:rustc-link-arg=-Wl,--wrap=__cxa_throw
cargo:rustc-link-arg=-Wl,--wrap=__cxa_allocate_exception
cargo:rustc-link-arg=-u
cargo:rustc-link-arg=__cxa_guard_dummy
cargo:rustc-link-arg=-u
cargo:rustc-link-arg=__cxx_init_dummy
cargo:rustc-link-arg=-lstdc++
cargo:rustc-link-arg=esp-idf/pthread/libpthread.a
cargo:rustc-link-arg=esp-idf/newlib/libnewlib.a
cargo:rustc-link-arg=-lgcc
cargo:rustc-link-arg=esp-idf/cxx/libcxx.a
cargo:rustc-link-arg=-u
cargo:rustc-link-arg=__cxx_fatal_exception
cargo:rustc-link-arg=-u
cargo:rustc-link-arg=esp_timer_init_include_func
cargo:rustc-link-arg=-u
cargo:rustc-link-arg=uart_vfs_include_dev_init
cargo:rustc-link-arg=-u
cargo:rustc-link-arg=usb_serial_jtag_vfs_include_dev_init
cargo:rustc-link-arg=-u
cargo:rustc-link-arg=usb_serial_jtag_connection_monitor_include
cargo:rustc-link-arg=-u
cargo:rustc-link-arg=include_esp_phy_override
cargo:rustc-link-arg=-lphy
cargo:rustc-link-arg=-lbtbb
cargo:rustc-link-arg=esp-idf/esp_phy/libesp_phy.a
cargo:rustc-link-arg=-lphy
cargo:rustc-link-arg=-lbtbb
cargo:rustc-link-arg=esp-idf/esp_phy/libesp_phy.a
cargo:rustc-link-arg=-lphy
cargo:rustc-link-arg=-lbtbb
cargo:rustc-link-arg=-u
cargo:rustc-link-arg=esp_vfs_include_console_register
cargo:rustc-link-arg=-u
cargo:rustc-link-arg=vfs_include_syscalls_impl
cargo:rustc-link-arg=-u
cargo:rustc-link-arg=esp_vfs_include_nullfs_register

@omani
Copy link
Author

omani commented Oct 3, 2024

ok here the reproducing of the issue:
working snapshot:

$ . ~/esp/esp-idf/export.sh
Setting IDF_PATH to '/home/sun/esp/esp-idf'
Detecting the Python interpreter
Checking "python3" ...
Python 3.12.3
"python3" has been detected
Checking Python compatibility
Checking other ESP-IDF version.
Not using an unsupported version of tool xtensa-esp-elf found in PATH: esp-13.2.0_20230928. To use it, run '/usr/bin/python3 /home/sun/esp/esp-idf/tools/idf_tools.py export --prefer-system'
Adding ESP-IDF tools to PATH...
Checking if Python packages are up to date...
Constraint file: /home/sun/.espressif/espidf.constraints.v5.4.txt
Requirement files:
 - /home/sun/esp/esp-idf/tools/requirements/requirements.core.txt
Python being checked: /home/sun/.espressif/python_env/idf5.4_py3.12_env/bin/python
Python requirements are satisfied.
Added the following directories to PATH:
  /home/sun/esp/esp-idf/components/espcoredump
  /home/sun/esp/esp-idf/components/partition_table
  /home/sun/esp/esp-idf/components/app_update
  /home/sun/.espressif/tools/xtensa-esp-elf-gdb/14.2_20240403/xtensa-esp-elf-gdb/bin
  /home/sun/.espressif/tools/riscv32-esp-elf-gdb/14.2_20240403/riscv32-esp-elf-gdb/bin
  /home/sun/.espressif/tools/xtensa-esp-elf/esp-13.2.0_20240530/xtensa-esp-elf/bin
  /home/sun/.espressif/tools/riscv32-esp-elf/esp-13.2.0_20240530/riscv32-esp-elf/bin
  /home/sun/.espressif/tools/esp32ulp-elf/2.38_20240113/esp32ulp-elf/bin
  /home/sun/.espressif/tools/openocd-esp32/v0.12.0-esp32-20240726/openocd-esp32/bin
  /home/sun/.espressif/tools/xtensa-esp-elf-gdb/14.2_20240403/xtensa-esp-elf-gdb/bin
  /home/sun/.espressif/tools/riscv32-esp-elf-gdb/14.2_20240403/riscv32-esp-elf-gdb/bin
  /home/sun/.espressif/tools/xtensa-esp-elf/esp-13.2.0_20240530/xtensa-esp-elf/bin
  /home/sun/.espressif/tools/riscv32-esp-elf/esp-13.2.0_20240530/riscv32-esp-elf/bin
  /home/sun/.espressif/tools/esp32ulp-elf/2.38_20240113/esp32ulp-elf/bin
  /home/sun/.espressif/tools/openocd-esp32/v0.12.0-esp32-20240726/openocd-esp32/bin
  /home/sun/.espressif/python_env/idf5.4_py3.12_env/bin
  /home/sun/esp/esp-idf/tools
Done! You can now compile ESP-IDF projects.
Go to the project directory and run:

  idf.py build

cargo build runs fine:

$ cargo clean
     Removed 2994 files, 1.5GiB total
$ cargo build
   Compiling compiler_builtins v0.1.123
   Compiling core v0.0.0 (/home/sun/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core)
   Compiling libc v0.2.158
   Compiling proc-macro2 v1.0.86
   Compiling unicode-ident v1.0.13
   Compiling memchr v2.5.0
   Compiling std v0.0.0 (/home/sun/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std)
   Compiling quote v1.0.37
   Compiling memchr v2.7.4
   Compiling cfg-if v1.0.0
   Compiling syn v2.0.79
   Compiling libc v0.2.159
   Compiling serde v1.0.210
   Compiling bitflags v2.6.0
   Compiling aho-corasick v1.1.3
   Compiling serde_derive v1.0.210
   Compiling crossbeam-utils v0.8.20
   Compiling regex-syntax v0.8.5
   Compiling glob v0.3.1
   Compiling rustc-std-workspace-core v1.99.0 (/home/sun/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/rustc-std-workspace-core)
   Compiling rustix v0.38.37
   Compiling alloc v0.0.0 (/home/sun/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/alloc)
   Compiling unwind v0.0.0 (/home/sun/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/unwind)
   Compiling adler v1.0.2
   Compiling rustc-demangle v0.1.24
   Compiling regex-automata v0.4.8
   Compiling cfg_aliases v0.2.1
   Compiling nix v0.29.0
   Compiling rustc-std-workspace-alloc v1.99.0 (/home/sun/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/rustc-std-workspace-alloc)
   Compiling gimli v0.29.0
   Compiling hashbrown v0.14.5
   Compiling miniz_oxide v0.7.4
   Compiling addr2line v0.22.0
   Compiling std_detect v0.1.5 (/home/sun/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/stdarch/crates/std_detect)
   Compiling object v0.36.2
   Compiling panic_abort v0.0.0 (/home/sun/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/panic_abort)
   Compiling panic_unwind v0.0.0 (/home/sun/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/panic_unwind)
   Compiling clang-sys v1.8.1
   Compiling prettyplease v0.2.22
   Compiling syn v1.0.109
   Compiling linux-raw-sys v0.4.14
   Compiling log v0.4.22
   Compiling rustversion v1.0.17
   Compiling proc_macro v0.0.0 (/home/sun/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/proc_macro)
   Compiling crossbeam-epoch v0.9.18
   Compiling bstr v1.10.0
   Compiling shlex v1.3.0
   Compiling minimal-lexical v0.2.1
   Compiling serde_json v1.0.128
   Compiling thiserror v1.0.64
   Compiling either v1.13.0
   Compiling same-file v1.0.6
   Compiling nom v7.1.3
   Compiling walkdir v2.5.0
   Compiling globset v0.4.15
   Compiling crossbeam-deque v0.8.5
   Compiling thiserror-impl v1.0.64
   Compiling libloading v0.8.5
   Compiling cvt v0.1.2
   Compiling anyhow v1.0.89
   Compiling itoa v1.0.11
   Compiling once_cell v1.20.1
   Compiling bindgen v0.69.4
   Compiling home v0.5.9
   Compiling heck v0.4.1
   Compiling ryu v1.0.18
   Compiling strum_macros v0.24.3
   Compiling which v4.4.2
   Compiling fs_at v0.2.1
   Compiling ignore v0.4.23
   Compiling cexpr v0.6.0
   Compiling itertools v0.12.1
   Compiling cc v1.1.24
   Compiling regex v1.11.0
   Compiling fastrand v2.1.1
   Compiling rustc-hash v1.1.0
   Compiling bitflags v1.3.2
   Compiling lazycell v1.3.0
   Compiling lazy_static v1.5.0
   Compiling normpath v1.3.0
   Compiling globwalk v0.8.1
   Compiling remove_dir_all v0.8.4
   Compiling tempfile v3.13.0
   Compiling cmake v0.1.51
   Compiling filetime v0.2.25
   Compiling semver v1.0.23
   Compiling camino v1.1.9
   Compiling strum v0.24.1
   Compiling cargo-platform v0.1.8
   Compiling envy v0.4.2
   Compiling autocfg v1.4.0
   Compiling fnv v1.0.7
   Compiling cargo_metadata v0.18.1
   Compiling ident_case v1.0.1
   Compiling num-traits v0.2.19
   Compiling embuild v0.32.0
   Compiling darling_core v0.20.10
   Compiling byteorder v1.5.0
   Compiling nb v1.1.0
   Compiling heapless v0.8.0
   Compiling embedded-io-async v0.6.1
   Compiling esp-idf-sys v0.35.0
   Compiling esp-idf-hal v0.44.1
   Compiling darling_macro v0.20.10
   Compiling hash32 v0.3.1
   Compiling darling v0.20.10
   Compiling stable_deref_trait v1.2.0
   Compiling embedded-io v0.6.1
   Compiling embassy-time-driver v0.1.0
   Compiling unicode-xid v0.2.6
   Compiling iana-time-zone v0.1.61
   Compiling const_format_proc_macros v0.2.33
   Compiling chrono v0.4.38
   Compiling enumset_derive v0.10.0
   Compiling futures-task v0.3.30
   Compiling embedded-hal v1.0.0
   Compiling futures-core v0.3.30
   Compiling pin-utils v0.1.0
   Compiling pin-project-lite v0.2.14
   Compiling version_check v0.9.5
   Compiling embassy-sync v0.6.0
   Compiling embedded-hal-async v1.0.0
   Compiling uncased v0.9.10
   Compiling const_format v0.2.33
   Compiling futures-util v0.3.30
   Compiling enumset v1.1.5
   Compiling build-time v0.1.3
   Compiling esp-idf-svc v0.49.1
   Compiling nb v0.1.3
   Compiling critical-section v1.1.3
   Compiling void v1.0.2
   Compiling num_enum_derive v0.7.3
   Compiling litrs v0.4.1
   Compiling document-features v0.2.10
   Compiling embedded-hal v0.2.7
   Compiling embedded-hal-nb v1.0.0
   Compiling embedded-can v0.4.1
   Compiling atomic-waker v1.1.2
   Compiling embedded-svc v0.28.0
   Compiling esp-idf-websocket v0.1.0 (/home/sun/shared/git/esp-idf-websocket)
   Compiling embassy-futures v0.1.1
   Compiling num_enum v0.7.3
    Finished `dev` profile [optimized + debuginfo] target(s) in 2m 08s

update the ubuntu system:

$ sudo apt upgrade
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
#
# Patches available for packages affected by CUPS Remote Code Execution issue
# tracked by CVE-2024-47076, CVE-2024-47175, CVE-2024-47176, and CVE-2024-47177
# For more see: https://ubuntu.com/blog/cups-remote-code-execution
#
The following upgrades have been deferred due to phasing:
  python3-distupgrade ubuntu-release-upgrader-core
The following packages will be upgraded:
  apparmor chromium chromium-common chromium-sandbox cloud-init curl fwupd libapparmor1 libcups2t64
  libcurl3t64-gnutls libcurl4t64 libexpat1 libexpat1-dev libfwupd2 libopenjp2-7 libproc2-0
  libpython3.12-dev libpython3.12-minimal libpython3.12-stdlib libpython3.12t64 linux-libc-dev
  lxd-agent-loader mdadm nodejs open-vm-tools procps python3-pkg-resources python3-setuptools
  python3-setuptools-whl python3-update-manager python3.12 python3.12-dev python3.12-minimal
  python3.12-venv systemd-hwe-hwdb ubuntu-pro-client ubuntu-pro-client-l10n update-manager-core vim
  vim-common vim-runtime vim-tiny xxd
43 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
24 standard LTS security updates
Need to get 173 MB of archives.
After this operation, 972 kB disk space will be freed.
Do you want to continue? [Y/n] ^C

but cancel here. I pick only python3.12 to speed up the upgrade process:

$ sudo apt install python3.12
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
  libpython3.12-dev libpython3.12-minimal libpython3.12-stdlib libpython3.12t64 python3.12-dev
  python3.12-minimal python3.12-venv
Suggested packages:
  python3.12-doc binfmt-support
The following packages will be upgraded:
  libpython3.12-dev libpython3.12-minimal libpython3.12-stdlib libpython3.12t64 python3.12
  python3.12-dev python3.12-minimal python3.12-venv
8 upgraded, 0 newly installed, 0 to remove and 37 not upgraded.
Need to get 14.4 MB of archives.
After this operation, 3072 B of additional disk space will be used.
Do you want to continue? [Y/n]
Get:1 http://archive.ubuntu.com/ubuntu noble-updates/main amd64 python3.12-dev amd64 3.12.3-1ubuntu0.2 [498 kB]
Get:2 http://archive.ubuntu.com/ubuntu noble-updates/main amd64 libpython3.12-dev amd64 3.12.3-1ubuntu0.2 [5672 kB]
Get:3 http://archive.ubuntu.com/ubuntu noble-updates/main amd64 libpython3.12t64 amd64 3.12.3-1ubuntu0.2 [2339 kB]
Get:4 http://archive.ubuntu.com/ubuntu noble-updates/universe amd64 python3.12-venv amd64 3.12.3-1ubuntu0.2 [5678 B]
Get:5 http://archive.ubuntu.com/ubuntu noble-updates/main amd64 python3.12 amd64 3.12.3-1ubuntu0.2 [651 kB]
Get:6 http://archive.ubuntu.com/ubuntu noble-updates/main amd64 libpython3.12-stdlib amd64 3.12.3-1ubuntu0.2 [2069 kB]
Get:7 http://archive.ubuntu.com/ubuntu noble-updates/main amd64 python3.12-minimal amd64 3.12.3-1ubuntu0.2 [2343 kB]
Get:8 http://archive.ubuntu.com/ubuntu noble-updates/main amd64 libpython3.12-minimal amd64 3.12.3-1ubuntu0.2 [834 kB]
Fetched 14.4 MB in 13s (1068 kB/s)
(Reading database ... 92883 files and directories currently installed.)
Preparing to unpack .../0-python3.12-dev_3.12.3-1ubuntu0.2_amd64.deb ...
Unpacking python3.12-dev (3.12.3-1ubuntu0.2) over (3.12.3-1ubuntu0.1) ...
Preparing to unpack .../1-libpython3.12-dev_3.12.3-1ubuntu0.2_amd64.deb ...
Unpacking libpython3.12-dev:amd64 (3.12.3-1ubuntu0.2) over (3.12.3-1ubuntu0.1) ...
Preparing to unpack .../2-libpython3.12t64_3.12.3-1ubuntu0.2_amd64.deb ...
Unpacking libpython3.12t64:amd64 (3.12.3-1ubuntu0.2) over (3.12.3-1ubuntu0.1) ...
Preparing to unpack .../3-python3.12-venv_3.12.3-1ubuntu0.2_amd64.deb ...
Unpacking python3.12-venv (3.12.3-1ubuntu0.2) over (3.12.3-1ubuntu0.1) ...
Preparing to unpack .../4-python3.12_3.12.3-1ubuntu0.2_amd64.deb ...
Unpacking python3.12 (3.12.3-1ubuntu0.2) over (3.12.3-1ubuntu0.1) ...
Preparing to unpack .../5-libpython3.12-stdlib_3.12.3-1ubuntu0.2_amd64.deb ...
Unpacking libpython3.12-stdlib:amd64 (3.12.3-1ubuntu0.2) over (3.12.3-1ubuntu0.1) ...
Preparing to unpack .../6-python3.12-minimal_3.12.3-1ubuntu0.2_amd64.deb ...
Unpacking python3.12-minimal (3.12.3-1ubuntu0.2) over (3.12.3-1ubuntu0.1) ...
Preparing to unpack .../7-libpython3.12-minimal_3.12.3-1ubuntu0.2_amd64.deb ...
Unpacking libpython3.12-minimal:amd64 (3.12.3-1ubuntu0.2) over (3.12.3-1ubuntu0.1) ...
Setting up libpython3.12-minimal:amd64 (3.12.3-1ubuntu0.2) ...
Setting up python3.12-minimal (3.12.3-1ubuntu0.2) ...
Setting up libpython3.12-stdlib:amd64 (3.12.3-1ubuntu0.2) ...
Setting up python3.12 (3.12.3-1ubuntu0.2) ...
Setting up libpython3.12t64:amd64 (3.12.3-1ubuntu0.2) ...
Setting up python3.12-venv (3.12.3-1ubuntu0.2) ...
Setting up libpython3.12-dev:amd64 (3.12.3-1ubuntu0.2) ...
Setting up python3.12-dev (3.12.3-1ubuntu0.2) ...
Processing triggers for systemd (255.4-1ubuntu8.4) ...
Processing triggers for man-db (2.12.0-4build2) ...
Processing triggers for libc-bin (2.39-0ubuntu8.3) ...
Scanning processes...
Scanning candidates...

Restarting services...

Service restarts being deferred:
 systemctl restart unattended-upgrades.service

No containers need to be restarted.

No user sessions are running outdated binaries.

No VM guests are running outdated hypervisor (qemu) binaries on this host.

now (since this is a new shell) export ESP-IDF again here:

$ . ~/esp/esp-idf/export.sh
Setting IDF_PATH to '/home/sun/esp/esp-idf'
Detecting the Python interpreter
Checking "python3" ...
Python 3.12.3
"python3" has been detected
Checking Python compatibility
Checking other ESP-IDF version.
Not using an unsupported version of tool xtensa-esp-elf found in PATH: esp-13.2.0_20230928. To use it, run '/usr/bin/python3 /home/sun/esp/esp-idf/tools/idf_tools.py export --prefer-system'
Adding ESP-IDF tools to PATH...
Checking if Python packages are up to date...
Constraint file: /home/sun/.espressif/espidf.constraints.v5.4.txt
Requirement files:
 - /home/sun/esp/esp-idf/tools/requirements/requirements.core.txt
Python being checked: /home/sun/.espressif/python_env/idf5.4_py3.12_env/bin/python
Python requirements are satisfied.
Added the following directories to PATH:
  /home/sun/esp/esp-idf/components/espcoredump
  /home/sun/esp/esp-idf/components/partition_table
  /home/sun/esp/esp-idf/components/app_update
  /home/sun/.espressif/tools/xtensa-esp-elf-gdb/14.2_20240403/xtensa-esp-elf-gdb/bin
  /home/sun/.espressif/tools/riscv32-esp-elf-gdb/14.2_20240403/riscv32-esp-elf-gdb/bin
  /home/sun/.espressif/tools/xtensa-esp-elf/esp-13.2.0_20240530/xtensa-esp-elf/bin
  /home/sun/.espressif/tools/riscv32-esp-elf/esp-13.2.0_20240530/riscv32-esp-elf/bin
  /home/sun/.espressif/tools/esp32ulp-elf/2.38_20240113/esp32ulp-elf/bin
  /home/sun/.espressif/tools/openocd-esp32/v0.12.0-esp32-20240726/openocd-esp32/bin
  /home/sun/.espressif/tools/xtensa-esp-elf-gdb/14.2_20240403/xtensa-esp-elf-gdb/bin
  /home/sun/.espressif/tools/riscv32-esp-elf-gdb/14.2_20240403/riscv32-esp-elf-gdb/bin
  /home/sun/.espressif/tools/xtensa-esp-elf/esp-13.2.0_20240530/xtensa-esp-elf/bin
  /home/sun/.espressif/tools/riscv32-esp-elf/esp-13.2.0_20240530/riscv32-esp-elf/bin
  /home/sun/.espressif/tools/esp32ulp-elf/2.38_20240113/esp32ulp-elf/bin
  /home/sun/.espressif/tools/openocd-esp32/v0.12.0-esp32-20240726/openocd-esp32/bin
  /home/sun/.espressif/python_env/idf5.4_py3.12_env/bin
  /home/sun/esp/esp-idf/tools
Done! You can now compile ESP-IDF projects.
Go to the project directory and run:

  idf.py build

re-run the build process:

$ cargo clean
     Removed 3031 files, 1.6GiB total
$ cargo build
   Compiling compiler_builtins v0.1.123
   Compiling core v0.0.0 (/home/sun/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core)
   Compiling libc v0.2.158
   Compiling proc-macro2 v1.0.86
   Compiling unicode-ident v1.0.13
   Compiling memchr v2.5.0
   Compiling std v0.0.0 (/home/sun/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std)
   Compiling memchr v2.7.4
   Compiling cfg-if v1.0.0
   Compiling libc v0.2.159
   Compiling serde v1.0.210
   Compiling bitflags v2.6.0
   Compiling quote v1.0.37
   Compiling aho-corasick v1.1.3
   Compiling syn v2.0.79
   Compiling crossbeam-utils v0.8.20
   Compiling regex-syntax v0.8.5
   Compiling cfg_aliases v0.2.1
   Compiling rustix v0.38.37
   Compiling glob v0.3.1
   Compiling clang-sys v1.8.1
   Compiling nix v0.29.0
   Compiling regex-automata v0.4.8
   Compiling serde_derive v1.0.210
   Compiling log v0.4.22
   Compiling linux-raw-sys v0.4.14
   Compiling syn v1.0.109
   Compiling rustversion v1.0.17
   Compiling prettyplease v0.2.22
   Compiling crossbeam-epoch v0.9.18
   Compiling bstr v1.10.0
   Compiling thiserror v1.0.64
   Compiling either v1.13.0
   Compiling minimal-lexical v0.2.1
   Compiling rustc-std-workspace-core v1.99.0 (/home/sun/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/rustc-std-workspace-core)
   Compiling shlex v1.3.0
   Compiling same-file v1.0.6
   Compiling serde_json v1.0.128
   Compiling walkdir v2.5.0
   Compiling nom v7.1.3
   Compiling globset v0.4.15
   Compiling crossbeam-deque v0.8.5
   Compiling alloc v0.0.0 (/home/sun/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/alloc)
   Compiling unwind v0.0.0 (/home/sun/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/unwind)
   Compiling adler v1.0.2
   Compiling rustc-demangle v0.1.24
   Compiling thiserror-impl v1.0.64
   Compiling libloading v0.8.5
   Compiling cvt v0.1.2
   Compiling bindgen v0.69.4
   Compiling rustc-std-workspace-alloc v1.99.0 (/home/sun/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/rustc-std-workspace-alloc)
   Compiling gimli v0.29.0
   Compiling std_detect v0.1.5 (/home/sun/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/stdarch/crates/std_detect)
   Compiling miniz_oxide v0.7.4
   Compiling hashbrown v0.14.5
   Compiling object v0.36.2
   Compiling panic_unwind v0.0.0 (/home/sun/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/panic_unwind)
   Compiling panic_abort v0.0.0 (/home/sun/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/panic_abort)
   Compiling once_cell v1.20.1
   Compiling anyhow v1.0.89
   Compiling ryu v1.0.18
   Compiling itoa v1.0.11
   Compiling heck v0.4.1
   Compiling addr2line v0.22.0
   Compiling home v0.5.9
   Compiling which v4.4.2
   Compiling strum_macros v0.24.3
   Compiling fs_at v0.2.1
   Compiling cexpr v0.6.0
   Compiling ignore v0.4.23
   Compiling cc v1.1.24
   Compiling itertools v0.12.1
   Compiling regex v1.11.0
   Compiling lazycell v1.3.0
   Compiling lazy_static v1.5.0
   Compiling normpath v1.3.0
   Compiling fastrand v2.1.1
   Compiling bitflags v1.3.2
   Compiling rustc-hash v1.1.0
   Compiling tempfile v3.13.0
   Compiling globwalk v0.8.1
   Compiling remove_dir_all v0.8.4
   Compiling cmake v0.1.51
   Compiling strum v0.24.1
   Compiling filetime v0.2.25
   Compiling semver v1.0.23
   Compiling camino v1.1.9
   Compiling proc_macro v0.0.0 (/home/sun/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/proc_macro)
   Compiling cargo-platform v0.1.8
   Compiling envy v0.4.2
   Compiling cargo_metadata v0.18.1
   Compiling fnv v1.0.7
   Compiling ident_case v1.0.1
   Compiling embuild v0.32.0
   Compiling autocfg v1.4.0
   Compiling darling_core v0.20.10
   Compiling nb v1.1.0
   Compiling byteorder v1.5.0
   Compiling num-traits v0.2.19
   Compiling heapless v0.8.0
   Compiling embedded-io-async v0.6.1
   Compiling hash32 v0.3.1
   Compiling darling_macro v0.20.10
   Compiling embedded-io v0.6.1
   Compiling darling v0.20.10
   Compiling stable_deref_trait v1.2.0
   Compiling embassy-time-driver v0.1.0
   Compiling iana-time-zone v0.1.61
   Compiling unicode-xid v0.2.6
   Compiling esp-idf-sys v0.35.0
   Compiling esp-idf-hal v0.44.1
   Compiling chrono v0.4.38
   Compiling const_format_proc_macros v0.2.33
   Compiling enumset_derive v0.10.0
   Compiling pin-utils v0.1.0
   Compiling pin-project-lite v0.2.14
   Compiling futures-core v0.3.30
   Compiling embedded-hal v1.0.0
   Compiling futures-task v0.3.30
   Compiling embassy-sync v0.6.0
   Compiling version_check v0.9.5
   Compiling embedded-hal-async v1.0.0
   Compiling uncased v0.9.10
   Compiling futures-util v0.3.30
   Compiling enumset v1.1.5
   Compiling build-time v0.1.3
   Compiling const_format v0.2.33
   Compiling esp-idf-svc v0.49.1
   Compiling nb v0.1.3
   Compiling void v1.0.2
   Compiling critical-section v1.1.3
   Compiling num_enum_derive v0.7.3
   Compiling litrs v0.4.1
   Compiling document-features v0.2.10
   Compiling embedded-hal v0.2.7
   Compiling embedded-hal-nb v1.0.0
   Compiling embedded-can v0.4.1
   Compiling num_enum v0.7.3
   Compiling atomic-waker v1.1.2
   Compiling esp-idf-websocket v0.1.0 (/home/sun/shared/git/esp-idf-websocket)
   Compiling embassy-futures v0.1.1
   Compiling embedded-svc v0.28.0
    Finished `dev` profile [optimized + debuginfo] target(s) in 2m 47s

and it runs. AHA! I thought it would fail but it didn't. now let's do a system upgrade, not only python. that's what I did before as well. I only cherry-picked python3 here because I thought it was an update of python that was the issue here. let's move on:

$ sudo apt upgrade
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
#
# Patches available for packages affected by CUPS Remote Code Execution issue
# tracked by CVE-2024-47076, CVE-2024-47175, CVE-2024-47176, and CVE-2024-47177
# For more see: https://ubuntu.com/blog/cups-remote-code-execution
#
The following upgrades have been deferred due to phasing:
  python3-distupgrade ubuntu-release-upgrader-core
The following packages will be upgraded:
  apparmor chromium chromium-common chromium-sandbox cloud-init curl fwupd libapparmor1 libcups2t64
  libcurl3t64-gnutls libcurl4t64 libexpat1 libexpat1-dev libfwupd2 libopenjp2-7 libproc2-0
  linux-libc-dev lxd-agent-loader mdadm nodejs open-vm-tools procps python3-pkg-resources
  python3-setuptools python3-setuptools-whl python3-update-manager systemd-hwe-hwdb ubuntu-pro-client
  ubuntu-pro-client-l10n update-manager-core vim vim-common vim-runtime vim-tiny xxd
35 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
16 standard LTS security updates
Need to get 159 MB of archives.
After this operation, 975 kB disk space will be freed.
Do you want to continue? [Y/n]
Get:1 http://archive.ubuntu.com/ubuntu noble-updates/main amd64 libproc2-0 amd64 2:4.0.4-4ubuntu3.1 [59.4 kB]
Get:2 http://archive.ubuntu.com/ubuntu noble-updates/main amd64 procps amd64 2:4.0.4-4ubuntu3.1 [708 kB]
Get:3 https://ppa.launchpadcontent.net/xtradeb/apps/ubuntu noble/main amd64 chromium amd64 129.0.6668.89-1xtradeb1.2404.1 [88.8 MB]
Get:4 http://archive.ubuntu.com/ubuntu noble-updates/main amd64 open-vm-tools amd64 2:12.4.5-1~ubuntu0.24.04.1 [740 kB]
Get:5 http://archive.ubuntu.com/ubuntu noble-updates/main amd64 libapparmor1 amd64 4.0.1really4.0.1-0ubuntu0.24.04.3 [50.3 kB]
Get:6 http://archive.ubuntu.com/ubuntu noble-updates/main amd64 libexpat1-dev amd64 2.6.1-2ubuntu0.1 [139 kB]
Get:7 http://archive.ubuntu.com/ubuntu noble-updates/main amd64 libexpat1 amd64 2.6.1-2ubuntu0.1 [87.1 kB]
Get:8 http://archive.ubuntu.com/ubuntu noble-updates/main amd64 python3-setuptools all 68.1.2-2ubuntu1.1 [396 kB]
Get:9 http://archive.ubuntu.com/ubuntu noble-updates/main amd64 python3-pkg-resources all 68.1.2-2ubuntu1.1 [168 kB]
Get:10 http://archive.ubuntu.com/ubuntu noble-updates/main amd64 systemd-hwe-hwdb all 255.1.4 [3200 B]
Get:11 http://archive.ubuntu.com/ubuntu noble-updates/main amd64 ubuntu-pro-client-l10n amd64 34~24.04 [18.4 kB]
Get:12 http://archive.ubuntu.com/ubuntu noble-updates/main amd64 ubuntu-pro-client amd64 34~24.04 [241 kB]
Get:13 http://archive.ubuntu.com/ubuntu noble-updates/main amd64 vim amd64 2:9.1.0016-1ubuntu7.3 [1880 kB]
Get:14 http://archive.ubuntu.com/ubuntu noble-updates/main amd64 vim-common all 2:9.1.0016-1ubuntu7.3 [385 kB]
Get:15 http://archive.ubuntu.com/ubuntu noble-updates/main amd64 vim-tiny amd64 2:9.1.0016-1ubuntu7.3 [803 kB]
Get:16 http://archive.ubuntu.com/ubuntu noble-updates/main amd64 vim-runtime all 2:9.1.0016-1ubuntu7.3 [7281 kB]
Get:17 http://archive.ubuntu.com/ubuntu noble-updates/main amd64 xxd amd64 2:9.1.0016-1ubuntu7.3 [63.1 kB]
Get:18 http://archive.ubuntu.com/ubuntu noble-updates/main amd64 apparmor amd64 4.0.1really4.0.1-0ubuntu0.24.04.3 [641 kB]
Get:19 http://archive.ubuntu.com/ubuntu noble-updates/main amd64 python3-update-manager all 1:24.04.8 [43.0 kB]
Get:20 http://archive.ubuntu.com/ubuntu noble-updates/main amd64 update-manager-core all 1:24.04.8 [11.6 kB]
Get:21 http://archive.ubuntu.com/ubuntu noble-updates/main amd64 libcups2t64 amd64 2.4.7-1.2ubuntu7.3 [272 kB]
Get:22 http://archive.ubuntu.com/ubuntu noble-updates/main amd64 libopenjp2-7 amd64 2.5.0-2ubuntu0.1 [173 kB]
Get:23 http://archive.ubuntu.com/ubuntu noble-updates/main amd64 curl amd64 8.5.0-2ubuntu10.4 [227 kB]
Get:24 http://archive.ubuntu.com/ubuntu noble-updates/main amd64 libcurl4t64 amd64 8.5.0-2ubuntu10.4 [341 kB]
Get:25 http://archive.ubuntu.com/ubuntu noble-updates/main amd64 libcurl3t64-gnutls amd64 8.5.0-2ubuntu10.4 [333 kB]
Get:26 http://archive.ubuntu.com/ubuntu noble-updates/main amd64 libfwupd2 amd64 1.9.24-1~24.04.1 [136 kB]
Get:27 http://archive.ubuntu.com/ubuntu noble-updates/main amd64 fwupd amd64 1.9.24-1~24.04.1 [4553 kB]
Get:28 https://deb.nodesource.com/node_22.x nodistro/main amd64 nodejs amd64 22.9.0-1nodesource1 [35.6 MB]
Get:29 http://archive.ubuntu.com/ubuntu noble-updates/main amd64 linux-libc-dev amd64 6.8.0-45.45 [1698 kB]
Get:30 http://archive.ubuntu.com/ubuntu noble-updates/main amd64 lxd-agent-loader all 0.7ubuntu0.1 [4836 B]
Get:31 http://archive.ubuntu.com/ubuntu noble-updates/main amd64 mdadm amd64 4.3-1ubuntu2.1 [464 kB]
Get:32 http://archive.ubuntu.com/ubuntu noble-updates/universe amd64 python3-setuptools-whl all 68.1.2-2ubuntu1.1 [716 kB]
Get:33 http://archive.ubuntu.com/ubuntu noble-updates/main amd64 cloud-init all 24.3.1-0ubuntu0~24.04.2 [602 kB]
53% [3 chromium 9342 kB/88.8 MB 11%]                                                                                                                                                             376 kB/s 4min 0Get:34 https://ppa.launchpadcontent.net/xtradeb/apps/ubuntu noble/main amd64 chromium-sandbox amd64 129.0.6668.89-1xtradeb1.2404.1 [96.5 kB]
Get:35 https://ppa.launchpadcontent.net/xtradeb/apps/ubuntu noble/main amd64 chromium-common amd64 129.0.6668.89-1xtradeb1.2404.1 [11.0 MB]
Fetched 159 MB in 2min 32s (1044 kB/s)
Extracting templates from packages: 100%
Preconfiguring packages ...
(Reading database ... 92883 files and directories currently installed.)
Preparing to unpack .../00-libproc2-0_2%3a4.0.4-4ubuntu3.1_amd64.deb ...
Unpacking libproc2-0:amd64 (2:4.0.4-4ubuntu3.1) over (2:4.0.4-4ubuntu3) ...
Preparing to unpack .../01-procps_2%3a4.0.4-4ubuntu3.1_amd64.deb ...
Unpacking procps (2:4.0.4-4ubuntu3.1) over (2:4.0.4-4ubuntu3) ...
Preparing to unpack .../02-open-vm-tools_2%3a12.4.5-1~ubuntu0.24.04.1_amd64.deb ...
Unpacking open-vm-tools (2:12.4.5-1~ubuntu0.24.04.1) over (2:12.3.5-5build3) ...
Preparing to unpack .../03-libapparmor1_4.0.1really4.0.1-0ubuntu0.24.04.3_amd64.deb ...
Unpacking libapparmor1:amd64 (4.0.1really4.0.1-0ubuntu0.24.04.3) over (4.0.1really4.0.0-beta3-0ubuntu0.1) ...
Preparing to unpack .../04-libexpat1-dev_2.6.1-2ubuntu0.1_amd64.deb ...
Unpacking libexpat1-dev:amd64 (2.6.1-2ubuntu0.1) over (2.6.1-2build1) ...
Preparing to unpack .../05-libexpat1_2.6.1-2ubuntu0.1_amd64.deb ...
Unpacking libexpat1:amd64 (2.6.1-2ubuntu0.1) over (2.6.1-2build1) ...
Preparing to unpack .../06-python3-setuptools_68.1.2-2ubuntu1.1_all.deb ...
Unpacking python3-setuptools (68.1.2-2ubuntu1.1) over (68.1.2-2ubuntu1) ...
Preparing to unpack .../07-python3-pkg-resources_68.1.2-2ubuntu1.1_all.deb ...
Unpacking python3-pkg-resources (68.1.2-2ubuntu1.1) over (68.1.2-2ubuntu1) ...
Preparing to unpack .../08-systemd-hwe-hwdb_255.1.4_all.deb ...
Unpacking systemd-hwe-hwdb (255.1.4) over (255.1.3) ...
Preparing to unpack .../09-ubuntu-pro-client-l10n_34~24.04_amd64.deb ...
Unpacking ubuntu-pro-client-l10n (34~24.04) over (32.3.1~24.04) ...
Preparing to unpack .../10-ubuntu-pro-client_34~24.04_amd64.deb ...
Unpacking ubuntu-pro-client (34~24.04) over (32.3.1~24.04) ...
Preparing to unpack .../11-vim_2%3a9.1.0016-1ubuntu7.3_amd64.deb ...
Unpacking vim (2:9.1.0016-1ubuntu7.3) over (2:9.1.0016-1ubuntu7.2) ...
Preparing to unpack .../12-vim-common_2%3a9.1.0016-1ubuntu7.3_all.deb ...
Unpacking vim-common (2:9.1.0016-1ubuntu7.3) over (2:9.1.0016-1ubuntu7.2) ...
Preparing to unpack .../13-vim-tiny_2%3a9.1.0016-1ubuntu7.3_amd64.deb ...
Unpacking vim-tiny (2:9.1.0016-1ubuntu7.3) over (2:9.1.0016-1ubuntu7.2) ...
Preparing to unpack .../14-vim-runtime_2%3a9.1.0016-1ubuntu7.3_all.deb ...
Unpacking vim-runtime (2:9.1.0016-1ubuntu7.3) over (2:9.1.0016-1ubuntu7.2) ...
Preparing to unpack .../15-xxd_2%3a9.1.0016-1ubuntu7.3_amd64.deb ...
Unpacking xxd (2:9.1.0016-1ubuntu7.3) over (2:9.1.0016-1ubuntu7.2) ...
Preparing to unpack .../16-apparmor_4.0.1really4.0.1-0ubuntu0.24.04.3_amd64.deb ...
Unpacking apparmor (4.0.1really4.0.1-0ubuntu0.24.04.3) over (4.0.1really4.0.0-beta3-0ubuntu0.1) ...
Preparing to unpack .../17-python3-update-manager_1%3a24.04.8_all.deb ...
Unpacking python3-update-manager (1:24.04.8) over (1:24.04.6) ...
Preparing to unpack .../18-update-manager-core_1%3a24.04.8_all.deb ...
Unpacking update-manager-core (1:24.04.8) over (1:24.04.6) ...
Preparing to unpack .../19-chromium_129.0.6668.89-1xtradeb1.2404.1_amd64.deb ...
Unpacking chromium (129.0.6668.89-1xtradeb1.2404.1) over (128.0.6613.119-1xtradeb1.2404.1) ...
Preparing to unpack .../20-chromium-sandbox_129.0.6668.89-1xtradeb1.2404.1_amd64.deb ...
Unpacking chromium-sandbox (129.0.6668.89-1xtradeb1.2404.1) over (128.0.6613.119-1xtradeb1.2404.1) ...
Preparing to unpack .../21-chromium-common_129.0.6668.89-1xtradeb1.2404.1_amd64.deb ...
Unpacking chromium-common (129.0.6668.89-1xtradeb1.2404.1) over (128.0.6613.119-1xtradeb1.2404.1) ...
Preparing to unpack .../22-libcups2t64_2.4.7-1.2ubuntu7.3_amd64.deb ...
Unpacking libcups2t64:amd64 (2.4.7-1.2ubuntu7.3) over (2.4.7-1.2ubuntu7.2) ...
Preparing to unpack .../23-libopenjp2-7_2.5.0-2ubuntu0.1_amd64.deb ...
Unpacking libopenjp2-7:amd64 (2.5.0-2ubuntu0.1) over (2.5.0-2build3) ...
Preparing to unpack .../24-curl_8.5.0-2ubuntu10.4_amd64.deb ...
Unpacking curl (8.5.0-2ubuntu10.4) over (8.5.0-2ubuntu10.3) ...
Preparing to unpack .../25-libcurl4t64_8.5.0-2ubuntu10.4_amd64.deb ...
Unpacking libcurl4t64:amd64 (8.5.0-2ubuntu10.4) over (8.5.0-2ubuntu10.3) ...
Preparing to unpack .../26-libcurl3t64-gnutls_8.5.0-2ubuntu10.4_amd64.deb ...
Unpacking libcurl3t64-gnutls:amd64 (8.5.0-2ubuntu10.4) over (8.5.0-2ubuntu10.3) ...
Preparing to unpack .../27-libfwupd2_1.9.24-1~24.04.1_amd64.deb ...
Unpacking libfwupd2:amd64 (1.9.24-1~24.04.1) over (1.9.16-1) ...
Preparing to unpack .../28-fwupd_1.9.24-1~24.04.1_amd64.deb ...
Unpacking fwupd (1.9.24-1~24.04.1) over (1.9.16-1) ...
Preparing to unpack .../29-linux-libc-dev_6.8.0-45.45_amd64.deb ...
Unpacking linux-libc-dev:amd64 (6.8.0-45.45) over (6.8.0-41.41) ...
Preparing to unpack .../30-lxd-agent-loader_0.7ubuntu0.1_all.deb ...
Unpacking lxd-agent-loader (0.7ubuntu0.1) over (0.7) ...
Preparing to unpack .../31-mdadm_4.3-1ubuntu2.1_amd64.deb ...
Unpacking mdadm (4.3-1ubuntu2.1) over (4.3-1ubuntu2) ...
Preparing to unpack .../32-nodejs_22.9.0-1nodesource1_amd64.deb ...
Detected old npm client, removing...
Unpacking nodejs (22.9.0-1nodesource1) over (22.8.0-1nodesource1) ...
Preparing to unpack .../33-python3-setuptools-whl_68.1.2-2ubuntu1.1_all.deb ...
Unpacking python3-setuptools-whl (68.1.2-2ubuntu1.1) over (68.1.2-2ubuntu1) ...
Preparing to unpack .../34-cloud-init_24.3.1-0ubuntu0~24.04.2_all.deb ...
Unpacking cloud-init (24.3.1-0ubuntu0~24.04.2) over (24.2-0ubuntu1~24.04.2) ...
dpkg: warning: unable to delete old directory '/etc/systemd/system/[email protected]': Directory not empty
Setting up python3-pkg-resources (68.1.2-2ubuntu1.1) ...
Setting up libexpat1:amd64 (2.6.1-2ubuntu0.1) ...
Setting up python3-setuptools-whl (68.1.2-2ubuntu1.1) ...
Setting up lxd-agent-loader (0.7ubuntu0.1) ...
lxd-agent.service is a disabled or a static unit, not starting it.
Setting up libapparmor1:amd64 (4.0.1really4.0.1-0ubuntu0.24.04.3) ...
Setting up python3-setuptools (68.1.2-2ubuntu1.1) ...
Setting up libcurl4t64:amd64 (8.5.0-2ubuntu10.4) ...
Setting up libcurl3t64-gnutls:amd64 (8.5.0-2ubuntu10.4) ...
Setting up linux-libc-dev:amd64 (6.8.0-45.45) ...
Setting up nodejs (22.9.0-1nodesource1) ...
Setting up chromium-sandbox (129.0.6668.89-1xtradeb1.2404.1) ...
Setting up xxd (2:9.1.0016-1ubuntu7.3) ...
Setting up apparmor (4.0.1really4.0.1-0ubuntu0.24.04.3) ...
Installing new version of config file /etc/apparmor.d/abstractions/authentication ...
Installing new version of config file /etc/apparmor.d/abstractions/samba ...
Installing new version of config file /etc/apparmor.d/firefox ...
Setting up vim-common (2:9.1.0016-1ubuntu7.3) ...
Setting up libexpat1-dev:amd64 (2.6.1-2ubuntu0.1) ...
Setting up libproc2-0:amd64 (2:4.0.4-4ubuntu3.1) ...
Setting up systemd-hwe-hwdb (255.1.4) ...
Setting up open-vm-tools (2:12.4.5-1~ubuntu0.24.04.1) ...
Installing new version of config file /etc/vmware-tools/poweroff-vm-default ...
Installing new version of config file /etc/vmware-tools/poweron-vm-default ...
Installing new version of config file /etc/vmware-tools/resume-vm-default ...
Installing new version of config file /etc/vmware-tools/scripts/vmware/network ...
Installing new version of config file /etc/vmware-tools/suspend-vm-default ...
Installing new version of config file /etc/vmware-tools/tools.conf.example ...
host0: Failed to write 'change' to '/sys/devices/pci0000:00/0000:00:17.0/ata1/host0/uevent': Permission denied
host1: Failed to write 'change' to '/sys/devices/pci0000:00/0000:00:17.0/ata2/host1/uevent': Permission denied
host2: Failed to write 'change' to '/sys/devices/pci0000:00/0000:00:17.0/ata3/host2/uevent': Permission denied
host3: Failed to write 'change' to '/sys/devices/pci0000:00/0000:00:17.0/ata4/host3/uevent': Permission denied
host4: Failed to write 'change' to '/sys/devices/pci0000:00/0000:00:17.0/ata5/host4/uevent': Permission denied
target4:0:0: Failed to write 'change' to '/sys/devices/pci0000:00/0000:00:17.0/ata5/host4/target4:0:0/uevent': Permission denied
4:0:0:0: Failed to write 'change' to '/sys/devices/pci0000:00/0000:00:17.0/ata5/host4/target4:0:0/4:0:0:0/uevent': Permission denied
Setting up python3-update-manager (1:24.04.8) ...
Setting up procps (2:4.0.4-4ubuntu3.1) ...
Setting up libopenjp2-7:amd64 (2.5.0-2ubuntu0.1) ...
Setting up chromium-common (129.0.6668.89-1xtradeb1.2404.1) ...
Setting up curl (8.5.0-2ubuntu10.4) ...
Setting up vim-runtime (2:9.1.0016-1ubuntu7.3) ...
Setting up libcups2t64:amd64 (2.4.7-1.2ubuntu7.3) ...
Setting up ubuntu-pro-client (34~24.04) ...
Installing new version of config file /etc/apparmor.d/ubuntu_pro_apt_news ...
Installing new version of config file /etc/apt/apt.conf.d/20apt-esm-hook.conf ...
Setting up mdadm (4.3-1ubuntu2.1) ...
update-initramfs: deferring update (trigger activated)
Setting up ubuntu-pro-client-l10n (34~24.04) ...
Setting up cloud-init (24.3.1-0ubuntu0~24.04.2) ...
Setting up vim (2:9.1.0016-1ubuntu7.3) ...
Setting up libfwupd2:amd64 (1.9.24-1~24.04.1) ...
Setting up vim-tiny (2:9.1.0016-1ubuntu7.3) ...
Setting up update-manager-core (1:24.04.8) ...
Setting up chromium (129.0.6668.89-1xtradeb1.2404.1) ...
Setting up fwupd (1.9.24-1~24.04.1) ...
fwupd-offline-update.service is a disabled or a static unit not running, not starting it.
fwupd-refresh.service is a disabled or a static unit not running, not starting it.
fwupd.service is a disabled or a static unit not running, not starting it.
Processing triggers for hicolor-icon-theme (0.17-2) ...
Processing triggers for libc-bin (2.39-0ubuntu8.3) ...
Processing triggers for rsyslog (8.2312.0-3ubuntu9) ...
Processing triggers for man-db (2.12.0-4build2) ...
Processing triggers for dbus (1.14.10-4ubuntu4.1) ...
Processing triggers for udev (255.4-1ubuntu8.4) ...
Processing triggers for initramfs-tools (0.142ubuntu25.2) ...
Scanning processes...
Scanning candidates...

Restarting services...
 /etc/needrestart/restart.d/systemd-manager
 systemctl restart avahi-daemon.service polkit.service

Service restarts being deferred:
 /etc/needrestart/restart.d/dbus.service
 systemctl restart unattended-upgrades.service

No containers need to be restarted.

User sessions running outdated binaries:
 sun @ user manager service: systemd[2401]

No VM guests are running outdated hypervisor (qemu) binaries on this host.

export ESP-IDF again (new shell here):

$ . ~/esp/esp-idf/export.sh
Setting IDF_PATH to '/home/sun/esp/esp-idf'
Detecting the Python interpreter
Checking "python3" ...
Python 3.12.3
"python3" has been detected
Checking Python compatibility
Checking other ESP-IDF version.
Not using an unsupported version of tool xtensa-esp-elf found in PATH: esp-13.2.0_20230928. To use it, run '/usr/bin/python3 /home/sun/esp/esp-idf/tools/idf_tools.py export --prefer-system'
Adding ESP-IDF tools to PATH...
Checking if Python packages are up to date...
Constraint file: /home/sun/.espressif/espidf.constraints.v5.4.txt
Requirement files:
 - /home/sun/esp/esp-idf/tools/requirements/requirements.core.txt
Python being checked: /home/sun/.espressif/python_env/idf5.4_py3.12_env/bin/python
Python requirements are satisfied.
Added the following directories to PATH:
  /home/sun/esp/esp-idf/components/espcoredump
  /home/sun/esp/esp-idf/components/partition_table
  /home/sun/esp/esp-idf/components/app_update
  /home/sun/.espressif/tools/xtensa-esp-elf-gdb/14.2_20240403/xtensa-esp-elf-gdb/bin
  /home/sun/.espressif/tools/riscv32-esp-elf-gdb/14.2_20240403/riscv32-esp-elf-gdb/bin
  /home/sun/.espressif/tools/xtensa-esp-elf/esp-13.2.0_20240530/xtensa-esp-elf/bin
  /home/sun/.espressif/tools/riscv32-esp-elf/esp-13.2.0_20240530/riscv32-esp-elf/bin
  /home/sun/.espressif/tools/esp32ulp-elf/2.38_20240113/esp32ulp-elf/bin
  /home/sun/.espressif/tools/openocd-esp32/v0.12.0-esp32-20240726/openocd-esp32/bin
  /home/sun/.espressif/tools/xtensa-esp-elf-gdb/14.2_20240403/xtensa-esp-elf-gdb/bin
  /home/sun/.espressif/tools/riscv32-esp-elf-gdb/14.2_20240403/riscv32-esp-elf-gdb/bin
  /home/sun/.espressif/tools/xtensa-esp-elf/esp-13.2.0_20240530/xtensa-esp-elf/bin
  /home/sun/.espressif/tools/riscv32-esp-elf/esp-13.2.0_20240530/riscv32-esp-elf/bin
  /home/sun/.espressif/tools/esp32ulp-elf/2.38_20240113/esp32ulp-elf/bin
  /home/sun/.espressif/tools/openocd-esp32/v0.12.0-esp32-20240726/openocd-esp32/bin
  /home/sun/.espressif/python_env/idf5.4_py3.12_env/bin
  /home/sun/esp/esp-idf/tools
Done! You can now compile ESP-IDF projects.
Go to the project directory and run:

  idf.py build

build again:

$ cargo clean
     Removed 3031 files, 1.6GiB total
$ cargo build
   Compiling compiler_builtins v0.1.123
   Compiling core v0.0.0 (/home/sun/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core)
   Compiling libc v0.2.158
   Compiling proc-macro2 v1.0.86
   Compiling unicode-ident v1.0.13
   Compiling memchr v2.5.0
   Compiling quote v1.0.37
   Compiling std v0.0.0 (/home/sun/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std)
   Compiling syn v2.0.79
   Compiling memchr v2.7.4
   Compiling cfg-if v1.0.0
   Compiling libc v0.2.159
   Compiling serde v1.0.210
   Compiling serde_derive v1.0.210
   Compiling bitflags v2.6.0
   Compiling aho-corasick v1.1.3
   Compiling regex-syntax v0.8.5
   Compiling rustc-std-workspace-core v1.99.0 (/home/sun/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/rustc-std-workspace-core)
   Compiling crossbeam-utils v0.8.20
   Compiling regex-automata v0.4.8
   Compiling alloc v0.0.0 (/home/sun/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/alloc)
   Compiling adler v1.0.2
   Compiling unwind v0.0.0 (/home/sun/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/unwind)
   Compiling rustc-std-workspace-alloc v1.99.0 (/home/sun/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/rustc-std-workspace-alloc)
   Compiling panic_unwind v0.0.0 (/home/sun/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/panic_unwind)
   Compiling gimli v0.29.0
   Compiling object v0.36.2
   Compiling hashbrown v0.14.5
   Compiling miniz_oxide v0.7.4
   Compiling std_detect v0.1.5 (/home/sun/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/stdarch/crates/std_detect)
   Compiling panic_abort v0.0.0 (/home/sun/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/panic_abort)
   Compiling rustc-demangle v0.1.24
   Compiling cfg_aliases v0.2.1
   Compiling addr2line v0.22.0
   Compiling glob v0.3.1
   Compiling rustix v0.38.37
   Compiling clang-sys v1.8.1
   Compiling nix v0.29.0
   Compiling proc_macro v0.0.0 (/home/sun/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/proc_macro)
   Compiling rustversion v1.0.17
   Compiling syn v1.0.109
   Compiling prettyplease v0.2.22
   Compiling linux-raw-sys v0.4.14
   Compiling log v0.4.22
   Compiling crossbeam-epoch v0.9.18
   Compiling bstr v1.10.0
   Compiling thiserror v1.0.64
   Compiling either v1.13.0
   Compiling same-file v1.0.6
   Compiling shlex v1.3.0
   Compiling serde_json v1.0.128
   Compiling minimal-lexical v0.2.1
   Compiling walkdir v2.5.0
   Compiling nom v7.1.3
   Compiling globset v0.4.15
   Compiling crossbeam-deque v0.8.5
   Compiling thiserror-impl v1.0.64
   Compiling libloading v0.8.5
   Compiling cvt v0.1.2
   Compiling ryu v1.0.18
   Compiling once_cell v1.20.1
   Compiling home v0.5.9
   Compiling itoa v1.0.11
   Compiling heck v0.4.1
   Compiling anyhow v1.0.89
   Compiling bindgen v0.69.4
   Compiling strum_macros v0.24.3
   Compiling which v4.4.2
   Compiling fs_at v0.2.1
   Compiling cexpr v0.6.0
   Compiling ignore v0.4.23
   Compiling cc v1.1.24
   Compiling itertools v0.12.1
   Compiling regex v1.11.0
   Compiling lazycell v1.3.0
   Compiling normpath v1.3.0
   Compiling lazy_static v1.5.0
   Compiling bitflags v1.3.2
   Compiling fastrand v2.1.1
   Compiling rustc-hash v1.1.0
   Compiling globwalk v0.8.1
   Compiling tempfile v3.13.0
   Compiling remove_dir_all v0.8.4
   Compiling cmake v0.1.51
   Compiling filetime v0.2.25
   Compiling semver v1.0.23
   Compiling camino v1.1.9
   Compiling cargo-platform v0.1.8
   Compiling envy v0.4.2
   Compiling ident_case v1.0.1
   Compiling autocfg v1.4.0
   Compiling strum v0.24.1
   Compiling fnv v1.0.7
   Compiling cargo_metadata v0.18.1
   Compiling num-traits v0.2.19
   Compiling embuild v0.32.0
   Compiling darling_core v0.20.10
   Compiling nb v1.1.0
   Compiling byteorder v1.5.0
   Compiling heapless v0.8.0
   Compiling embedded-io-async v0.6.1
   Compiling esp-idf-sys v0.35.0
   Compiling darling_macro v0.20.10
   Compiling esp-idf-hal v0.44.1
   Compiling hash32 v0.3.1
   Compiling darling v0.20.10
   Compiling embedded-io v0.6.1
   Compiling stable_deref_trait v1.2.0
   Compiling unicode-xid v0.2.6
   Compiling embassy-time-driver v0.1.0
   Compiling iana-time-zone v0.1.61
   Compiling chrono v0.4.38
   Compiling const_format_proc_macros v0.2.33
   Compiling enumset_derive v0.10.0
   Compiling pin-utils v0.1.0
   Compiling futures-core v0.3.30
   Compiling embedded-hal v1.0.0
   Compiling pin-project-lite v0.2.14
   Compiling futures-task v0.3.30
   Compiling embedded-hal-async v1.0.0
   Compiling version_check v0.9.5
   Compiling embassy-sync v0.6.0
   Compiling const_format v0.2.33
   Compiling uncased v0.9.10
   Compiling futures-util v0.3.30
   Compiling enumset v1.1.5
   Compiling build-time v0.1.3
   Compiling esp-idf-svc v0.49.1
   Compiling nb v0.1.3
   Compiling critical-section v1.1.3
   Compiling void v1.0.2
   Compiling num_enum_derive v0.7.3
   Compiling litrs v0.4.1
   Compiling document-features v0.2.10
   Compiling embedded-hal v0.2.7
   Compiling embedded-hal-nb v1.0.0
   Compiling embedded-can v0.4.1
   Compiling num_enum v0.7.3
   Compiling atomic-waker v1.1.2
   Compiling embedded-svc v0.28.0
   Compiling esp-idf-websocket v0.1.0 (/home/sun/shared/git/esp-idf-websocket)
   Compiling embassy-futures v0.1.1
    Finished `dev` profile [optimized + debuginfo] target(s) in 1m 44s

and it works?! I dont understand. now it works.

let's try one more step. I rustup updated on the problematic machine. maybe that's the issue? let's try:
current versions:

$ rustc --version
rustc 1.83.0-nightly (bd53aa3bf 2024-09-02)
$ cargo version
cargo 1.83.0-nightly (c1fa840a8 2024-08-29)
$ rustup update
info: syncing channel updates for 'stable-x86_64-unknown-linux-gnu'
info: latest update on 2024-09-05, rust version 1.81.0 (eeb90cda1 2024-09-04)
info: downloading component 'rust-std' for 'wasm32-unknown-unknown'
 18.5 MiB /  18.5 MiB (100 %)   3.0 MiB/s in  6s ETA:  0s
info: downloading component 'rust-src'
info: downloading component 'rust-std' for 'riscv32imc-unknown-none-elf'
  9.4 MiB /   9.4 MiB (100 %)   3.1 MiB/s in  3s ETA:  0s
info: downloading component 'cargo'
  8.3 MiB /   8.3 MiB (100 %)   3.5 MiB/s in  2s ETA:  0s
info: downloading component 'clippy'
info: downloading component 'rust-docs'
 15.9 MiB /  15.9 MiB (100 %)   3.2 MiB/s in  5s ETA:  0s
info: downloading component 'rust-std'
 26.8 MiB /  26.8 MiB (100 %)   3.0 MiB/s in  9s ETA:  0s
info: downloading component 'rustc'
 66.9 MiB /  66.9 MiB (100 %)   3.5 MiB/s in 21s ETA:  0s
info: downloading component 'rustfmt'
info: removing previous version of component 'rust-std' for 'wasm32-unknown-unknown'
info: removing previous version of component 'rust-src'
info: removing previous version of component 'rust-std' for 'riscv32imc-unknown-none-elf'
info: removing previous version of component 'cargo'
info: removing previous version of component 'clippy'
info: removing previous version of component 'rust-docs'
info: removing previous version of component 'rust-std'
info: removing previous version of component 'rustc'
info: removing previous version of component 'rustfmt'
info: installing component 'rust-std' for 'wasm32-unknown-unknown'
 18.5 MiB /  18.5 MiB (100 %)  11.1 MiB/s in  1s ETA:  0s
info: installing component 'rust-src'
info: installing component 'rust-std' for 'riscv32imc-unknown-none-elf'
info: installing component 'cargo'
info: installing component 'clippy'
info: installing component 'rust-docs'
 15.9 MiB /  15.9 MiB (100 %)   3.6 MiB/s in  4s ETA:  0s
info: installing component 'rust-std'
 26.8 MiB /  26.8 MiB (100 %)  10.2 MiB/s in  2s ETA:  0s
info: installing component 'rustc'
 66.9 MiB /  66.9 MiB (100 %)   8.3 MiB/s in  9s ETA:  0s
  8 IO-ops /   8 IO-ops (100 %)   0 IOPS in  3s ETA: Unknown
info: installing component 'rustfmt'
info: syncing channel updates for 'nightly-x86_64-unknown-linux-gnu'
info: latest update on 2024-10-03, rust version 1.83.0-nightly (18b1161ec 2024-10-02)
info: downloading component 'clippy'
  2.7 MiB /   2.7 MiB (100 %)   2.6 MiB/s in  1s ETA:  0s
info: downloading component 'rustfmt'
info: downloading component 'rust-std' for 'wasm32-unknown-unknown'
 18.9 MiB /  18.9 MiB (100 %)   3.4 MiB/s in  6s ETA:  0s
info: downloading component 'rust-src'
info: downloading component 'rust-std' for 'riscv32imac-unknown-none-elf'
  9.8 MiB /   9.8 MiB (100 %)   3.2 MiB/s in  3s ETA:  0s
info: downloading component 'rust-std' for 'riscv32imafc-unknown-none-elf'
  9.8 MiB /   9.8 MiB (100 %)   3.7 MiB/s in  2s ETA:  0s
info: downloading component 'rust-std' for 'riscv32imc-unknown-none-elf'
  9.6 MiB /   9.6 MiB (100 %)   3.9 MiB/s in  2s ETA:  0s
info: downloading component 'rust-analyzer'
  7.4 MiB /   7.4 MiB (100 %)   3.6 MiB/s in  2s ETA:  0s
info: downloading component 'cargo'
  8.6 MiB /   8.6 MiB (100 %)   2.1 MiB/s in  3s ETA:  0s
info: downloading component 'rust-std'
 26.1 MiB /  26.1 MiB (100 %)   2.6 MiB/s in 10s ETA:  0s
info: downloading component 'rustc'
 72.5 MiB /  72.5 MiB (100 %)   3.5 MiB/s in 27s ETA:  0s
info: removing previous version of component 'clippy'
info: removing previous version of component 'rustfmt'
info: removing previous version of component 'rust-std' for 'wasm32-unknown-unknown'
info: removing previous version of component 'rust-src'
info: removing previous version of component 'rust-std' for 'riscv32imac-unknown-none-elf'
info: removing previous version of component 'rust-std' for 'riscv32imafc-unknown-none-elf'
info: removing previous version of component 'rust-std' for 'riscv32imc-unknown-none-elf'
info: removing previous version of component 'rust-analyzer'
info: removing previous version of component 'cargo'
info: removing previous version of component 'rust-std'
info: removing previous version of component 'rustc'
info: installing component 'clippy'
info: installing component 'rustfmt'
info: installing component 'rust-std' for 'wasm32-unknown-unknown'
 18.9 MiB /  18.9 MiB (100 %)  11.0 MiB/s in  1s ETA:  0s
info: installing component 'rust-src'
info: installing component 'rust-std' for 'riscv32imac-unknown-none-elf'
info: installing component 'rust-std' for 'riscv32imafc-unknown-none-elf'
info: installing component 'rust-std' for 'riscv32imc-unknown-none-elf'
info: installing component 'rust-analyzer'
info: installing component 'cargo'
info: installing component 'rust-std'
 26.1 MiB /  26.1 MiB (100 %)  10.7 MiB/s in  2s ETA:  0s
info: installing component 'rustc'
 72.5 MiB /  72.5 MiB (100 %)  11.4 MiB/s in  6s ETA:  0s
info: checking for self-update

   stable-x86_64-unknown-linux-gnu updated - rustc 1.81.0 (eeb90cda1 2024-09-04) (from rustc 1.80.1 (3f5fd8dd4 2024-08-06))
  nightly-x86_64-unknown-linux-gnu updated - rustc 1.83.0-nightly (18b1161ec 2024-10-02) (from rustc 1.83.0-nightly (bd53aa3bf 2024-09-02))

info: cleaning up downloads & tmp directories

now versions are:

$ rustc --version
rustc 1.83.0-nightly (18b1161ec 2024-10-02)
$ cargo version
cargo 1.83.0-nightly (80d82ca22 2024-09-27)

aaand it builds again. Im confused now.

BUT WAIT...I forgot one step that I always do when spawning new containers.
to get my ideal developer working environment I use chezmoi to update my $HOME. after doing this now I see where the problem is:

$ cat rust
export RUSTC_WRAPPER=sccache
. "$HOME/.cargo/env"
export RUSTFLAGS="-Ctarget-feature=-crt-static"

look at that! the RUSTFLAGS env var is exported here. I remember doing this because I read it on the web I forgot why I did this. let's rebuild again:

$ cargo clean
     Removed 3031 files, 1.6GiB total
$ cargo build
   Compiling compiler_builtins v0.1.130
   Compiling core v0.0.0 (/home/sun/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core)
   Compiling libc v0.2.159
   Compiling proc-macro2 v1.0.86
   Compiling unicode-ident v1.0.13
   Compiling memchr v2.5.0
   Compiling quote v1.0.37
   Compiling std v0.0.0 (/home/sun/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std)
   Compiling syn v2.0.79
   Compiling memchr v2.7.4
   Compiling cfg-if v1.0.0
   Compiling serde v1.0.210
   Compiling bitflags v2.6.0
   Compiling serde_derive v1.0.210
   Compiling aho-corasick v1.1.3
   Compiling regex-syntax v0.8.5
   Compiling crossbeam-utils v0.8.20
   Compiling regex-automata v0.4.8
   Compiling cfg_aliases v0.2.1
   Compiling rustix v0.38.37
   Compiling glob v0.3.1
   Compiling clang-sys v1.8.1
   Compiling nix v0.29.0
   Compiling log v0.4.22
   Compiling syn v1.0.109
   Compiling prettyplease v0.2.22
   Compiling linux-raw-sys v0.4.14
   Compiling rustversion v1.0.17
   Compiling crossbeam-epoch v0.9.18
   Compiling bstr v1.10.0
   Compiling shlex v1.3.0
   Compiling either v1.13.0
   Compiling minimal-lexical v0.2.1
   Compiling same-file v1.0.6
   Compiling thiserror v1.0.64
   Compiling serde_json v1.0.128
   Compiling walkdir v2.5.0
   Compiling nom v7.1.3
   Compiling globset v0.4.15
   Compiling crossbeam-deque v0.8.5
   Compiling thiserror-impl v1.0.64
   Compiling cvt v0.1.2
   Compiling libloading v0.8.5
   Compiling bindgen v0.69.4
   Compiling heck v0.4.1
   Compiling itoa v1.0.11
   Compiling ryu v1.0.18
   Compiling anyhow v1.0.89
   Compiling home v0.5.9
   Compiling once_cell v1.20.1
   Compiling which v4.4.2
   Compiling strum_macros v0.24.3
   Compiling fs_at v0.2.1
   Compiling ignore v0.4.23
   Compiling cexpr v0.6.0
   Compiling itertools v0.12.1
   Compiling cc v1.1.24
   Compiling regex v1.11.0
   Compiling bitflags v1.3.2
   Compiling fastrand v2.1.1
   Compiling lazycell v1.3.0
   Compiling rustc-hash v1.1.0
   Compiling lazy_static v1.5.0
   Compiling normpath v1.3.0
   Compiling remove_dir_all v0.8.4
   Compiling tempfile v3.13.0
   Compiling globwalk v0.8.1
   Compiling cmake v0.1.51
   Compiling filetime v0.2.25
   Compiling camino v1.1.9
   Compiling semver v1.0.23
   Compiling strum v0.24.1
   Compiling cargo-platform v0.1.8
   Compiling embuild v0.32.0
   Compiling envy v0.4.2
   Compiling cargo_metadata v0.18.1
   Compiling autocfg v1.4.0
   Compiling ident_case v1.0.1
   Compiling fnv v1.0.7
   Compiling num-traits v0.2.19
   Compiling esp-idf-sys v0.35.0
   Compiling darling_core v0.20.10
   Compiling embedded-io-async v0.6.1
   Compiling darling_macro v0.20.10
   Compiling heapless v0.8.0
   Compiling rustc-std-workspace-core v1.99.0 (/home/sun/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/rustc-std-workspace-core)
   Compiling darling v0.20.10
   Compiling esp-idf-hal v0.44.1
   Compiling iana-time-zone v0.1.61
   Compiling embassy-time-driver v0.1.0
   Compiling unicode-xid v0.2.6
   Compiling chrono v0.4.38
   Compiling const_format_proc_macros v0.2.33
   Compiling alloc v0.0.0 (/home/sun/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/alloc)
   Compiling unwind v0.0.0 (/home/sun/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/unwind)
   Compiling adler v1.0.2
   Compiling rustc-demangle v0.1.24
   Compiling enumset_derive v0.10.0
   Compiling embassy-sync v0.6.0
   Compiling embedded-hal-async v1.0.0
   Compiling version_check v0.9.5
   Compiling uncased v0.9.10
   Compiling build-time v0.1.3
   Compiling esp-idf-svc v0.49.1
   Compiling rustc-std-workspace-alloc v1.99.0 (/home/sun/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/rustc-std-workspace-alloc)
   Compiling gimli v0.29.0
   Compiling object v0.36.4
   Compiling std_detect v0.1.5 (/home/sun/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/stdarch/crates/std_detect)
   Compiling hashbrown v0.14.5
   Compiling miniz_oxide v0.7.4
   Compiling panic_abort v0.0.0 (/home/sun/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/panic_abort)
   Compiling panic_unwind v0.0.0 (/home/sun/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/panic_unwind)
   Compiling num_enum_derive v0.7.3
   Compiling addr2line v0.22.0
   Compiling litrs v0.4.1
   Compiling document-features v0.2.10
   Compiling esp-idf-websocket v0.1.0 (/home/sun/shared/git/esp-idf-websocket)
   Compiling proc_macro v0.0.0 (/home/sun/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/proc_macro)
   Compiling nb v1.1.0
   Compiling byteorder v1.5.0
   Compiling embedded-io v0.6.1
   Compiling stable_deref_trait v1.2.0
   Compiling hash32 v0.3.1
   Compiling futures-core v0.3.30
   Compiling embedded-hal v1.0.0
   Compiling pin-project-lite v0.2.14
   Compiling pin-utils v0.1.0
   Compiling futures-task v0.3.30
   Compiling nb v0.1.3
   Compiling futures-util v0.3.30
   Compiling void v1.0.2
   Compiling const_format v0.2.33
   Compiling enumset v1.1.5
   Compiling critical-section v1.1.3
   Compiling embedded-hal v0.2.7
   Compiling embedded-hal-nb v1.0.0
   Compiling embedded-can v0.4.1
   Compiling atomic-waker v1.1.2
   Compiling num_enum v0.7.3
   Compiling embassy-futures v0.1.1
   Compiling embedded-svc v0.28.0
error[E0308]: mismatched types
  --> /home/sun/.cargo/registry/src/index.crates.io-6f17d22bba15001f/esp-idf-sys-0.35.0/src/lib.rs:63:62
   |
63 | const ESP_IDF_TIME64_CHECK: ::std::os::espidf::raw::time_t = 0 as crate::time_t;
   |                                                              ^^^^^^^^^^^^^^^^^^ expected `i32`, found `i64`

error[E0308]: mismatched types
  --> /home/sun/.cargo/registry/src/index.crates.io-6f17d22bba15001f/esp-idf-sys-0.35.0/src/lib.rs:65:51
   |
65 | const ESP_IDF_TIME64_CHECK_LIBC: ::libc::time_t = 0 as crate::time_t;
   |                                                   ^^^^^^^^^^^^^^^^^^ expected `i32`, found `i64`

For more information about this error, try `rustc --explain E0308`.
error: could not compile `esp-idf-sys` (lib) due to 2 previous errors

there you go. now it fails!

so I take back what I said. it's not because of some system packages, nor python3, nor libc. it is because of a single line that had been exported without notice and I didnt catch that.

I will remove that line. as it turns out it is somehow dangerous to export RUSTFLAGS globally.

problem solved for me.

this was a great adventure of error diagnosis.

@ivmarkov
Copy link
Collaborator

ivmarkov commented Oct 3, 2024

Exporting RUSTFLAGS globally - as you do - is a really bad idea. It overwrites everything we set in ./cargo/config.toml.

@ivmarkov ivmarkov closed this as completed Oct 3, 2024
@github-project-automation github-project-automation bot moved this from Todo to Done in esp-rs Oct 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

No branches or pull requests

4 participants