Skip to content

Conversation

Hahihula
Copy link
Collaborator

@Hahihula Hahihula commented May 5, 2025

Description

Adds the discovery command which will scan the filesystem for existing idf instances and will try to add them to the eim_idf.json file. But it will not fix them, so if it's just repository which was not installed, it will not work.
Supports the discovery of IDF installed previously by VScode.
Supports the discovery of IDF installed previously by Espressif IDE.
documentation updated

rebased

rebased again

rebased on top of new changes

rebased on top of the deduplication fix

waiting for #163 which solves the eclipse issue

rebased on top of last release

rebased on top of 0.2.8

rebased and tested

  • on macOS with 2 previously installed IDF (v5.5 v 5.3.3) by vscode -> was able to compile project by both of them from cli
  • on ubuntu with 2 previously installed IDF (v5.5 v 5.3.3) by vscode -> was able to compile project by both of them from cli

Related

Testing

Tested discovery of previously instaled IDF using vscode on macos. Sucesfully builded hello world.
Tested discovery of previously instaled IDF using eclipse on macos. Sucesfully builded hello world.


Checklist

Before submitting a Pull Request, please ensure the following:

  • 🚨 This PR does not introduce breaking changes.
  • All CI checks (GH Actions) pass.
  • Documentation is updated as needed.
  • Tests are updated or added as necessary.
  • Code is well-commented, especially in complex areas.
  • Git history is clean — commits are squashed to the minimum necessary.

Copy link

Important

Installation incomplete: to start using Gemini Code Assist, please ask the organization owner(s) to visit the Gemini Code Assist Admin Console and sign the Terms of Services.

@Hahihula Hahihula force-pushed the EIM-79-discovery branch 3 times, most recently from 0eeeefa to e9f1180 Compare May 6, 2025 11:37
@Hahihula Hahihula changed the title WIP EIM-79 discovery of existing idf installations May 6, 2025
@Hahihula Hahihula changed the title EIM-79 discovery of existing idf installations EIM-79 discovery of existing idf installations - WIP May 6, 2025
@Hahihula Hahihula force-pushed the EIM-79-discovery branch 7 times, most recently from 01c32b3 to 0cc3eb1 Compare May 9, 2025 08:54
@Hahihula Hahihula force-pushed the EIM-79-discovery branch 13 times, most recently from 8a4cd87 to f4c5c90 Compare May 28, 2025 11:11
@Hahihula Hahihula force-pushed the EIM-79-discovery branch 4 times, most recently from 97eb695 to de9d7bd Compare May 29, 2025 06:20
@Hahihula Hahihula marked this pull request as ready for review June 17, 2025 09:35
@brianignacio5
Copy link

brianignacio5 commented Jun 26, 2025

I've tested with eim cli linux x64

I have 2 versions defined in esp-idf.json that i installed with older vscode setup. Running the eim discover does indeed find the setups and add them to eim_idf.json.

The activation script does seems to have issues. Please review my Ubuntu terminal output.

brian@FA002502:~/Downloads$ ./eim discover $HOME/.espressif
2025-06-26T18:26:48.960315072+08:00 - INFO - Discovering available versions... (This can take couple of minutes)
2025-06-26T18:26:48.960342278+08:00 - INFO - Searching for esp_idf.json files...
2025-06-26T18:26:55.198761597+08:00 - INFO - Found 1 esp_idf.json files:
2025-06-26T18:26:55.198842073+08:00 - INFO - - /home/brian/.espressif/esp_idf.json 
2025-06-26T18:26:56.989891090+08:00 - WARN - No ELF ROM directories found in /home/brian/.espressif/esp-rom-elfs
2025-06-26T18:26:56.990212121+08:00 - WARN - No OpenOCD scripts found in /home/brian/.espressif/openocd-esp32
2025-06-26T18:26:57.004003822+08:00 - INFO - Activation shell script created successfully
2025-06-26T18:26:57.004021613+08:00 - INFO - OpenOCD rules copied successfully
2025-06-26T18:26:58.786825980+08:00 - WARN - No ELF ROM directories found in /home/brian/.espressif/esp-rom-elfs
2025-06-26T18:26:58.787132183+08:00 - WARN - No OpenOCD scripts found in /home/brian/.espressif/openocd-esp32
2025-06-26T18:26:58.787522403+08:00 - INFO - Activation shell script created successfully
2025-06-26T18:26:58.787538152+08:00 - INFO - OpenOCD rules copied successfully
2025-06-26T18:26:58.787744836+08:00 - INFO - Parsed config: "/home/brian/.espressif/esp_idf.json"
2025-06-26T18:26:58.787761435+08:00 - INFO - Searching for tool_set_config.json files...
2025-06-26T18:26:59.106163997+08:00 - INFO - No tool_set_config.json found
2025-06-26T18:26:59.106218370+08:00 - INFO - Searching for any other IDF directories...
2025-06-26T18:26:59.455648494+08:00 - INFO - Found 1 IDF directories:
2025-06-26T18:26:59.455684487+08:00 - INFO - - /home/brian/.espressif/v5.4.1/esp-idf 
2025-06-26T18:26:59.455693943+08:00 - INFO - Already present!
2025-06-26T18:26:59.455701939+08:00 - INFO - No new IDF directories found to add.
brian@FA002502:~/Downloads$ source /home/brian/.espressif/tools/activate_idf_5.3.2.sh
Added environment variable ESP_IDF_VERSION = 5.3.2
Added environment variable IDF_TOOLS_PATH = /home/brian/.espressif
Added environment variable IDF_PATH = /home/brian/esp/esp-idf-v5.3.2
Added environment variable ESP_ROM_ELF_DIR = /home/brian/.espressif/esp-rom-elfs
Added environment variable OPENOCD_SCRIPTS = 
Added environment variable IDF_PYTHON_ENV_PATH = /home/brian/.espressif/python_env/idf5.3_py3.12_env/
Added proper directory to PATH
Activated virtual environment at /home/brian/.espressif/python_env/idf5.3_py3.12_env/
Environment setup complete for the current shell session.
These changes will be lost when you close this terminal.
You are now using IDF version 5.3.2.
(idf5.3_py3.12_env) brian@FA002502:~/Downloads$ cd $IDF_PATH/examples/get-started/blink/
(idf5.3_py3.12_env) brian@FA002502:~/esp/esp-idf-v5.3.2/examples/get-started/blink$ ls
CMakeLists.txt  pytest_blink.py  sdkconfig.defaults        sdkconfig.defaults.esp32c3  sdkconfig.defaults.esp32c6  sdkconfig.defaults.esp32s2
main            README.md        sdkconfig.defaults.esp32  sdkconfig.defaults.esp32c5  sdkconfig.defaults.esp32h2  sdkconfig.defaults.esp32s3
(idf5.3_py3.12_env) brian@FA002502:~/esp/esp-idf-v5.3.2/examples/get-started/blink$ idf.py build
Executing action: all (aliases: build)
Running cmake in directory /home/brian/esp/esp-idf-v5.3.2/examples/get-started/blink/build
Executing "cmake -G Ninja -DPYTHON_DEPS_CHECKED=1 -DPYTHON=/home/brian/.espressif/python_env/idf5.3_py3.12_env/bin/python3 -DESP_PLATFORM=1 -DCCACHE_ENABLE=0 /home/brian/esp/esp-idf-v5.3.2/examples/get-started/blink"...
-- IDF_TARGET not set, using default target: esp32
-- Found Git: /usr/bin/git (found version "2.43.0") 
-- The C compiler identification is GNU 14.2.0
-- The CXX compiler identification is GNU 14.2.0
-- The ASM compiler identification is GNU
-- Found assembler: /home/brian/.espressif/tools/xtensa-esp-elf/bin/xtensa-esp32-elf-gcc
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /home/brian/.espressif/tools/xtensa-esp-elf/bin/xtensa-esp32-elf-gcc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /home/brian/.espressif/tools/xtensa-esp-elf/bin/xtensa-esp32-elf-g++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Building ESP-IDF components for target esp32
NOTICE: Dependencies lock doesn't exist, solving dependencies.
...NOTICE: Updating lock file at /home/brian/esp/esp-idf-v5.3.2/examples/get-started/blink/dependencies.lock
NOTICE: Processing 2 dependencies:
NOTICE: [1/2] espressif/led_strip (2.5.5)
NOTICE: [2/2] idf (5.3.2)
-- Project sdkconfig file /home/brian/esp/esp-idf-v5.3.2/examples/get-started/blink/sdkconfig
Loading defaults file /home/brian/esp/esp-idf-v5.3.2/examples/get-started/blink/sdkconfig.defaults...
Loading defaults file /home/brian/esp/esp-idf-v5.3.2/examples/get-started/blink/sdkconfig.defaults.esp32...
-- Compiler supported targets: xtensa-esp-elf
CMake Error at /home/brian/esp/esp-idf-v5.3.2/tools/cmake/tool_version_check.cmake:36 (message):
  

  Tool doesn't match supported version from list ['esp-13.2.0_20240530']:
  /home/brian/.espressif/tools/xtensa-esp-elf/bin/xtensa-esp32-elf-gcc

  Please try to run 'idf.py fullclean' to solve it.

Call Stack (most recent call first):
  /home/brian/esp/esp-idf-v5.3.2/components/esp_common/project_include.cmake:10 (check_expected_tool_version)
  /home/brian/esp/esp-idf-v5.3.2/tools/cmake/build.cmake:400 (include)
  /home/brian/esp/esp-idf-v5.3.2/tools/cmake/build.cmake:632 (__build_process_project_includes)
  /home/brian/esp/esp-idf-v5.3.2/tools/cmake/project.cmake:710 (idf_build_process)
  CMakeLists.txt:6 (project)


-- Configuring incomplete, errors occurred!
cmake failed with exit code 1, output of the command is in the /home/brian/esp/esp-idf-v5.3.2/examples/get-started/blink/build/log/idf_py_stderr_output_825047 and /home/brian/esp/esp-idf-v5.3.2/examples/get-started/blink/build/log/idf_py_stdout_output_825047
(idf5.3_py3.12_env) brian@FA002502:~/esp/esp-idf-v5.3.2/examples/get-started/blink$ echo $PATH
/home/brian/.espressif/python_env/idf5.3_py3.12_env/bin:/home/brian/.nvm/versions/node/v20.16.0/bin:/home/brian/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin:/home/brian/.espressif/:/home/brian/.espressif/bin:/home/brian/.espressif/ccache-4.10.2-windows-x86_64:/home/brian/.espressif/dfu-util-0.11-win64:/home/brian/.espressif/esp32ulp-elf/bin:/home/brian/.espressif/openocd-esp32/bin:/home/brian/.espressif/python_env/idf4.4_py3.10_env/bin:/home/brian/.espressif/python_env/idf5.0_py3.10_env/bin:/home/brian/.espressif/python_env/idf5.0_py3.12_env/bin:/home/brian/.espressif/python_env/idf5.3_py3.12_env/bin:/home/brian/.espressif/qemu/bin:/home/brian/.espressif/riscv32-esp-elf-gdb/bin:/home/brian/.espressif/riscv32-esp-elf/bin:/home/brian/.espressif/tools/cmake-3.16.3-Linux-x86_64/bin:/home/brian/.espressif/tools/esp-clang/16.0.1-fe4f10a809/esp-clang/bin:/home/brian/.espressif/tools/esp-clang/16.0.1-fe4f10a809/esp-clang/riscv32-esp-elf/bin:/home/brian/.espressif/tools/esp-clang/16.0.1-fe4f10a809/esp-clang/xtensa-esp32-elf/bin:/home/brian/.espressif/tools/esp-clang/16.0.1-fe4f10a809/esp-clang/xtensa-esp32s2-elf/bin:/home/brian/.espressif/tools/esp-clang/16.0.1-fe4f10a809/esp-clang/xtensa-esp32s3-elf/bin:/home/brian/.espressif/tools/esp-clang/bin:/home/brian/.espressif/tools/esp32ulp-elf/2.35_20220830/esp32ulp-elf/bin:/home/brian/.espressif/tools/esp32ulp-elf/2.35_20220830/esp32ulp-elf/esp32ulp-elf/bin:/home/brian/.espressif/tools/esp32ulp-elf/2.38_20240113/esp32ulp-elf/bin:/home/brian/.espressif/tools/esp32ulp-elf/2.38_20240113/esp32ulp-elf/esp32ulp-elf/bin:/home/brian/.espressif/tools/openocd-esp32/v0.12.0-esp32-20230921/openocd-esp32/bin:/home/brian/.espressif/tools/openocd-esp32/v0.12.0-esp32-20240318/openocd-esp32/bin:/home/brian/.espressif/tools/openocd-esp32/v0.12.0-esp32-20241016/openocd-esp32/bin:/home/brian/.espressif/tools/python/bin:/home/brian/.espressif/tools/qemu/bin:/home/brian/.espressif/tools/riscv32-esp-elf-gdb/11.2_20220823/riscv32-esp-elf-gdb/bin:/home/brian/.espressif/tools/riscv32-esp-elf-gdb/12.1_20231023/riscv32-esp-elf-gdb/bin:/home/brian/.espressif/tools/riscv32-esp-elf-gdb/14.2_20240403/riscv32-esp-elf-gdb/bin:/home/brian/.espressif/tools/riscv32-esp-elf/bin:/home/brian/.espressif/tools/riscv32-esp-elf/esp-13.2.0_20240530/riscv32-esp-elf/bin:/home/brian/.espressif/tools/riscv32-esp-elf/esp-13.2.0_20240530/riscv32-esp-elf/riscv32-esp-elf/bin:/home/brian/.espressif/tools/riscv32-esp-elf/esp-14.2.0_20241119/riscv32-esp-elf/bin:/home/brian/.espressif/tools/riscv32-esp-elf/esp-14.2.0_20241119/riscv32-esp-elf/riscv32-esp-elf/bin:/home/brian/.espressif/tools/riscv32-esp-elf/esp-2021r2-patch5-8.4.0/riscv32-esp-elf/bin:/home/brian/.espressif/tools/riscv32-esp-elf/esp-2021r2-patch5-8.4.0/riscv32-esp-elf/riscv32-esp-elf/bin:/home/brian/.espressif/tools/riscv32-esp-elf/esp-2022r1-11.2.0/riscv32-esp-elf/bin:/home/brian/.espressif/tools/riscv32-esp-elf/esp-2022r1-11.2.0/riscv32-esp-elf/riscv32-esp-elf/bin:/home/brian/.espressif/tools/riscv32-esp-elf/riscv32-esp-elf/bin:/home/brian/.espressif/tools/xtensa-esp-elf-gdb/11.2_20220823/xtensa-esp-elf-gdb/bin:/home/brian/.espressif/tools/xtensa-esp-elf-gdb/12.1_20231023/xtensa-esp-elf-gdb/bin:/home/brian/.espressif/tools/xtensa-esp-elf-gdb/14.2_20240403/xtensa-esp-elf-gdb/bin:/home/brian/.espressif/tools/xtensa-esp-elf/bin:/home/brian/.espressif/tools/xtensa-esp-elf/esp-13.2.0_20240530/xtensa-esp-elf/bin:/home/brian/.espressif/tools/xtensa-esp-elf/esp-13.2.0_20240530/xtensa-esp-elf/xtensa-esp-elf/bin:/home/brian/.espressif/tools/xtensa-esp-elf/esp-14.2.0_20241119/xtensa-esp-elf/bin:/home/brian/.espressif/tools/xtensa-esp-elf/esp-14.2.0_20241119/xtensa-esp-elf/xtensa-esp-elf/bin:/home/brian/.espressif/tools/xtensa-esp-elf/xtensa-esp-elf/bin:/home/brian/.espressif/tools/xtensa-esp32-elf/esp-2021r2-patch5-8.4.0/xtensa-esp32-elf/bin:/home/brian/.espressif/tools/xtensa-esp32-elf/esp-2021r2-patch5-8.4.0/xtensa-esp32-elf/xtensa-esp32-elf/bin:/home/brian/.espressif/tools/xtensa-esp32-elf/esp-2022r1-11.2.0/xtensa-esp32-elf/bin:/home/brian/.espressif/tools/xtensa-esp32-elf/esp-2022r1-11.2.0/xtensa-esp32-elf/xtensa-esp32-elf/bin:/home/brian/.espressif/tools/xtensa-esp32s2-elf/esp-2021r2-patch5-8.4.0/xtensa-esp32s2-elf/bin:/home/brian/.espressif/tools/xtensa-esp32s2-elf/esp-2021r2-patch5-8.4.0/xtensa-esp32s2-elf/xtensa-esp32s2-elf/bin:/home/brian/.espressif/tools/xtensa-esp32s2-elf/esp-2022r1-11.2.0/xtensa-esp32s2-elf/bin:/home/brian/.espressif/tools/xtensa-esp32s2-elf/esp-2022r1-11.2.0/xtensa-esp32s2-elf/xtensa-esp32s2-elf/bin:/home/brian/.espressif/tools/xtensa-esp32s3-elf/esp-2021r2-patch5-8.4.0/xtensa-esp32s3-elf/bin:/home/brian/.espressif/tools/xtensa-esp32s3-elf/esp-2021r2-patch5-8.4.0/xtensa-esp32s3-elf/xtensa-esp32s3-elf/bin:/home/brian/.espressif/tools/xtensa-esp32s3-elf/esp-2022r1-11.2.0/xtensa-esp32s3-elf/bin:/home/brian/.espressif/tools/xtensa-esp32s3-elf/esp-2022r1-11.2.0/xtensa-esp32s3-elf/xtensa-esp32s3-elf/bin:/home/brian/.espressif/xtensa-esp-elf-gdb/bin:/home/brian/.espressif/xtensa-esp-elf/bin:/home/brian/.espressif/esp-clang/bin:/usr/bin/git:/home/brian/.espressif/python_env/idf5.3_py3.12_env/bin

Here is my PATH in a different terminal

brian@FA002502:~$ echo $PATH
/home/brian/.nvm/versions/node/v20.16.0/bin:/home/brian/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin

Regarding the second setup that was found, it seems to be working properly.

Here is the steps and output i've used for testing it:

brian@FA002502:~$ echo $PATH
/home/brian/.nvm/versions/node/v20.16.0/bin:/home/brian/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin
brian@FA002502:~$ source /home/brian/.espressif/tools/activate_idf_5.0.6.sh
Added environment variable ESP_IDF_VERSION = 5.0.6
Added environment variable IDF_TOOLS_PATH = /home/brian/.espressif
Added environment variable IDF_PATH = /home/brian/esp/v5.0.6/esp-idf
Added environment variable ESP_ROM_ELF_DIR = /home/brian/.espressif/esp-rom-elfs
Added environment variable OPENOCD_SCRIPTS = 
Added environment variable IDF_PYTHON_ENV_PATH = /home/brian/.espressif/python_env/idf5.0_py3.12_env/
Added proper directory to PATH
Activated virtual environment at /home/brian/.espressif/python_env/idf5.0_py3.12_env/
Environment setup complete for the current shell session.
These changes will be lost when you close this terminal.
You are now using IDF version 5.0.6.
(idf5.0_py3.12_env) brian@FA002502:~$ cd $IDF_PATH/examples/get-started/blink/
(idf5.0_py3.12_env) brian@FA002502:~/esp/v5.0.6/esp-idf/examples/get-started/blink$ idf.py build
Executing action: all (aliases: build)
Running cmake in directory /home/brian/esp/v5.0.6/esp-idf/examples/get-started/blink/build
Executing "cmake -G Ninja -DPYTHON_DEPS_CHECKED=1 -DESP_PLATFORM=1 -DCCACHE_ENABLE=0 /home/brian/esp/v5.0.6/esp-idf/examples/get-started/blink"...
-- IDF_TARGET not set, using default target: esp32
-- Found Git: /usr/bin/git (found version "2.43.0") 
-- The C compiler identification is GNU 14.2.0
-- The CXX compiler identification is GNU 14.2.0
-- The ASM compiler identification is GNU
-- Found assembler: /home/brian/.espressif/tools/xtensa-esp-elf/bin/xtensa-esp32-elf-gcc
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /home/brian/.espressif/tools/xtensa-esp-elf/bin/xtensa-esp32-elf-gcc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /home/brian/.espressif/tools/xtensa-esp-elf/bin/xtensa-esp32-elf-g++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Building ESP-IDF components for target esp32
NOTICE: Dependencies lock doesn't exist, solving dependencies.
...NOTICE: Updating lock file at /home/brian/esp/v5.0.6/esp-idf/examples/get-started/blink/dependencies.lock
NOTICE: Processing 2 dependencies:
NOTICE: [1/2] espressif/led_strip (2.5.5)
NOTICE: [2/2] idf (5.0.6)
-- Project sdkconfig file /home/brian/esp/v5.0.6/esp-idf/examples/get-started/blink/sdkconfig
CMake Warning at /home/brian/esp/v5.0.6/esp-idf/tools/cmake/tool_version_check.cmake:41 (message):
  Can not get version for tool:
  /home/brian/.espressif/tools/xtensa-esp-elf/bin/xtensa-esp32-elf-gcc

  Check Getting Started documentation or proceed at own risk.

Call Stack (most recent call first):
  /home/brian/esp/v5.0.6/esp-idf/components/esp_common/project_include.cmake:10 (check_expected_tool_version)
  /home/brian/esp/v5.0.6/esp-idf/tools/cmake/build.cmake:380 (include)
  /home/brian/esp/v5.0.6/esp-idf/tools/cmake/build.cmake:599 (__build_process_project_includes)
  /home/brian/esp/v5.0.6/esp-idf/tools/cmake/project.cmake:530 (idf_build_process)
  CMakeLists.txt:6 (project)


-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of time_t
-- Check size of time_t - done
-- Found Python3: /home/brian/.espressif/python_env/idf5.0_py3.12_env/bin/python3 (found version "3.12.3") found components: Interpreter 
-- Performing Test C_COMPILER_SUPPORTS_WFORMAT_SIGNEDNESS
-- Performing Test C_COMPILER_SUPPORTS_WFORMAT_SIGNEDNESS - Success
-- App "blink" version: v5.0.6-dirty
-- Adding linker script /home/brian/esp/v5.0.6/esp-idf/examples/get-started/blink/build/esp-idf/esp_system/ld/memory.ld
-- Adding linker script /home/brian/esp/v5.0.6/esp-idf/components/esp_system/ld/esp32/sections.ld.in
-- Adding linker script /home/brian/esp/v5.0.6/esp-idf/components/esp_rom/esp32/ld/esp32.rom.ld
-- Adding linker script /home/brian/esp/v5.0.6/esp-idf/components/esp_rom/esp32/ld/esp32.rom.api.ld
-- Adding linker script /home/brian/esp/v5.0.6/esp-idf/components/esp_rom/esp32/ld/esp32.rom.libgcc.ld
-- Adding linker script /home/brian/esp/v5.0.6/esp-idf/components/esp_rom/esp32/ld/esp32.rom.newlib-data.ld
-- Adding linker script /home/brian/esp/v5.0.6/esp-idf/components/esp_rom/esp32/ld/esp32.rom.syscalls.ld
-- Adding linker script /home/brian/esp/v5.0.6/esp-idf/components/esp_rom/esp32/ld/esp32.rom.newlib-funcs.ld
-- Adding linker script /home/brian/esp/v5.0.6/esp-idf/components/soc/esp32/ld/esp32.peripherals.ld
-- Components: app_trace app_update bootloader bootloader_support bt cmock console cxx driver efuse esp-tls esp_adc esp_app_format esp_common esp_eth esp_event esp_gdbstub esp_hid esp_http_client esp_http_server esp_https_ota esp_https_server esp_hw_support esp_lcd esp_local_ctrl esp_netif esp_partition esp_phy esp_pm esp_psram esp_ringbuf esp_rom esp_system esp_timer esp_wifi espcoredump espressif__led_strip esptool_py fatfs freertos hal heap http_parser idf_test ieee802154 json log lwip main mbedtls mqtt newlib nvs_flash openthread partition_table perfmon protobuf-c protocomm pthread sdmmc soc spi_flash spiffs tcp_transport ulp unity usb vfs wear_levelling wifi_provisioning wpa_supplicant xtensa
-- Component paths: /home/brian/esp/v5.0.6/esp-idf/components/app_trace /home/brian/esp/v5.0.6/esp-idf/components/app_update /home/brian/esp/v5.0.6/esp-idf/components/bootloader /home/brian/esp/v5.0.6/esp-idf/components/bootloader_support /home/brian/esp/v5.0.6/esp-idf/components/bt /home/brian/esp/v5.0.6/esp-idf/components/cmock /home/brian/esp/v5.0.6/esp-idf/components/console /home/brian/esp/v5.0.6/esp-idf/components/cxx /home/brian/esp/v5.0.6/esp-idf/components/driver /home/brian/esp/v5.0.6/esp-idf/components/efuse /home/brian/esp/v5.0.6/esp-idf/components/esp-tls /home/brian/esp/v5.0.6/esp-idf/components/esp_adc /home/brian/esp/v5.0.6/esp-idf/components/esp_app_format /home/brian/esp/v5.0.6/esp-idf/components/esp_common /home/brian/esp/v5.0.6/esp-idf/components/esp_eth /home/brian/esp/v5.0.6/esp-idf/components/esp_event /home/brian/esp/v5.0.6/esp-idf/components/esp_gdbstub /home/brian/esp/v5.0.6/esp-idf/components/esp_hid /home/brian/esp/v5.0.6/esp-idf/components/esp_http_client /home/brian/esp/v5.0.6/esp-idf/components/esp_http_server /home/brian/esp/v5.0.6/esp-idf/components/esp_https_ota /home/brian/esp/v5.0.6/esp-idf/components/esp_https_server /home/brian/esp/v5.0.6/esp-idf/components/esp_hw_support /home/brian/esp/v5.0.6/esp-idf/components/esp_lcd /home/brian/esp/v5.0.6/esp-idf/components/esp_local_ctrl /home/brian/esp/v5.0.6/esp-idf/components/esp_netif /home/brian/esp/v5.0.6/esp-idf/components/esp_partition /home/brian/esp/v5.0.6/esp-idf/components/esp_phy /home/brian/esp/v5.0.6/esp-idf/components/esp_pm /home/brian/esp/v5.0.6/esp-idf/components/esp_psram /home/brian/esp/v5.0.6/esp-idf/components/esp_ringbuf /home/brian/esp/v5.0.6/esp-idf/components/esp_rom /home/brian/esp/v5.0.6/esp-idf/components/esp_system /home/brian/esp/v5.0.6/esp-idf/components/esp_timer /home/brian/esp/v5.0.6/esp-idf/components/esp_wifi /home/brian/esp/v5.0.6/esp-idf/components/espcoredump /home/brian/esp/v5.0.6/esp-idf/examples/get-started/blink/managed_components/espressif__led_strip /home/brian/esp/v5.0.6/esp-idf/components/esptool_py /home/brian/esp/v5.0.6/esp-idf/components/fatfs /home/brian/esp/v5.0.6/esp-idf/components/freertos /home/brian/esp/v5.0.6/esp-idf/components/hal /home/brian/esp/v5.0.6/esp-idf/components/heap /home/brian/esp/v5.0.6/esp-idf/components/http_parser /home/brian/esp/v5.0.6/esp-idf/components/idf_test /home/brian/esp/v5.0.6/esp-idf/components/ieee802154 /home/brian/esp/v5.0.6/esp-idf/components/json /home/brian/esp/v5.0.6/esp-idf/components/log /home/brian/esp/v5.0.6/esp-idf/components/lwip /home/brian/esp/v5.0.6/esp-idf/examples/get-started/blink/main /home/brian/esp/v5.0.6/esp-idf/components/mbedtls /home/brian/esp/v5.0.6/esp-idf/components/mqtt /home/brian/esp/v5.0.6/esp-idf/components/newlib /home/brian/esp/v5.0.6/esp-idf/components/nvs_flash /home/brian/esp/v5.0.6/esp-idf/components/openthread /home/brian/esp/v5.0.6/esp-idf/components/partition_table /home/brian/esp/v5.0.6/esp-idf/components/perfmon /home/brian/esp/v5.0.6/esp-idf/components/protobuf-c /home/brian/esp/v5.0.6/esp-idf/components/protocomm /home/brian/esp/v5.0.6/esp-idf/components/pthread /home/brian/esp/v5.0.6/esp-idf/components/sdmmc /home/brian/esp/v5.0.6/esp-idf/components/soc /home/brian/esp/v5.0.6/esp-idf/components/spi_flash /home/brian/esp/v5.0.6/esp-idf/components/spiffs /home/brian/esp/v5.0.6/esp-idf/components/tcp_transport /home/brian/esp/v5.0.6/esp-idf/components/ulp /home/brian/esp/v5.0.6/esp-idf/components/unity /home/brian/esp/v5.0.6/esp-idf/components/usb /home/brian/esp/v5.0.6/esp-idf/components/vfs /home/brian/esp/v5.0.6/esp-idf/components/wear_levelling /home/brian/esp/v5.0.6/esp-idf/components/wifi_provisioning /home/brian/esp/v5.0.6/esp-idf/components/wpa_supplicant /home/brian/esp/v5.0.6/esp-idf/components/xtensa
-- Configuring done (4.9s)
-- Generating done (0.1s)
-- Build files have been written to: /home/brian/esp/v5.0.6/esp-idf/examples/get-started/blink/build
Running ninja in directory /home/brian/esp/v5.0.6/esp-idf/examples/get-started/blink/build
Executing "ninja all"...
[12/876] Generating ../../partition_table/partition-table.binPartition table binary generated. Contents:
*******************************************************************************
# ESP-IDF Partition Table
# Name, Type, SubType, Offset, Size, Flags
nvs,data,nvs,0x9000,24K,
phy_init,data,phy,0xf000,4K,
factory,app,factory,0x10000,1M,
*******************************************************************************
[159/876] Building C object esp-idf/esp_partition/CMakeFiles/__idf_esp_partition.dir/partition.c.obj/home/brian/esp/v5.0.6/esp-idf/components/esp_partition/partition.c: In function 'load_partitions':
/home/brian/esp/v5.0.6/esp-idf/components/esp_partition/partition.c:129:79: warning: 'calloc' sizes specified with 'sizeof' in the earlier argument and not in the later argument [-Wcalloc-transposed-args]
  129 |         partition_list_item_t *item = (partition_list_item_t *) calloc(sizeof(partition_list_item_t), 1);
      |                                                                               ^~~~~~~~~~~~~~~~~~~~~
/home/brian/esp/v5.0.6/esp-idf/components/esp_partition/partition.c:129:79: note: earlier argument should specify number of elements, later size of each element
/home/brian/esp/v5.0.6/esp-idf/components/esp_partition/partition.c: In function 'esp_partition_register_external':
/home/brian/esp/v5.0.6/esp-idf/components/esp_partition/partition.c:387:75: warning: 'calloc' sizes specified with 'sizeof' in the earlier argument and not in the later argument [-Wcalloc-transposed-args]
  387 |     partition_list_item_t *item = (partition_list_item_t *) calloc(sizeof(partition_list_item_t), 1);
      |                                                                           ^~~~~~~~~~~~~~~~~~~~~
/home/brian/esp/v5.0.6/esp-idf/components/esp_partition/partition.c:387:75: note: earlier argument should specify number of elements, later size of each element
[161/876] Building C object esp-idf/app_update/CMakeFiles/__idf_app_update.dir/esp_ota_ops.c.obj/home/brian/esp/v5.0.6/esp-idf/components/app_update/esp_ota_ops.c: In function 'esp_ota_begin':
/home/brian/esp/v5.0.6/esp-idf/components/app_update/esp_ota_ops.c:171:51: warning: 'calloc' sizes specified with 'sizeof' in the earlier argument and not in the later argument [-Wcalloc-transposed-args]
  171 |     new_entry = (ota_ops_entry_t *) calloc(sizeof(ota_ops_entry_t), 1);
      |                                                   ^~~~~~~~~~~~~~~
/home/brian/esp/v5.0.6/esp-idf/components/app_update/esp_ota_ops.c:171:51: note: earlier argument should specify number of elements, later size of each element
[338/876] Building C object esp-idf/newlib/CMakeFiles/__idf_newlib.dir/reent_init.c.objFAILED: esp-idf/newlib/CMakeFiles/__idf_newlib.dir/reent_init.c.obj 
/home/brian/.espressif/tools/xtensa-esp-elf/bin/xtensa-esp32-elf-gcc -DSOC_MMU_PAGE_SIZE=CONFIG_MMU_PAGE_SIZE -I/home/brian/esp/v5.0.6/esp-idf/examples/get-started/blink/build/config -I/home/brian/esp/v5.0.6/esp-idf/components/newlib/platform_include -I/home/brian/esp/v5.0.6/esp-idf/components/newlib/priv_include -I/home/brian/esp/v5.0.6/esp-idf/components/freertos/FreeRTOS-Kernel/include -I/home/brian/esp/v5.0.6/esp-idf/components/freertos/esp_additions/include/freertos -I/home/brian/esp/v5.0.6/esp-idf/components/freertos/FreeRTOS-Kernel/portable/xtensa/include -I/home/brian/esp/v5.0.6/esp-idf/components/freertos/esp_additions/include -I/home/brian/esp/v5.0.6/esp-idf/components/esp_hw_support/include -I/home/brian/esp/v5.0.6/esp-idf/components/esp_hw_support/include/soc -I/home/brian/esp/v5.0.6/esp-idf/components/esp_hw_support/include/soc/esp32 -I/home/brian/esp/v5.0.6/esp-idf/components/esp_hw_support/port/esp32/. -I/home/brian/esp/v5.0.6/esp-idf/components/heap/include -I/home/brian/esp/v5.0.6/esp-idf/components/log/include -I/home/brian/esp/v5.0.6/esp-idf/components/soc/include -I/home/brian/esp/v5.0.6/esp-idf/components/soc/esp32/. -I/home/brian/esp/v5.0.6/esp-idf/components/soc/esp32/include -I/home/brian/esp/v5.0.6/esp-idf/components/hal/esp32/include -I/home/brian/esp/v5.0.6/esp-idf/components/hal/include -I/home/brian/esp/v5.0.6/esp-idf/components/hal/platform_port/include -I/home/brian/esp/v5.0.6/esp-idf/components/esp_rom/include -I/home/brian/esp/v5.0.6/esp-idf/components/esp_rom/include/esp32 -I/home/brian/esp/v5.0.6/esp-idf/components/esp_rom/esp32 -I/home/brian/esp/v5.0.6/esp-idf/components/esp_common/include -I/home/brian/esp/v5.0.6/esp-idf/components/esp_system/include -I/home/brian/esp/v5.0.6/esp-idf/components/esp_system/port/soc -I/home/brian/esp/v5.0.6/esp-idf/components/esp_system/port/include/private -I/home/brian/esp/v5.0.6/esp-idf/components/xtensa/include -I/home/brian/esp/v5.0.6/esp-idf/components/xtensa/esp32/include -I/home/brian/esp/v5.0.6/esp-idf/components/lwip/include -I/home/brian/esp/v5.0.6/esp-idf/components/lwip/include/apps -I/home/brian/esp/v5.0.6/esp-idf/components/lwip/include/apps/sntp -I/home/brian/esp/v5.0.6/esp-idf/components/lwip/lwip/src/include -I/home/brian/esp/v5.0.6/esp-idf/components/lwip/port/esp32/include -I/home/brian/esp/v5.0.6/esp-idf/components/lwip/port/esp32/include/arch -I/home/brian/esp/v5.0.6/esp-idf/components/spi_flash/include -mlongcalls -Wno-frame-address  -fdiagnostics-color=always -ffunction-sections -fdata-sections -Wall -Werror=all -Wno-error=unused-function -Wno-error=unused-variable -Wno-error=deprecated-declarations -Wextra -Wno-unused-parameter -Wno-sign-compare -Wno-enum-conversion -gdwarf-4 -ggdb -Og -fmacro-prefix-map=/home/brian/esp/v5.0.6/esp-idf/examples/get-started/blink=. -fmacro-prefix-map=/home/brian/esp/v5.0.6/esp-idf=/IDF -fstrict-volatile-bitfields -Wno-error=unused-but-set-variable -fno-jump-tables -fno-tree-switch-conversion -DconfigENABLE_FREERTOS_DEBUG_OCDAWARE=1 -std=gnu17 -Wno-old-style-declaration -D_GNU_SOURCE -DIDF_VER=\"v5.0.6-dirty\" -DESP_PLATFORM -D_POSIX_READER_WRITER_LOCKS -MD -MT esp-idf/newlib/CMakeFiles/__idf_newlib.dir/reent_init.c.obj -MF esp-idf/newlib/CMakeFiles/__idf_newlib.dir/reent_init.c.obj.d -o esp-idf/newlib/CMakeFiles/__idf_newlib.dir/reent_init.c.obj -c /home/brian/esp/v5.0.6/esp-idf/components/newlib/reent_init.c
/home/brian/esp/v5.0.6/esp-idf/components/newlib/reent_init.c: In function 'esp_reent_init':
/home/brian/esp/v5.0.6/esp-idf/components/newlib/reent_init.c:29:6: error: 'struct _reent' has no member named '__sdidinit'
   29 |     r->__sdidinit = 1;
      |      ^~
/home/brian/esp/v5.0.6/esp-idf/components/newlib/reent_init.c:30:6: error: 'struct _reent' has no member named '__sglue'
   30 |     r->__sglue._next = NULL;
      |      ^~
/home/brian/esp/v5.0.6/esp-idf/components/newlib/reent_init.c:31:6: error: 'struct _reent' has no member named '__sglue'
   31 |     r->__sglue._niobs = 0;
      |      ^~
/home/brian/esp/v5.0.6/esp-idf/components/newlib/reent_init.c:32:6: error: 'struct _reent' has no member named '__sglue'
   32 |     r->__sglue._iobs = NULL;
      |      ^~
/home/brian/esp/v5.0.6/esp-idf/components/newlib/reent_init.c: In function 'esp_reent_cleanup':
/home/brian/esp/v5.0.6/esp-idf/components/newlib/reent_init.c:60:40: error: 'struct _reent' has no member named '__sglue'
   60 |     struct _glue* prev = &_GLOBAL_REENT->__sglue;
      |                                        ^~
/home/brian/esp/v5.0.6/esp-idf/components/newlib/reent_init.c:61:43: error: 'struct _reent' has no member named '__sglue'
   61 |     for (struct _glue* cur = _GLOBAL_REENT->__sglue._next; cur != NULL;) {
      |                                           ^~
[348/876] Building C object esp-idf/newlib/CMakeFiles/__idf_newlib.dir/newlib_init.c.objFAILED: esp-idf/newlib/CMakeFiles/__idf_newlib.dir/newlib_init.c.obj 
/home/brian/.espressif/tools/xtensa-esp-elf/bin/xtensa-esp32-elf-gcc -DSOC_MMU_PAGE_SIZE=CONFIG_MMU_PAGE_SIZE -I/home/brian/esp/v5.0.6/esp-idf/examples/get-started/blink/build/config -I/home/brian/esp/v5.0.6/esp-idf/components/newlib/platform_include -I/home/brian/esp/v5.0.6/esp-idf/components/newlib/priv_include -I/home/brian/esp/v5.0.6/esp-idf/components/freertos/FreeRTOS-Kernel/include -I/home/brian/esp/v5.0.6/esp-idf/components/freertos/esp_additions/include/freertos -I/home/brian/esp/v5.0.6/esp-idf/components/freertos/FreeRTOS-Kernel/portable/xtensa/include -I/home/brian/esp/v5.0.6/esp-idf/components/freertos/esp_additions/include -I/home/brian/esp/v5.0.6/esp-idf/components/esp_hw_support/include -I/home/brian/esp/v5.0.6/esp-idf/components/esp_hw_support/include/soc -I/home/brian/esp/v5.0.6/esp-idf/components/esp_hw_support/include/soc/esp32 -I/home/brian/esp/v5.0.6/esp-idf/components/esp_hw_support/port/esp32/. -I/home/brian/esp/v5.0.6/esp-idf/components/heap/include -I/home/brian/esp/v5.0.6/esp-idf/components/log/include -I/home/brian/esp/v5.0.6/esp-idf/components/soc/include -I/home/brian/esp/v5.0.6/esp-idf/components/soc/esp32/. -I/home/brian/esp/v5.0.6/esp-idf/components/soc/esp32/include -I/home/brian/esp/v5.0.6/esp-idf/components/hal/esp32/include -I/home/brian/esp/v5.0.6/esp-idf/components/hal/include -I/home/brian/esp/v5.0.6/esp-idf/components/hal/platform_port/include -I/home/brian/esp/v5.0.6/esp-idf/components/esp_rom/include -I/home/brian/esp/v5.0.6/esp-idf/components/esp_rom/include/esp32 -I/home/brian/esp/v5.0.6/esp-idf/components/esp_rom/esp32 -I/home/brian/esp/v5.0.6/esp-idf/components/esp_common/include -I/home/brian/esp/v5.0.6/esp-idf/components/esp_system/include -I/home/brian/esp/v5.0.6/esp-idf/components/esp_system/port/soc -I/home/brian/esp/v5.0.6/esp-idf/components/esp_system/port/include/private -I/home/brian/esp/v5.0.6/esp-idf/components/xtensa/include -I/home/brian/esp/v5.0.6/esp-idf/components/xtensa/esp32/include -I/home/brian/esp/v5.0.6/esp-idf/components/lwip/include -I/home/brian/esp/v5.0.6/esp-idf/components/lwip/include/apps -I/home/brian/esp/v5.0.6/esp-idf/components/lwip/include/apps/sntp -I/home/brian/esp/v5.0.6/esp-idf/components/lwip/lwip/src/include -I/home/brian/esp/v5.0.6/esp-idf/components/lwip/port/esp32/include -I/home/brian/esp/v5.0.6/esp-idf/components/lwip/port/esp32/include/arch -I/home/brian/esp/v5.0.6/esp-idf/components/spi_flash/include -mlongcalls -Wno-frame-address  -fdiagnostics-color=always -ffunction-sections -fdata-sections -Wall -Werror=all -Wno-error=unused-function -Wno-error=unused-variable -Wno-error=deprecated-declarations -Wextra -Wno-unused-parameter -Wno-sign-compare -Wno-enum-conversion -gdwarf-4 -ggdb -Og -fmacro-prefix-map=/home/brian/esp/v5.0.6/esp-idf/examples/get-started/blink=. -fmacro-prefix-map=/home/brian/esp/v5.0.6/esp-idf=/IDF -fstrict-volatile-bitfields -Wno-error=unused-but-set-variable -fno-jump-tables -fno-tree-switch-conversion -DconfigENABLE_FREERTOS_DEBUG_OCDAWARE=1 -std=gnu17 -Wno-old-style-declaration -D_GNU_SOURCE -DIDF_VER=\"v5.0.6-dirty\" -DESP_PLATFORM -D_POSIX_READER_WRITER_LOCKS -MD -MT esp-idf/newlib/CMakeFiles/__idf_newlib.dir/newlib_init.c.obj -MF esp-idf/newlib/CMakeFiles/__idf_newlib.dir/newlib_init.c.obj.d -o esp-idf/newlib/CMakeFiles/__idf_newlib.dir/newlib_init.c.obj -c /home/brian/esp/v5.0.6/esp-idf/components/newlib/newlib_init.c
/home/brian/esp/v5.0.6/esp-idf/components/newlib/newlib_init.c: In function 'esp_newlib_init':
/home/brian/esp/v5.0.6/esp-idf/components/newlib/newlib_init.c:139:19: error: lvalue required as left operand of assignment
  139 |     _GLOBAL_REENT = &s_reent;
      |                   ^
[359/876] Performing configure step for 'bootloader'-- Found Git: /usr/bin/git (found version "2.43.0") 
-- The C compiler identification is GNU 14.2.0
-- The CXX compiler identification is GNU 14.2.0
-- The ASM compiler identification is GNU
-- Found assembler: /home/brian/.espressif/tools/xtensa-esp-elf/bin/xtensa-esp32-elf-gcc
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /home/brian/.espressif/tools/xtensa-esp-elf/bin/xtensa-esp32-elf-gcc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /home/brian/.espressif/tools/xtensa-esp-elf/bin/xtensa-esp32-elf-g++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Building ESP-IDF components for target esp32
-- Project sdkconfig file /home/brian/esp/v5.0.6/esp-idf/examples/get-started/blink/sdkconfig
CMake Warning at /home/brian/esp/v5.0.6/esp-idf/tools/cmake/tool_version_check.cmake:41 (message):
  Can not get version for tool:
  /home/brian/.espressif/tools/xtensa-esp-elf/bin/xtensa-esp32-elf-gcc

  Check Getting Started documentation or proceed at own risk.

Call Stack (most recent call first):
  /home/brian/esp/v5.0.6/esp-idf/components/esp_common/project_include.cmake:10 (check_expected_tool_version)
  /home/brian/esp/v5.0.6/esp-idf/tools/cmake/build.cmake:380 (include)
  /home/brian/esp/v5.0.6/esp-idf/tools/cmake/build.cmake:599 (__build_process_project_includes)
  /home/brian/esp/v5.0.6/esp-idf/tools/cmake/project.cmake:530 (idf_build_process)
  CMakeLists.txt:58 (project)


-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of time_t
-- Check size of time_t - done
-- Adding linker script /home/brian/esp/v5.0.6/esp-idf/components/soc/esp32/ld/esp32.peripherals.ld
-- App "bootloader" version: v5.0.6-dirty
-- Adding linker script /home/brian/esp/v5.0.6/esp-idf/components/esp_rom/esp32/ld/esp32.rom.ld
-- Adding linker script /home/brian/esp/v5.0.6/esp-idf/components/esp_rom/esp32/ld/esp32.rom.api.ld
-- Adding linker script /home/brian/esp/v5.0.6/esp-idf/components/esp_rom/esp32/ld/esp32.rom.libgcc.ld
-- Adding linker script /home/brian/esp/v5.0.6/esp-idf/components/esp_rom/esp32/ld/esp32.rom.newlib-funcs.ld
-- Adding linker script /home/brian/esp/v5.0.6/esp-idf/components/bootloader/subproject/main/ld/esp32/bootloader.ld
-- Adding linker script /home/brian/esp/v5.0.6/esp-idf/components/bootloader/subproject/main/ld/esp32/bootloader.rom.ld
-- Components: bootloader bootloader_support efuse esp_app_format esp_common esp_hw_support esp_rom esp_system esptool_py freertos hal log main micro-ecc newlib partition_table soc spi_flash xtensa
-- Component paths: /home/brian/esp/v5.0.6/esp-idf/components/bootloader /home/brian/esp/v5.0.6/esp-idf/components/bootloader_support /home/brian/esp/v5.0.6/esp-idf/components/efuse /home/brian/esp/v5.0.6/esp-idf/components/esp_app_format /home/brian/esp/v5.0.6/esp-idf/components/esp_common /home/brian/esp/v5.0.6/esp-idf/components/esp_hw_support /home/brian/esp/v5.0.6/esp-idf/components/esp_rom /home/brian/esp/v5.0.6/esp-idf/components/esp_system /home/brian/esp/v5.0.6/esp-idf/components/esptool_py /home/brian/esp/v5.0.6/esp-idf/components/freertos /home/brian/esp/v5.0.6/esp-idf/components/hal /home/brian/esp/v5.0.6/esp-idf/components/log /home/brian/esp/v5.0.6/esp-idf/components/bootloader/subproject/main /home/brian/esp/v5.0.6/esp-idf/components/bootloader/subproject/components/micro-ecc /home/brian/esp/v5.0.6/esp-idf/components/newlib /home/brian/esp/v5.0.6/esp-idf/components/partition_table /home/brian/esp/v5.0.6/esp-idf/components/soc /home/brian/esp/v5.0.6/esp-idf/components/spi_flash /home/brian/esp/v5.0.6/esp-idf/components/xtensa
-- Configuring done (2.7s)
-- Generating done (0.0s)
-- Build files have been written to: /home/brian/esp/v5.0.6/esp-idf/examples/get-started/blink/build/bootloader
ninja: build stopped: subcommand failed.
ninja failed with exit code 1, output of the command is in the /home/brian/esp/v5.0.6/esp-idf/examples/get-started/blink/build/log/idf_py_stderr_output_922801 and /home/brian/esp/v5.0.6/esp-idf/examples/get-started/blink/build/log/idf_py_stdout_output_922801
(idf5.0_py3.12_env) brian@FA002502:~/esp/v5.0.6/esp-idf/examples/get-started/blink$ echo $PATH
/home/brian/.espressif/python_env/idf5.0_py3.12_env/bin:/home/brian/.nvm/versions/node/v20.16.0/bin:/home/brian/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin:/home/brian/.espressif/:/home/brian/.espressif/bin:/home/brian/.espressif/ccache-4.6.2-windows-x86_64:/home/brian/.espressif/dfu-util-0.9-win64:/home/brian/.espressif/esp32ulp-elf/bin:/home/brian/.espressif/openocd-esp32/bin:/home/brian/.espressif/python_env/idf4.4_py3.10_env/bin:/home/brian/.espressif/python_env/idf5.0_py3.10_env/bin:/home/brian/.espressif/python_env/idf5.0_py3.12_env/bin:/home/brian/.espressif/python_env/idf5.3_py3.12_env/bin:/home/brian/.espressif/riscv32-esp-elf-gdb/bin:/home/brian/.espressif/riscv32-esp-elf/bin:/home/brian/.espressif/tools/cmake-3.16.3-Linux-x86_64/bin:/home/brian/.espressif/tools/esp-clang/16.0.1-fe4f10a809/esp-clang/riscv32-esp-elf/bin:/home/brian/.espressif/tools/esp-clang/16.0.1-fe4f10a809/esp-clang/xtensa-esp32-elf/bin:/home/brian/.espressif/tools/esp-clang/16.0.1-fe4f10a809/esp-clang/xtensa-esp32s2-elf/bin:/home/brian/.espressif/tools/esp-clang/16.0.1-fe4f10a809/esp-clang/xtensa-esp32s3-elf/bin:/home/brian/.espressif/tools/esp-clang/bin:/home/brian/.espressif/tools/esp32ulp-elf/2.35_20220830/esp32ulp-elf/bin:/home/brian/.espressif/tools/esp32ulp-elf/2.35_20220830/esp32ulp-elf/esp32ulp-elf/bin:/home/brian/.espressif/tools/esp32ulp-elf/2.38_20240113/esp32ulp-elf/bin:/home/brian/.espressif/tools/esp32ulp-elf/2.38_20240113/esp32ulp-elf/esp32ulp-elf/bin:/home/brian/.espressif/tools/openocd-esp32/v0.12.0-esp32-20230921/openocd-esp32/bin:/home/brian/.espressif/tools/openocd-esp32/v0.12.0-esp32-20240318/openocd-esp32/bin:/home/brian/.espressif/tools/openocd-esp32/v0.12.0-esp32-20241016/openocd-esp32/bin:/home/brian/.espressif/tools/python/bin:/home/brian/.espressif/tools/qemu/bin:/home/brian/.espressif/tools/riscv32-esp-elf-gdb/11.2_20220823/riscv32-esp-elf-gdb/bin:/home/brian/.espressif/tools/riscv32-esp-elf-gdb/12.1_20231023/riscv32-esp-elf-gdb/bin:/home/brian/.espressif/tools/riscv32-esp-elf-gdb/14.2_20240403/riscv32-esp-elf-gdb/bin:/home/brian/.espressif/tools/riscv32-esp-elf/bin:/home/brian/.espressif/tools/riscv32-esp-elf/esp-13.2.0_20240530/riscv32-esp-elf/bin:/home/brian/.espressif/tools/riscv32-esp-elf/esp-13.2.0_20240530/riscv32-esp-elf/riscv32-esp-elf/bin:/home/brian/.espressif/tools/riscv32-esp-elf/esp-14.2.0_20241119/riscv32-esp-elf/bin:/home/brian/.espressif/tools/riscv32-esp-elf/esp-14.2.0_20241119/riscv32-esp-elf/riscv32-esp-elf/bin:/home/brian/.espressif/tools/riscv32-esp-elf/esp-2021r2-patch5-8.4.0/riscv32-esp-elf/bin:/home/brian/.espressif/tools/riscv32-esp-elf/esp-2021r2-patch5-8.4.0/riscv32-esp-elf/riscv32-esp-elf/bin:/home/brian/.espressif/tools/riscv32-esp-elf/esp-2022r1-11.2.0/riscv32-esp-elf/bin:/home/brian/.espressif/tools/riscv32-esp-elf/esp-2022r1-11.2.0/riscv32-esp-elf/riscv32-esp-elf/bin:/home/brian/.espressif/tools/riscv32-esp-elf/riscv32-esp-elf/bin:/home/brian/.espressif/tools/xtensa-esp-elf-gdb/11.2_20220823/xtensa-esp-elf-gdb/bin:/home/brian/.espressif/tools/xtensa-esp-elf-gdb/12.1_20231023/xtensa-esp-elf-gdb/bin:/home/brian/.espressif/tools/xtensa-esp-elf-gdb/14.2_20240403/xtensa-esp-elf-gdb/bin:/home/brian/.espressif/tools/xtensa-esp-elf/bin:/home/brian/.espressif/tools/xtensa-esp-elf/esp-13.2.0_20240530/xtensa-esp-elf/bin:/home/brian/.espressif/tools/xtensa-esp-elf/esp-13.2.0_20240530/xtensa-esp-elf/xtensa-esp-elf/bin:/home/brian/.espressif/tools/xtensa-esp-elf/esp-14.2.0_20241119/xtensa-esp-elf/bin:/home/brian/.espressif/tools/xtensa-esp-elf/esp-14.2.0_20241119/xtensa-esp-elf/xtensa-esp-elf/bin:/home/brian/.espressif/tools/xtensa-esp-elf/xtensa-esp-elf/bin:/home/brian/.espressif/tools/xtensa-esp32-elf/esp-2021r2-patch5-8.4.0/xtensa-esp32-elf/bin:/home/brian/.espressif/tools/xtensa-esp32-elf/esp-2021r2-patch5-8.4.0/xtensa-esp32-elf/xtensa-esp32-elf/bin:/home/brian/.espressif/tools/xtensa-esp32-elf/esp-2022r1-11.2.0/xtensa-esp32-elf/bin:/home/brian/.espressif/tools/xtensa-esp32-elf/esp-2022r1-11.2.0/xtensa-esp32-elf/xtensa-esp32-elf/bin:/home/brian/.espressif/tools/xtensa-esp32s2-elf/esp-2021r2-patch5-8.4.0/xtensa-esp32s2-elf/bin:/home/brian/.espressif/tools/xtensa-esp32s2-elf/esp-2021r2-patch5-8.4.0/xtensa-esp32s2-elf/xtensa-esp32s2-elf/bin:/home/brian/.espressif/tools/xtensa-esp32s2-elf/esp-2022r1-11.2.0/xtensa-esp32s2-elf/bin:/home/brian/.espressif/tools/xtensa-esp32s2-elf/esp-2022r1-11.2.0/xtensa-esp32s2-elf/xtensa-esp32s2-elf/bin:/home/brian/.espressif/tools/xtensa-esp32s3-elf/esp-2021r2-patch5-8.4.0/xtensa-esp32s3-elf/bin:/home/brian/.espressif/tools/xtensa-esp32s3-elf/esp-2021r2-patch5-8.4.0/xtensa-esp32s3-elf/xtensa-esp32s3-elf/bin:/home/brian/.espressif/tools/xtensa-esp32s3-elf/esp-2022r1-11.2.0/xtensa-esp32s3-elf/bin:/home/brian/.espressif/tools/xtensa-esp32s3-elf/esp-2022r1-11.2.0/xtensa-esp32s3-elf/xtensa-esp32s3-elf/bin:/home/brian/.espressif/xtensa-esp-elf-gdb/bin:/home/brian/.espressif/xtensa-esp32-elf-clang/bin:/home/brian/.espressif/xtensa-esp32-elf/bin:/home/brian/.espressif/xtensa-esp32s2-elf/bin:/home/brian/.espressif/xtensa-esp32s3-elf/bin:/home/brian/.espressif/tools/esp-clang/16.0.1-fe4f10a809/esp-clang/bin:/usr/bin/git:/home/brian/.espressif/python_env/idf5.0_py3.12_env/bin
(idf5.0_py3.12_env) brian@FA002502:~/esp/v5.0.6/esp-idf/examples/get-started/blink$ 

@Hahihula Hahihula force-pushed the EIM-79-discovery branch from b3659af to 7ef7f72 Compare July 3, 2025 12:03
@Hahihula Hahihula changed the title EIM-79 discovery of existing idf installations WIP: EIM-79 discovery of existing idf installations Jul 4, 2025
@Hahihula Hahihula force-pushed the EIM-79-discovery branch 3 times, most recently from c253671 to 69c8f6f Compare July 22, 2025 13:12
@Hahihula Hahihula changed the title WIP: EIM-79 discovery of existing idf installations EIM-79 discovery of existing idf installations Jul 23, 2025
@kolipakakondal
Copy link
Collaborator

kolipakakondal commented Jul 25, 2025

Can we show the ESP-IDF path next to the version? I see that EIM has detected multiple instances of the same ESP-IDF version, likely because I installed them in different folders. It’s hard to distinguish which version points to which folder.

Screenshot 2025-07-25 at 12 52 55 PM

Same during the selection as well
Screenshot 2025-07-25 at 12 56 00 PM

@kolipakakondal
Copy link
Collaborator

I see it's detected ESP-IDF 4.x versions as well. Do we need to show them, considering we don't support them?
Screenshot 2025-07-25 at 1 00 42 PM

@Hahihula
Copy link
Collaborator Author

Can we show the ESP-IDF path next to the version? I see that EIM has detected multiple instances of the same ESP-IDF version, likely because I installed them in different folders. It’s hard to distinguish which version points to which folder.

ok, good point, but i would like to do it in separate ticket if it's ok with you

To the 4.X version, the discovery is meant to import every existing version available on user system, if he has some projects still relying on the older version, we should probably not cut them off them

@kolipakakondal
Copy link
Collaborator

We can remove "(not implemented yet)" from the command

Screenshot 2025-07-25 at 1 12 47 PM

@Hahihula
Copy link
Collaborator Author

We can remove "(not implemented yet)" from the command

Ahh... Thanks for the catch!

@kolipakakondal
Copy link
Collaborator

kolipakakondal commented Jul 25, 2025

Can we show the ESP-IDF path next to the version? I see that EIM has detected multiple instances of the same ESP-IDF version, likely because I installed them in different folders. It’s hard to distinguish which version points to which folder.

ok, good point, but i would like to do it in separate ticket if it's ok with you

To the 4.X version, the discovery is meant to import every existing version available on user system, if he has some projects still relying on the older version, we should probably not cut them off them

The challenge here is - Espressif-IDE doesn't work with 4.x anymore, we need to have 5.0 and higher

@brianignacio5 ?

Copy link
Collaborator

@kolipakakondal kolipakakondal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR. I briefly tested it on macOS, and it was able to detect all the ESP-IDF versions installed on my system and add them to the eim json file

@brianignacio5
Copy link

brianignacio5 commented Jul 25, 2025

Thank you for the changes.

After deleting the .espressif directory. I proceed to use eim install from eim-cli-linux-x64-650 to install esp-idf 5.5.
Later i open vscode esp-idf extension (current master) and install esp-idf v5.4.2. After i use the vscode setup wizard again to install v5.1.6.

The results are unfortunately the same. Although the scripts are generated, the resulting path doesn't seem to work for blink build on each IDF_PATH example for one of the ESP-IDF setups.

Use of EIM discovery and v5.4.2 activation script and blink build. TL;DR Works well

brian@FA002502:~/Downloads/eim-cli-linux-x64-650$ ./eim install
2025-07-25T17:54:17.372700130+08:00 - INFO - All prerequisites are satisfied!
2025-07-25T17:54:17.372716295+08:00 - INFO - Running python sanity check
2025-07-25T17:54:17.613074423+08:00 - INFO - Your Python meets the requirements
2025-07-25T17:54:17.890823658+08:00 - INFO - Cloning ESP-IDF
  [00:03:57] [#############################################################################################################################] (0.0s)  [00:00:01] [#############################################################################################################################] (0.0s)2025-07-25T17:58:16.524811112+08:00 - INFO - wizard.idf.submodule_finish: components/bootloader/subproject/components/micro-ecc/micro-ecc
  [00:00:07] [#############################################################################################################################] (0.0s)2025-07-25T17:58:23.768476736+08:00 - INFO - wizard.idf.submodule_finish: components/bt/controller/lib_esp32
  [00:00:12] [#############################################################################################################################] (0.0s)2025-07-25T17:58:36.145020963+08:00 - INFO - wizard.idf.submodule_finish: components/bt/controller/lib_esp32c2/esp32c2-bt-lib
  [00:00:11] [#############################################################################################################################] (0.0s)2025-07-25T17:58:47.959205789+08:00 - INFO - wizard.idf.submodule_finish: components/bt/controller/lib_esp32c3_family
  [00:00:09] [#############################################################################################################################] (0.0s)2025-07-25T17:58:57.333201445+08:00 - INFO - wizard.idf.submodule_finish: components/bt/controller/lib_esp32c5/esp32c5-bt-lib
  [00:00:19] [#############################################################################################################################] (0.0s)2025-07-25T17:59:17.292263337+08:00 - INFO - wizard.idf.submodule_finish: components/bt/controller/lib_esp32c6/esp32c6-bt-lib
  [00:00:18] [#############################################################################################################################] (0.0s)2025-07-25T17:59:36.053556441+08:00 - INFO - wizard.idf.submodule_finish: components/bt/controller/lib_esp32h2/esp32h2-bt-lib
  [00:00:08] [#############################################################################################################################] (0.0s)2025-07-25T17:59:44.997662260+08:00 - INFO - wizard.idf.submodule_finish: components/bt/esp_ble_mesh/lib/lib
  [00:00:15] [#############################################################################################################################] (0.0s)2025-07-25T18:00:00.493088975+08:00 - INFO - wizard.idf.submodule_finish: components/bt/host/nimble/nimble
  [00:00:03] [#############################################################################################################################] (0.0s)2025-07-25T18:00:04.143202209+08:00 - INFO - wizard.idf.submodule_finish: components/cmock/CMock
  [00:00:01] [#############################################################################################################################] (0.0s)2025-07-25T18:00:05.711240631+08:00 - INFO - wizard.idf.submodule_finish: vendor/c_exception
  [00:00:05] [#############################################################################################################################] (0.0s)2025-07-25T18:00:11.334068992+08:00 - INFO - wizard.idf.submodule_finish: vendor/unity
  [00:00:03] [#############################################################################################################################] (0.0s)2025-07-25T18:00:14.431479993+08:00 - INFO - wizard.idf.submodule_finish: components/esp_coex/lib
  [00:00:08] [#############################################################################################################################] (0.0s)2025-07-25T18:00:23.111899595+08:00 - INFO - wizard.idf.submodule_finish: components/esp_phy/lib
  [00:17:05] [#############################################################################################################################] (0.0s)2025-07-25T18:17:28.809960177+08:00 - INFO - wizard.idf.submodule_finish: components/esp_wifi/lib
  [00:00:01] [#############################################################################################################################] (0.0s)2025-07-25T18:17:29.950620742+08:00 - INFO - wizard.idf.submodule_finish: components/heap/tlsf
  [00:00:02] [#############################################################################################################################] (0.0s)2025-07-25T18:17:32.776562479+08:00 - INFO - wizard.idf.submodule_finish: components/json/cJSON
  [00:00:11] [#############################################################################################################################] (0.0s)2025-07-25T18:17:44.231863813+08:00 - INFO - wizard.idf.submodule_finish: components/lwip/lwip
  [00:01:29] [#############################################################################################################################] (0.0s)2025-07-25T18:19:13.342438659+08:00 - INFO - wizard.idf.submodule_finish: components/mbedtls/mbedtls
  [00:00:02] [#############################################################################################################################] (0.0s)2025-07-25T18:19:15.713852786+08:00 - INFO - wizard.idf.submodule_finish: components/mqtt/esp-mqtt
  [00:00:07] [#############################################################################################################################] (0.0s)2025-07-25T18:19:23.059862223+08:00 - INFO - wizard.idf.submodule_finish: components/openthread/lib
  [00:01:18] [#############################################################################################################################] (0.0s)2025-07-25T18:20:41.614665647+08:00 - INFO - wizard.idf.submodule_finish: components/openthread/openthread
  [00:00:02] [#############################################################################################################################] (0.0s)2025-07-25T18:20:43.821049249+08:00 - INFO - wizard.idf.submodule_finish: components/protobuf-c/protobuf-c
  [00:00:01] [#############################################################################################################################] (0.0s)2025-07-25T18:20:45.685723283+08:00 - INFO - wizard.idf.submodule_finish: components/spiffs/spiffs
  [00:00:05] [#############################################################################################################################] (0.0s)2025-07-25T18:20:51.331564536+08:00 - INFO - wizard.idf.submodule_finish: components/unity/unity
2025-07-25T18:20:51.344448278+08:00 - INFO - Downloading tools to: "/home/brian/.espressif/dist"
2025-07-25T18:20:51.344527506+08:00 - INFO - Tool cmake has multiple versions, using the recommended or the first one
2025-07-25T18:20:51.344535675+08:00 - WARN - Tool idf-exe does not have a download link for platform linux-amd64
2025-07-25T18:20:51.344540115+08:00 - WARN - Tool ccache does not have a download link for platform linux-amd64
2025-07-25T18:20:51.344544172+08:00 - WARN - Tool dfu-util does not have a download link for platform linux-amd64
2025-07-25T18:20:51.345379355+08:00 - INFO - Tool 'xtensa-esp-elf' is not installed. Downloading...
⠈ [00:01:38] [######################################################################################################>] 166.53 MiB/166.56 MiB (0.0s)2025-07-25T18:22:29.958184484+08:00 - INFO - xtensa-esp-elf-14.2.0_20241119-x86_64-linux-gnu.tar.xz sucessfully downloaded
2025-07-25T18:22:30.087512769+08:00 - INFO - xtensa-esp-elf-14.2.0_20241119-x86_64-linux-gnu.tar.xz checksum verified
2025-07-25T18:22:44.522891176+08:00 - INFO - Decompression completed successfully.
2025-07-25T18:22:44.533895270+08:00 - INFO - Set executable permissions for ninja in /home/brian/.espressif/tools/xtensa-esp-elf/esp-14.2.0_20241119
2025-07-25T18:22:44.533917424+08:00 - INFO - Successfully extracted xtensa-esp-elf-14.2.0_20241119-x86_64-linux-gnu.tar.xz to /home/brian/.espressif/tools/xtensa-esp-elf/esp-14.2.0_20241119
  [00:01:53] [#######################################################################################################] 166.56 MiB/166.56 MiB (0.0s)2025-07-25T18:22:44.534637898+08:00 - INFO - Tool 'qemu-riscv32' is not installed. Downloading...
  [00:02:02] [#########################################################################################################] 13.78 MiB/13.78 MiB (0.0s)2025-07-25T18:22:53.853983167+08:00 - INFO - qemu-riscv32-softmmu-esp_develop_9.0.0_20240606-x86_64-linux-gnu.tar.xz sucessfully downloaded
2025-07-25T18:22:53.869883126+08:00 - INFO - qemu-riscv32-softmmu-esp_develop_9.0.0_20240606-x86_64-linux-gnu.tar.xz checksum verified
2025-07-25T18:22:55.010919252+08:00 - INFO - Decompression completed successfully.
2025-07-25T18:22:55.013886263+08:00 - INFO - Set executable permissions for ninja in /home/brian/.espressif/tools/qemu-riscv32/esp_develop_9.0.0_20240606
2025-07-25T18:22:55.013912399+08:00 - INFO - Successfully extracted qemu-riscv32-softmmu-esp_develop_9.0.0_20240606-x86_64-linux-gnu.tar.xz to /home/brian/.espressif/tools/qemu-riscv32/esp_develop_9.0.0_20240606
  [00:02:03] [#########################################################################################################] 13.78 MiB/13.78 MiB (0.0s)2025-07-25T18:22:55.014890667+08:00 - INFO - Tool 'xtensa-esp-elf-gdb' is not installed. Downloading...
  [00:02:25] [#########################################################################################################] 34.68 MiB/34.68 MiB (0.0s)2025-07-25T18:23:16.424921269+08:00 - INFO - xtensa-esp-elf-gdb-16.2_20250324-x86_64-linux-gnu.tar.gz sucessfully downloaded
2025-07-25T18:23:16.457339308+08:00 - INFO - xtensa-esp-elf-gdb-16.2_20250324-x86_64-linux-gnu.tar.gz checksum verified
2025-07-25T18:23:17.017012744+08:00 - INFO - Decompression completed successfully.
2025-07-25T18:23:17.019287982+08:00 - INFO - Set executable permissions for ninja in /home/brian/.espressif/tools/xtensa-esp-elf-gdb/16.2_20250324
2025-07-25T18:23:17.019316233+08:00 - INFO - Successfully extracted xtensa-esp-elf-gdb-16.2_20250324-x86_64-linux-gnu.tar.gz to /home/brian/.espressif/tools/xtensa-esp-elf-gdb/16.2_20250324
  [00:02:25] [#########################################################################################################] 34.68 MiB/34.68 MiB (0.0s)2025-07-25T18:23:17.020367387+08:00 - INFO - Tool 'openocd-esp32' is not installed. Downloading...
  [00:02:28] [###########################################################################################################] 2.33 MiB/2.33 MiB (0.0s)2025-07-25T18:23:19.525223777+08:00 - INFO - openocd-esp32-linux-amd64-0.12.0-esp32-20250422.tar.gz sucessfully downloaded
2025-07-25T18:23:19.527673486+08:00 - INFO - openocd-esp32-linux-amd64-0.12.0-esp32-20250422.tar.gz checksum verified
2025-07-25T18:23:19.595149810+08:00 - INFO - Decompression completed successfully.
2025-07-25T18:23:19.598960105+08:00 - INFO - Set executable permissions for ninja in /home/brian/.espressif/tools/openocd-esp32/v0.12.0-esp32-20250422
2025-07-25T18:23:19.598976286+08:00 - INFO - Successfully extracted openocd-esp32-linux-amd64-0.12.0-esp32-20250422.tar.gz to /home/brian/.espressif/tools/openocd-esp32/v0.12.0-esp32-20250422
  [00:02:28] [###########################################################################################################] 2.33 MiB/2.33 MiB (0.0s)2025-07-25T18:23:19.599790571+08:00 - INFO - Tool 'esp32ulp-elf' is not installed. Downloading...
  [00:02:35] [#########################################################################################################] 10.62 MiB/10.62 MiB (0.0s)2025-07-25T18:23:26.856182985+08:00 - INFO - esp32ulp-elf-2.38_20240113-linux-amd64.tar.gz sucessfully downloaded
2025-07-25T18:23:26.868117319+08:00 - INFO - esp32ulp-elf-2.38_20240113-linux-amd64.tar.gz checksum verified
2025-07-25T18:23:27.063926598+08:00 - INFO - Decompression completed successfully.
2025-07-25T18:23:27.067819679+08:00 - INFO - Set executable permissions for ninja in /home/brian/.espressif/tools/esp32ulp-elf/2.38_20240113
2025-07-25T18:23:27.067918674+08:00 - INFO - Successfully extracted esp32ulp-elf-2.38_20240113-linux-amd64.tar.gz to /home/brian/.espressif/tools/esp32ulp-elf/2.38_20240113
  [00:02:35] [#########################################################################################################] 10.62 MiB/10.62 MiB (0.0s)2025-07-25T18:23:27.069339958+08:00 - INFO - Tool 'esp-clang' is not installed. Downloading...
  [00:05:42] [#######################################################################################################] 317.38 MiB/317.38 MiB (0.0s)2025-07-25T18:26:34.133592179+08:00 - INFO - clang-esp-19.1.2_20250312-x86_64-linux-gnu.tar.xz sucessfully downloaded
2025-07-25T18:26:34.376288230+08:00 - INFO - clang-esp-19.1.2_20250312-x86_64-linux-gnu.tar.xz checksum verified
2025-07-25T18:27:03.451262406+08:00 - INFO - Decompression completed successfully.
2025-07-25T18:27:03.771538035+08:00 - INFO - Set executable permissions for ninja in /home/brian/.espressif/tools/esp-clang/esp-19.1.2_20250312
2025-07-25T18:27:03.771558086+08:00 - INFO - Successfully extracted clang-esp-19.1.2_20250312-x86_64-linux-gnu.tar.xz to /home/brian/.espressif/tools/esp-clang/esp-19.1.2_20250312
  [00:06:12] [#######################################################################################################] 317.38 MiB/317.38 MiB (0.0s)2025-07-25T18:27:03.772376802+08:00 - INFO - Tool 'riscv32-esp-elf' is not installed. Downloading...
  [00:09:00] [#######################################################################################################] 284.26 MiB/284.26 MiB (0.0s)2025-07-25T18:29:51.460918681+08:00 - INFO - riscv32-esp-elf-14.2.0_20241119-x86_64-linux-gnu.tar.xz sucessfully downloaded
2025-07-25T18:29:51.690566301+08:00 - INFO - riscv32-esp-elf-14.2.0_20241119-x86_64-linux-gnu.tar.xz checksum verified
2025-07-25T18:30:21.577168361+08:00 - INFO - Decompression completed successfully.
2025-07-25T18:30:21.587735306+08:00 - INFO - Set executable permissions for ninja in /home/brian/.espressif/tools/riscv32-esp-elf/esp-14.2.0_20241119
2025-07-25T18:30:21.587758527+08:00 - INFO - Successfully extracted riscv32-esp-elf-14.2.0_20241119-x86_64-linux-gnu.tar.xz to /home/brian/.espressif/tools/riscv32-esp-elf/esp-14.2.0_20241119
  [00:09:30] [#######################################################################################################] 284.26 MiB/284.26 MiB (0.0s)2025-07-25T18:30:22.759648311+08:00 - WARN - Tool 'cmake' is installed with version '3.28.3', but expected '3.30.2'. Reinstalling...
  [00:10:02] [#########################################################################################################] 51.15 MiB/51.15 MiB (0.0s)2025-07-25T18:30:54.021764267+08:00 - INFO - cmake-3.30.2-linux-x86_64.tar.gz sucessfully downloaded
2025-07-25T18:30:54.074795234+08:00 - INFO - cmake-3.30.2-linux-x86_64.tar.gz checksum verified
2025-07-25T18:30:54.956484195+08:00 - INFO - Decompression completed successfully.
2025-07-25T18:30:54.976931048+08:00 - INFO - Set executable permissions for ninja in /home/brian/.espressif/tools/cmake/3.30.2
2025-07-25T18:30:54.976984947+08:00 - INFO - Successfully extracted cmake-3.30.2-linux-x86_64.tar.gz to /home/brian/.espressif/tools/cmake/3.30.2
  [00:10:03] [#########################################################################################################] 51.15 MiB/51.15 MiB (0.0s)2025-07-25T18:30:54.977043818+08:00 - INFO - Tool 'esp-rom-elfs' is not installed. Downloading...
  [00:10:06] [###########################################################################################################] 3.38 MiB/3.38 MiB (0.0s)2025-07-25T18:30:57.923325562+08:00 - INFO - esp-rom-elfs-20241011.tar.gz sucessfully downloaded
2025-07-25T18:30:57.934087182+08:00 - INFO - esp-rom-elfs-20241011.tar.gz checksum verified
2025-07-25T18:30:57.989615707+08:00 - INFO - Decompression completed successfully.
2025-07-25T18:30:57.991619969+08:00 - INFO - Set executable permissions for ninja in /home/brian/.espressif/tools/esp-rom-elfs/20241011
2025-07-25T18:30:57.991634181+08:00 - INFO - Successfully extracted esp-rom-elfs-20241011.tar.gz to /home/brian/.espressif/tools/esp-rom-elfs/20241011
  [00:10:06] [###########################################################################################################] 3.38 MiB/3.38 MiB (0.0s)2025-07-25T18:30:57.991675989+08:00 - INFO - Tool 'esp-clang-libs' is not installed. Downloading...
  [00:10:50] [#########################################################################################################] 72.64 MiB/72.64 MiB (0.0s)2025-07-25T18:31:41.758571923+08:00 - INFO - libs-clang-esp-19.1.2_20250312-x86_64-linux-gnu.tar.xz sucessfully downloaded
2025-07-25T18:31:41.820238359+08:00 - INFO - libs-clang-esp-19.1.2_20250312-x86_64-linux-gnu.tar.xz checksum verified
2025-07-25T18:31:47.347903679+08:00 - INFO - Decompression completed successfully.
2025-07-25T18:31:47.349801032+08:00 - INFO - Set executable permissions for ninja in /home/brian/.espressif/tools/esp-clang-libs/esp-19.1.2_20250312
2025-07-25T18:31:47.349813035+08:00 - INFO - Successfully extracted libs-clang-esp-19.1.2_20250312-x86_64-linux-gnu.tar.xz to /home/brian/.espressif/tools/esp-clang-libs/esp-19.1.2_20250312
  [00:10:56] [#########################################################################################################] 72.64 MiB/72.64 MiB (0.0s)2025-07-25T18:31:47.350607781+08:00 - INFO - Tool 'qemu-xtensa' is not installed. Downloading...
  [00:11:04] [#########################################################################################################] 12.98 MiB/12.98 MiB (0.0s)2025-07-25T18:31:56.113516117+08:00 - INFO - qemu-xtensa-softmmu-esp_develop_9.0.0_20240606-x86_64-linux-gnu.tar.xz sucessfully downloaded
2025-07-25T18:31:56.134688827+08:00 - INFO - qemu-xtensa-softmmu-esp_develop_9.0.0_20240606-x86_64-linux-gnu.tar.xz checksum verified
2025-07-25T18:31:57.185475616+08:00 - INFO - Decompression completed successfully.
2025-07-25T18:31:57.187505015+08:00 - INFO - Set executable permissions for ninja in /home/brian/.espressif/tools/qemu-xtensa/esp_develop_9.0.0_20240606
2025-07-25T18:31:57.187528801+08:00 - INFO - Successfully extracted qemu-xtensa-softmmu-esp_develop_9.0.0_20240606-x86_64-linux-gnu.tar.xz to /home/brian/.espressif/tools/qemu-xtensa/esp_develop_9.0.0_20240606
  [00:11:05] [#########################################################################################################] 12.98 MiB/12.98 MiB (0.0s)2025-07-25T18:31:57.198859852+08:00 - WARN - Tool 'ninja' is installed with version '1.11.1', but expected '1.12.1'. Reinstalling...
  [00:11:06] [#######################################################################################################] 120.20 KiB/120.20 KiB (0.0s)2025-07-25T18:31:58.224415998+08:00 - INFO - ninja-linux.zip sucessfully downloaded
2025-07-25T18:31:58.224925683+08:00 - INFO - ninja-linux.zip checksum verified
2025-07-25T18:31:58.225186141+08:00 - INFO - Decompressing /home/brian/.espressif/dist/ninja-linux.zip to /home/brian/.espressif/tools/ninja/1.12.1
2025-07-25T18:31:58.231585325+08:00 - INFO - Decompression completed successfully.
2025-07-25T18:31:58.233811588+08:00 - INFO - Set executable permissions for ninja in /home/brian/.espressif/tools/ninja/1.12.1
2025-07-25T18:31:58.233991631+08:00 - INFO - Successfully extracted ninja-linux.zip to /home/brian/.espressif/tools/ninja/1.12.1
  [00:11:06] [#######################################################################################################] 120.20 KiB/120.20 KiB (0.0s)2025-07-25T18:31:58.236046008+08:00 - INFO - Tool 'riscv32-esp-elf-gdb' is not installed. Downloading...
  [00:11:28] [#########################################################################################################] 34.84 MiB/34.84 MiB (0.0s)2025-07-25T18:32:19.699656763+08:00 - INFO - riscv32-esp-elf-gdb-16.2_20250324-x86_64-linux-gnu.tar.gz sucessfully downloaded
2025-07-25T18:32:19.729034867+08:00 - INFO - riscv32-esp-elf-gdb-16.2_20250324-x86_64-linux-gnu.tar.gz checksum verified
2025-07-25T18:32:20.286731621+08:00 - INFO - Decompression completed successfully.
2025-07-25T18:32:20.289522873+08:00 - INFO - Set executable permissions for ninja in /home/brian/.espressif/tools/riscv32-esp-elf-gdb/16.2_20250324
2025-07-25T18:32:20.289543352+08:00 - INFO - Successfully extracted riscv32-esp-elf-gdb-16.2_20250324-x86_64-linux-gnu.tar.gz to /home/brian/.espressif/tools/riscv32-esp-elf-gdb/16.2_20250324
  [00:11:28] [#########################################################################################################] 34.84 MiB/34.84 MiB (0.0s)2025-07-25T18:32:20.289587118+08:00 - INFO - wizard.tools.downloaded: /home/brian/.espressif/v5.5/esp-idf/tools/tools.json
2025-07-25T18:32:20.289647667+08:00 - INFO - Creating Python virtual environment at: /home/brian/.espressif/tools/python/v5.5/venv
2025-07-25T18:32:22.845776423+08:00 - INFO - Downloading constraints file from https://dl.espressif.com/dl/esp-idf/espidf.constraints.v5.5.txt
2025-07-25T18:32:23.149803663+08:00 - INFO - Downloaded constraints file to /home/brian/.espressif/tools/espidf.constraints.v5.5.txt
2025-07-25T18:32:23.149872216+08:00 - INFO - Downloaded constraints file to /home/brian/.espressif/tools/espidf.constraints.v5.5.txt
2025-07-25T18:32:23.149890750+08:00 - INFO - Downloaded constraints file: /home/brian/.espressif/tools/espidf.constraints.v5.5.txt
2025-07-25T18:32:44.147412432+08:00 - INFO - Python environment installed successfully
2025-07-25T18:32:44.147422607+08:00 - INFO - Python environment installed
2025-07-25T18:32:44.436230876+08:00 - INFO - ELF ROM directory found: /home/brian/.espressif/tools/esp-rom-elfs/20241011
2025-07-25T18:32:44.462999365+08:00 - INFO - Activation shell script created successfully
2025-07-25T18:32:44.463079105+08:00 - INFO - OpenOCD rules copied successfully
Configuration saved successfully to config.toml
You have successfully installed ESP-IDF
for using the ESP-IDF tools inside the terminal, you will find activation scripts inside the base install folder
sourcing the activation script will setup environment in the current terminal session
============================================
to activate the environment, run the following command in your terminal:
       source "/home/brian/.espressif/tools/activate_idf_v5.5.sh"
============================================
2025-07-25T18:32:44.493227289+08:00 - INFO - Wizard result: ()
2025-07-25T18:32:44.493245198+08:00 - INFO - Successfully installed IDF
2025-07-25T18:32:44.493259492+08:00 - INFO - Now you can start using IDF tools
brian@FA002502:~/Downloads/eim-cli-linux-x64-650$ ./eim discover $HOME/.espressif
2025-07-25T21:36:35.774886693+08:00 - INFO - Discovering available versions... (This can take couple of minutes)
2025-07-25T21:36:35.774955500+08:00 - INFO - Searching for esp_idf.json files...
2025-07-25T21:36:37.557993278+08:00 - INFO - Found 1 esp_idf.json files:
2025-07-25T21:36:37.558013542+08:00 - INFO - - /home/brian/.espressif/esp_idf.json 
2025-07-25T21:36:38.495779295+08:00 - WARN - No ELF ROM directories found in /home/brian/.espressif/esp-rom-elfs
2025-07-25T21:36:38.496062333+08:00 - WARN - No OpenOCD scripts found in /home/brian/.espressif/openocd-esp32
2025-07-25T21:36:38.496528687+08:00 - INFO - Activation shell script created successfully
2025-07-25T21:36:38.496548785+08:00 - INFO - OpenOCD rules copied successfully
2025-07-25T21:36:39.207497567+08:00 - WARN - No ELF ROM directories found in /home/brian/.espressif/esp-rom-elfs
2025-07-25T21:36:39.207783701+08:00 - WARN - No OpenOCD scripts found in /home/brian/.espressif/openocd-esp32
2025-07-25T21:36:39.208250120+08:00 - INFO - Activation shell script created successfully
2025-07-25T21:36:39.208263448+08:00 - INFO - OpenOCD rules copied successfully
2025-07-25T21:36:39.215116467+08:00 - INFO - Parsed config: "/home/brian/.espressif/esp_idf.json"
2025-07-25T21:36:39.215164576+08:00 - INFO - Searching for tool_set_config.json files...
2025-07-25T21:36:39.508766259+08:00 - INFO - No tool_set_config.json found
2025-07-25T21:36:39.508778393+08:00 - INFO - Searching for any other IDF directories...
2025-07-25T21:36:39.816240742+08:00 - INFO - Found 1 IDF directories:
2025-07-25T21:36:39.816263096+08:00 - INFO - - /home/brian/.espressif/v5.5/esp-idf 
2025-07-25T21:36:39.816270223+08:00 - INFO - Already present!
2025-07-25T21:36:39.816273154+08:00 - INFO - No new IDF directories found to add.
brian@FA002502:~/Downloads/eim-cli-linux-x64-650$ cd 
brian@FA002502:~$ cd .espressif/tools/
brian@FA002502:~/.espressif/tools$ ls
activate_idf_5.1.6.sh  eim_idf.json    espidf.constraints.v5.5.txt  python           riscv32-esp-elf-gdb  xtensa-esp-elf
activate_idf_5.4.2.sh  esp32ulp-elf    esp-rom-elfs                 qemu-riscv32     xtensa-esp32-elf     xtensa-esp-elf-gdb
activate_idf_v5.5.sh   esp-clang       ninja                        qemu-xtensa      xtensa-esp32s2-elf
cmake                  esp-clang-libs  openocd-esp32                riscv32-esp-elf  xtensa-esp32s3-elf
brian@FA002502:~/.espressif/tools$ source activate_idf_5.4.2.sh 
Added environment variable ESP_IDF_VERSION = 5.4
Added environment variable IDF_TOOLS_PATH = /home/brian/.espressif
Added environment variable IDF_PATH = /home/brian/esp/v5.4.2/esp-idf
Added environment variable ESP_ROM_ELF_DIR = /home/brian/.espressif/esp-rom-elfs
Added environment variable OPENOCD_SCRIPTS = 
Added environment variable IDF_PYTHON_ENV_PATH = /home/brian/.espressif/python_env/idf5.4_py3.12_env/
Added proper directory to PATH
Activated virtual environment at /home/brian/.espressif/python_env/idf5.4_py3.12_env/
Environment setup complete for the current shell session.
These changes will be lost when you close this terminal.
You are now using IDF version 5.4.
(idf5.4_py3.12_env) brian@FA002502:~/.espressif/tools$ cd $IDF_PATH/examples/get-started/blink/
(idf5.4_py3.12_env) brian@FA002502:~/esp/v5.4.2/esp-idf/examples/get-started/blink$ LS
LS: command not found
(idf5.4_py3.12_env) brian@FA002502:~/esp/v5.4.2/esp-idf/examples/get-started/blink$ ls
CMakeLists.txt   README.md                 sdkconfig.defaults.esp32c3  sdkconfig.defaults.esp32c61  sdkconfig.defaults.esp32s2
main             sdkconfig.defaults        sdkconfig.defaults.esp32c5  sdkconfig.defaults.esp32h2   sdkconfig.defaults.esp32s3
pytest_blink.py  sdkconfig.defaults.esp32  sdkconfig.defaults.esp32c6  sdkconfig.defaults.esp32p4
(idf5.4_py3.12_env) brian@FA002502:~/esp/v5.4.2/esp-idf/examples/get-started/blink$ idf.py build
Executing action: all (aliases: build)
Running cmake in directory /home/brian/esp/v5.4.2/esp-idf/examples/get-started/blink/build
Executing "cmake -G Ninja -DPYTHON_DEPS_CHECKED=1 -DPYTHON=/home/brian/.espressif/python_env/idf5.4_py3.12_env/bin/python3 -DESP_PLATFORM=1 -DCCACHE_ENABLE=0 /home/brian/esp/v5.4.2/esp-idf/examples/get-started/blink"...
-- IDF_TARGET not set, using default target: esp32
-- Found Git: /usr/bin/git (found version "2.43.0")
-- The C compiler identification is GNU 14.2.0
-- The CXX compiler identification is GNU 14.2.0
-- The ASM compiler identification is GNU
-- Found assembler: /home/brian/.espressif/tools/xtensa-esp-elf/esp-14.2.0_20241119/xtensa-esp-elf/bin/xtensa-esp32-elf-gcc
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /home/brian/.espressif/tools/xtensa-esp-elf/esp-14.2.0_20241119/xtensa-esp-elf/bin/xtensa-esp32-elf-gcc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /home/brian/.espressif/tools/xtensa-esp-elf/esp-14.2.0_20241119/xtensa-esp-elf/bin/xtensa-esp32-elf-g++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Building ESP-IDF components for target esp32
NOTICE: Dependencies lock doesn't exist, solving dependencies.
...NOTICE: Updating lock file at /home/brian/esp/v5.4.2/esp-idf/examples/get-started/blink/dependencies.lock
NOTICE: Processing 2 dependencies:
NOTICE: [1/2] espressif/led_strip (2.5.5)
NOTICE: [2/2] idf (5.4.2)
-- Project sdkconfig file /home/brian/esp/v5.4.2/esp-idf/examples/get-started/blink/sdkconfig
Loading defaults file /home/brian/esp/v5.4.2/esp-idf/examples/get-started/blink/sdkconfig.defaults...
Loading defaults file /home/brian/esp/v5.4.2/esp-idf/examples/get-started/blink/sdkconfig.defaults.esp32...
-- Compiler supported targets: xtensa-esp-elf
-- Found Python3: /home/brian/.espressif/python_env/idf5.4_py3.12_env/bin/python3 (found version "3.12.3") found components: Interpreter
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
-- Performing Test C_COMPILER_SUPPORTS_WFORMAT_SIGNEDNESS
-- Performing Test C_COMPILER_SUPPORTS_WFORMAT_SIGNEDNESS - Success
-- USING O3
-- App "blink" version: v5.4.2-dirty
-- Adding linker script /home/brian/esp/v5.4.2/esp-idf/examples/get-started/blink/build/esp-idf/esp_system/ld/memory.ld
-- Adding linker script /home/brian/esp/v5.4.2/esp-idf/examples/get-started/blink/build/esp-idf/esp_system/ld/sections.ld.in
-- Adding linker script /home/brian/esp/v5.4.2/esp-idf/components/esp_rom/esp32/ld/esp32.rom.ld
-- Adding linker script /home/brian/esp/v5.4.2/esp-idf/components/esp_rom/esp32/ld/esp32.rom.api.ld
-- Adding linker script /home/brian/esp/v5.4.2/esp-idf/components/esp_rom/esp32/ld/esp32.rom.libgcc.ld
-- Adding linker script /home/brian/esp/v5.4.2/esp-idf/components/esp_rom/esp32/ld/esp32.rom.newlib-data.ld
-- Adding linker script /home/brian/esp/v5.4.2/esp-idf/components/esp_rom/esp32/ld/esp32.rom.syscalls.ld
-- Adding linker script /home/brian/esp/v5.4.2/esp-idf/components/esp_rom/esp32/ld/esp32.rom.newlib-funcs.ld
-- Adding linker script /home/brian/esp/v5.4.2/esp-idf/components/soc/esp32/ld/esp32.peripherals.ld
-- Components: app_trace app_update bootloader bootloader_support bt cmock console cxx driver efuse esp-tls esp_adc esp_app_format esp_bootloader_format esp_coex esp_common esp_driver_ana_cmpr esp_driver_cam esp_driver_dac esp_driver_gpio esp_driver_gptimer esp_driver_i2c esp_driver_i2s esp_driver_isp esp_driver_jpeg esp_driver_ledc esp_driver_mcpwm esp_driver_parlio esp_driver_pcnt esp_driver_ppa esp_driver_rmt esp_driver_sdio esp_driver_sdm esp_driver_sdmmc esp_driver_sdspi esp_driver_spi esp_driver_touch_sens esp_driver_tsens esp_driver_uart esp_driver_usb_serial_jtag esp_eth esp_event esp_gdbstub esp_hid esp_http_client esp_http_server esp_https_ota esp_https_server esp_hw_support esp_lcd esp_local_ctrl esp_mm esp_netif esp_netif_stack esp_partition esp_phy esp_pm esp_psram esp_ringbuf esp_rom esp_security esp_system esp_timer esp_vfs_console esp_wifi espcoredump espressif__led_strip esptool_py fatfs freertos hal heap http_parser idf_test ieee802154 json log lwip main mbedtls mqtt newlib nvs_flash nvs_sec_provider openthread partition_table perfmon protobuf-c protocomm pthread rt sdmmc soc spi_flash spiffs tcp_transport ulp unity usb vfs wear_levelling wifi_provisioning wpa_supplicant xtensa
-- Component paths: /home/brian/esp/v5.4.2/esp-idf/components/app_trace /home/brian/esp/v5.4.2/esp-idf/components/app_update /home/brian/esp/v5.4.2/esp-idf/components/bootloader /home/brian/esp/v5.4.2/esp-idf/components/bootloader_support /home/brian/esp/v5.4.2/esp-idf/components/bt /home/brian/esp/v5.4.2/esp-idf/components/cmock /home/brian/esp/v5.4.2/esp-idf/components/console /home/brian/esp/v5.4.2/esp-idf/components/cxx /home/brian/esp/v5.4.2/esp-idf/components/driver /home/brian/esp/v5.4.2/esp-idf/components/efuse /home/brian/esp/v5.4.2/esp-idf/components/esp-tls /home/brian/esp/v5.4.2/esp-idf/components/esp_adc /home/brian/esp/v5.4.2/esp-idf/components/esp_app_format /home/brian/esp/v5.4.2/esp-idf/components/esp_bootloader_format /home/brian/esp/v5.4.2/esp-idf/components/esp_coex /home/brian/esp/v5.4.2/esp-idf/components/esp_common /home/brian/esp/v5.4.2/esp-idf/components/esp_driver_ana_cmpr /home/brian/esp/v5.4.2/esp-idf/components/esp_driver_cam /home/brian/esp/v5.4.2/esp-idf/components/esp_driver_dac /home/brian/esp/v5.4.2/esp-idf/components/esp_driver_gpio /home/brian/esp/v5.4.2/esp-idf/components/esp_driver_gptimer /home/brian/esp/v5.4.2/esp-idf/components/esp_driver_i2c /home/brian/esp/v5.4.2/esp-idf/components/esp_driver_i2s /home/brian/esp/v5.4.2/esp-idf/components/esp_driver_isp /home/brian/esp/v5.4.2/esp-idf/components/esp_driver_jpeg /home/brian/esp/v5.4.2/esp-idf/components/esp_driver_ledc /home/brian/esp/v5.4.2/esp-idf/components/esp_driver_mcpwm /home/brian/esp/v5.4.2/esp-idf/components/esp_driver_parlio /home/brian/esp/v5.4.2/esp-idf/components/esp_driver_pcnt /home/brian/esp/v5.4.2/esp-idf/components/esp_driver_ppa /home/brian/esp/v5.4.2/esp-idf/components/esp_driver_rmt /home/brian/esp/v5.4.2/esp-idf/components/esp_driver_sdio /home/brian/esp/v5.4.2/esp-idf/components/esp_driver_sdm /home/brian/esp/v5.4.2/esp-idf/components/esp_driver_sdmmc /home/brian/esp/v5.4.2/esp-idf/components/esp_driver_sdspi /home/brian/esp/v5.4.2/esp-idf/components/esp_driver_spi /home/brian/esp/v5.4.2/esp-idf/components/esp_driver_touch_sens /home/brian/esp/v5.4.2/esp-idf/components/esp_driver_tsens /home/brian/esp/v5.4.2/esp-idf/components/esp_driver_uart /home/brian/esp/v5.4.2/esp-idf/components/esp_driver_usb_serial_jtag /home/brian/esp/v5.4.2/esp-idf/components/esp_eth /home/brian/esp/v5.4.2/esp-idf/components/esp_event /home/brian/esp/v5.4.2/esp-idf/components/esp_gdbstub /home/brian/esp/v5.4.2/esp-idf/components/esp_hid /home/brian/esp/v5.4.2/esp-idf/components/esp_http_client /home/brian/esp/v5.4.2/esp-idf/components/esp_http_server /home/brian/esp/v5.4.2/esp-idf/components/esp_https_ota /home/brian/esp/v5.4.2/esp-idf/components/esp_https_server /home/brian/esp/v5.4.2/esp-idf/components/esp_hw_support /home/brian/esp/v5.4.2/esp-idf/components/esp_lcd /home/brian/esp/v5.4.2/esp-idf/components/esp_local_ctrl /home/brian/esp/v5.4.2/esp-idf/components/esp_mm /home/brian/esp/v5.4.2/esp-idf/components/esp_netif /home/brian/esp/v5.4.2/esp-idf/components/esp_netif_stack /home/brian/esp/v5.4.2/esp-idf/components/esp_partition /home/brian/esp/v5.4.2/esp-idf/components/esp_phy /home/brian/esp/v5.4.2/esp-idf/components/esp_pm /home/brian/esp/v5.4.2/esp-idf/components/esp_psram /home/brian/esp/v5.4.2/esp-idf/components/esp_ringbuf /home/brian/esp/v5.4.2/esp-idf/components/esp_rom /home/brian/esp/v5.4.2/esp-idf/components/esp_security /home/brian/esp/v5.4.2/esp-idf/components/esp_system /home/brian/esp/v5.4.2/esp-idf/components/esp_timer /home/brian/esp/v5.4.2/esp-idf/components/esp_vfs_console /home/brian/esp/v5.4.2/esp-idf/components/esp_wifi /home/brian/esp/v5.4.2/esp-idf/components/espcoredump /home/brian/esp/v5.4.2/esp-idf/examples/get-started/blink/managed_components/espressif__led_strip /home/brian/esp/v5.4.2/esp-idf/components/esptool_py /home/brian/esp/v5.4.2/esp-idf/components/fatfs /home/brian/esp/v5.4.2/esp-idf/components/freertos /home/brian/esp/v5.4.2/esp-idf/components/hal /home/brian/esp/v5.4.2/esp-idf/components/heap /home/brian/esp/v5.4.2/esp-idf/components/http_parser /home/brian/esp/v5.4.2/esp-idf/components/idf_test /home/brian/esp/v5.4.2/esp-idf/components/ieee802154 /home/brian/esp/v5.4.2/esp-idf/components/json /home/brian/esp/v5.4.2/esp-idf/components/log /home/brian/esp/v5.4.2/esp-idf/components/lwip /home/brian/esp/v5.4.2/esp-idf/examples/get-started/blink/main /home/brian/esp/v5.4.2/esp-idf/components/mbedtls /home/brian/esp/v5.4.2/esp-idf/components/mqtt /home/brian/esp/v5.4.2/esp-idf/components/newlib /home/brian/esp/v5.4.2/esp-idf/components/nvs_flash /home/brian/esp/v5.4.2/esp-idf/components/nvs_sec_provider /home/brian/esp/v5.4.2/esp-idf/components/openthread /home/brian/esp/v5.4.2/esp-idf/components/partition_table /home/brian/esp/v5.4.2/esp-idf/components/perfmon /home/brian/esp/v5.4.2/esp-idf/components/protobuf-c /home/brian/esp/v5.4.2/esp-idf/components/protocomm /home/brian/esp/v5.4.2/esp-idf/components/pthread /home/brian/esp/v5.4.2/esp-idf/components/rt /home/brian/esp/v5.4.2/esp-idf/components/sdmmc /home/brian/esp/v5.4.2/esp-idf/components/soc /home/brian/esp/v5.4.2/esp-idf/components/spi_flash /home/brian/esp/v5.4.2/esp-idf/components/spiffs /home/brian/esp/v5.4.2/esp-idf/components/tcp_transport /home/brian/esp/v5.4.2/esp-idf/components/ulp /home/brian/esp/v5.4.2/esp-idf/components/unity /home/brian/esp/v5.4.2/esp-idf/components/usb /home/brian/esp/v5.4.2/esp-idf/components/vfs /home/brian/esp/v5.4.2/esp-idf/components/wear_levelling /home/brian/esp/v5.4.2/esp-idf/components/wifi_provisioning /home/brian/esp/v5.4.2/esp-idf/components/wpa_supplicant /home/brian/esp/v5.4.2/esp-idf/components/xtensa
-- Configuring done (8.1s)
-- Generating done (0.4s)
-- Build files have been written to: /home/brian/esp/v5.4.2/esp-idf/examples/get-started/blink/build
Running ninja in directory /home/brian/esp/v5.4.2/esp-idf/examples/get-started/blink/build
Executing "ninja all"...
[4/1002] Generating ../../partition_table/partition-table.bin
Partition table binary generated. Contents:
*******************************************************************************
# ESP-IDF Partition Table
# Name, Type, SubType, Offset, Size, Flags
nvs,data,nvs,0x9000,24K,
phy_init,data,phy,0xf000,4K,
factory,app,factory,0x10000,1M,
*******************************************************************************
[467/1002] Performing configure step for 'bootloader'
-- Found Git: /usr/bin/git (found version "2.43.0")
-- The C compiler identification is GNU 14.2.0
-- The CXX compiler identification is GNU 14.2.0
-- The ASM compiler identification is GNU
-- Found assembler: /home/brian/.espressif/tools/xtensa-esp-elf/esp-14.2.0_20241119/xtensa-esp-elf/bin/xtensa-esp32-elf-gcc
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /home/brian/.espressif/tools/xtensa-esp-elf/esp-14.2.0_20241119/xtensa-esp-elf/bin/xtensa-esp32-elf-gcc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /home/brian/.espressif/tools/xtensa-esp-elf/esp-14.2.0_20241119/xtensa-esp-elf/bin/xtensa-esp32-elf-g++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Building ESP-IDF components for target esp32
-- Project sdkconfig file /home/brian/esp/v5.4.2/esp-idf/examples/get-started/blink/sdkconfig
-- Compiler supported targets: xtensa-esp-elf
-- Adding linker script /home/brian/esp/v5.4.2/esp-idf/components/soc/esp32/ld/esp32.peripherals.ld
-- Bootloader project name: "bootloader" version: 1
-- Adding linker script /home/brian/esp/v5.4.2/esp-idf/components/esp_rom/esp32/ld/esp32.rom.ld
-- Adding linker script /home/brian/esp/v5.4.2/esp-idf/components/esp_rom/esp32/ld/esp32.rom.api.ld
-- Adding linker script /home/brian/esp/v5.4.2/esp-idf/components/esp_rom/esp32/ld/esp32.rom.libgcc.ld
-- Adding linker script /home/brian/esp/v5.4.2/esp-idf/components/esp_rom/esp32/ld/esp32.rom.newlib-funcs.ld
-- Adding linker script /home/brian/esp/v5.4.2/esp-idf/components/bootloader/subproject/main/ld/esp32/bootloader.ld
-- Adding linker script /home/brian/esp/v5.4.2/esp-idf/components/bootloader/subproject/main/ld/esp32/bootloader.rom.ld
-- Components: bootloader bootloader_support efuse esp_app_format esp_bootloader_format esp_common esp_hw_support esp_rom esp_security esp_system esptool_py freertos hal log main micro-ecc newlib partition_table soc spi_flash xtensa
-- Component paths: /home/brian/esp/v5.4.2/esp-idf/components/bootloader /home/brian/esp/v5.4.2/esp-idf/components/bootloader_support /home/brian/esp/v5.4.2/esp-idf/components/efuse /home/brian/esp/v5.4.2/esp-idf/components/esp_app_format /home/brian/esp/v5.4.2/esp-idf/components/esp_bootloader_format /home/brian/esp/v5.4.2/esp-idf/components/esp_common /home/brian/esp/v5.4.2/esp-idf/components/esp_hw_support /home/brian/esp/v5.4.2/esp-idf/components/esp_rom /home/brian/esp/v5.4.2/esp-idf/components/esp_security /home/brian/esp/v5.4.2/esp-idf/components/esp_system /home/brian/esp/v5.4.2/esp-idf/components/esptool_py /home/brian/esp/v5.4.2/esp-idf/components/freertos /home/brian/esp/v5.4.2/esp-idf/components/hal /home/brian/esp/v5.4.2/esp-idf/components/log /home/brian/esp/v5.4.2/esp-idf/components/bootloader/subproject/main /home/brian/esp/v5.4.2/esp-idf/components/bootloader/subproject/components/micro-ecc /home/brian/esp/v5.4.2/esp-idf/components/newlib /home/brian/esp/v5.4.2/esp-idf/components/partition_table /home/brian/esp/v5.4.2/esp-idf/components/soc /home/brian/esp/v5.4.2/esp-idf/components/spi_flash /home/brian/esp/v5.4.2/esp-idf/components/xtensa
-- Configuring done (3.9s)
-- Generating done (0.1s)
-- Build files have been written to: /home/brian/esp/v5.4.2/esp-idf/examples/get-started/blink/build/bootloader
[110/111] Generating binary image from built executable
esptool.py v4.9.0
Creating esp32 image...
Merged 2 ELF sections
Successfully created esp32 image.
Generated /home/brian/esp/v5.4.2/esp-idf/examples/get-started/blink/build/bootloader/bootloader.bin
[111/111] cd /home/brian/esp/v5.4.2/esp-idf/examples/get-started/blink/b...5.4.2/esp-idf/examples/get-started/blink/build/bootloader/bootloader.bin
Bootloader binary size 0x6570 bytes. 0xa90 bytes (9%) free.
[1001/1002] Generating binary image from built executable
esptool.py v4.9.0
Creating esp32 image...
Merged 2 ELF sections
Successfully created esp32 image.
Generated /home/brian/esp/v5.4.2/esp-idf/examples/get-started/blink/build/blink.bin
[1002/1002] cd /home/brian/esp/v5.4.2/esp-idf/examples/get-started/blink...home/brian/esp/v5.4.2/esp-idf/examples/get-started/blink/build/blink.bin
blink.bin binary size 0x2dab0 bytes. Smallest app partition is 0x100000 bytes. 0xd2550 bytes (82%) free.

Project build complete. To flash, run:
 idf.py flash
or
 idf.py -p PORT flash
or
 python -m esptool --chip esp32 -b 460800 --before default_reset --after hard_reset write_flash --flash_mode dio --flash_size 2MB --flash_freq 40m 0x1000 build/bootloader/bootloader.bin 0x8000 build/partition_table/partition-table.bin 0x10000 build/blink.bin
or from the "/home/brian/esp/v5.4.2/esp-idf/examples/get-started/blink/build" directory
 python -m esptool --chip esp32 -b 460800 --before default_reset --after hard_reset write_flash "@flash_args"
(idf5.4_py3.12_env) brian@FA002502:~/esp/v5.4.2/esp-idf/examples/get-started/blink$ which xtensa-esp32-elf-gcc
/home/brian/.espressif/tools/xtensa-esp-elf/esp-14.2.0_20241119/xtensa-esp-elf/bin/xtensa-esp32-elf-gcc
(idf5.4_py3.12_env) brian@FA002502:~/esp/v5.4.2/esp-idf/examples/get-started/blink$ echo $PATH
/home/brian/.espressif/python_env/idf5.4_py3.12_env/bin:/home/brian/.espressif/:/home/brian/.espressif/bin:/home/brian/.espressif/ccache-4.10.2-windows-x86_64:/home/brian/.espressif/dfu-util-0.11-win64:/home/brian/.espressif/esp32ulp-elf/bin:/home/brian/.espressif/openocd-esp32/bin:/home/brian/.espressif/python_env/idf5.1_py3.12_env/bin:/home/brian/.espressif/python_env/idf5.4_py3.12_env/bin:/home/brian/.espressif/qemu/bin:/home/brian/.espressif/riscv32-esp-elf-gdb/bin:/home/brian/.espressif/riscv32-esp-elf/bin:/home/brian/.espressif/tools/cmake/3.30.2/cmake-3.30.2-linux-x86_64/bin:/home/brian/.espressif/tools/esp-clang/15.0.0-23786128ae/esp-clang/bin:/home/brian/.espressif/tools/esp-clang/15.0.0-23786128ae/esp-clang/riscv32-esp-elf/bin:/home/brian/.espressif/tools/esp-clang/15.0.0-23786128ae/esp-clang/xtensa-esp32-elf/bin:/home/brian/.espressif/tools/esp-clang/15.0.0-23786128ae/esp-clang/xtensa-esp32s2-elf/bin:/home/brian/.espressif/tools/esp-clang/15.0.0-23786128ae/esp-clang/xtensa-esp32s3-elf/bin:/home/brian/.espressif/tools/esp-clang/esp-18.1.2_20240912/esp-clang/bin:/home/brian/.espressif/tools/esp-clang/esp-19.1.2_20250312/esp-clang/bin:/home/brian/.espressif/tools/esp32ulp-elf/2.35_20220830/esp32ulp-elf/bin:/home/brian/.espressif/tools/esp32ulp-elf/2.35_20220830/esp32ulp-elf/esp32ulp-elf/bin:/home/brian/.espressif/tools/esp32ulp-elf/2.38_20240113/esp32ulp-elf/bin:/home/brian/.espressif/tools/esp32ulp-elf/2.38_20240113/esp32ulp-elf/esp32ulp-elf/bin:/home/brian/.espressif/tools/openocd-esp32/v0.12.0-esp32-20241016/openocd-esp32/bin:/home/brian/.espressif/tools/openocd-esp32/v0.12.0-esp32-20250422/openocd-esp32/bin:/home/brian/.espressif/tools/python/v5.5/venv/bin:/home/brian/.espressif/tools/qemu-riscv32/esp_develop_9.0.0_20240606/qemu/bin:/home/brian/.espressif/tools/qemu-xtensa/esp_develop_9.0.0_20240606/qemu/bin:/home/brian/.espressif/tools/riscv32-esp-elf-gdb/12.1_20231023/riscv32-esp-elf-gdb/bin:/home/brian/.espressif/tools/riscv32-esp-elf-gdb/14.2_20240403/riscv32-esp-elf-gdb/bin:/home/brian/.espressif/tools/riscv32-esp-elf-gdb/16.2_20250324/riscv32-esp-elf-gdb/bin:/home/brian/.espressif/tools/riscv32-esp-elf/esp-12.2.0_20230208/riscv32-esp-elf/bin:/home/brian/.espressif/tools/riscv32-esp-elf/esp-12.2.0_20230208/riscv32-esp-elf/riscv32-esp-elf/bin:/home/brian/.espressif/tools/riscv32-esp-elf/esp-14.2.0_20241119/riscv32-esp-elf/bin:/home/brian/.espressif/tools/riscv32-esp-elf/esp-14.2.0_20241119/riscv32-esp-elf/riscv32-esp-elf/bin:/home/brian/.espressif/tools/xtensa-esp-elf-gdb/12.1_20231023/xtensa-esp-elf-gdb/bin:/home/brian/.espressif/tools/xtensa-esp-elf-gdb/14.2_20240403/xtensa-esp-elf-gdb/bin:/home/brian/.espressif/tools/xtensa-esp-elf-gdb/16.2_20250324/xtensa-esp-elf-gdb/bin:/home/brian/.espressif/tools/xtensa-esp-elf/esp-14.2.0_20241119/xtensa-esp-elf/bin:/home/brian/.espressif/tools/xtensa-esp-elf/esp-14.2.0_20241119/xtensa-esp-elf/xtensa-esp-elf/bin:/home/brian/.espressif/tools/xtensa-esp32-elf/esp-12.2.0_20230208/xtensa-esp32-elf/bin:/home/brian/.espressif/tools/xtensa-esp32-elf/esp-12.2.0_20230208/xtensa-esp32-elf/xtensa-esp32-elf/bin:/home/brian/.espressif/tools/xtensa-esp32s2-elf/esp-12.2.0_20230208/xtensa-esp32s2-elf/bin:/home/brian/.espressif/tools/xtensa-esp32s2-elf/esp-12.2.0_20230208/xtensa-esp32s2-elf/xtensa-esp32s2-elf/bin:/home/brian/.espressif/tools/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin:/home/brian/.espressif/tools/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/xtensa-esp32s3-elf/bin:/home/brian/.espressif/xtensa-esp-elf-gdb/bin:/home/brian/.espressif/xtensa-esp-elf/bin:/home/brian/.espressif/esp-clang/bin:/usr/bin/git:/home/brian/.espressif/python_env/idf5.4_py3.12_env/bin:/home/brian/.nvm/versions/node/v20.16.0/bin:/home/brian/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin
(idf5.4_py3.12_env) brian@FA002502:~/esp/v5.4.2/esp-idf/examples/get-started/blink$

Use of ESP-IDF v5.1.6 activation script and blink build.

brian@FA002502:~$ cd .espressif/tools/
brian@FA002502:~/.espressif/tools$ ls
activate_idf_5.1.6.sh  espidf.constraints.v5.5.txt  riscv32-esp-elf-gdb
activate_idf_5.4.2.sh  esp-rom-elfs                 xtensa-esp32-elf
activate_idf_v5.5.sh   ninja                        xtensa-esp32s2-elf
cmake                  openocd-esp32                xtensa-esp32s3-elf
eim_idf.json           python                       xtensa-esp-elf
esp32ulp-elf           qemu-riscv32                 xtensa-esp-elf-gdb
esp-clang              qemu-xtensa
esp-clang-libs         riscv32-esp-elf
brian@FA002502:~/.espressif/tools$ source activate_idf_5.1.6.sh 
Added environment variable ESP_IDF_VERSION = 5.1
Added environment variable IDF_TOOLS_PATH = /home/brian/.espressif
Added environment variable IDF_PATH = /home/brian/esp/v5.1.6/esp-idf
Added environment variable ESP_ROM_ELF_DIR = /home/brian/.espressif/esp-rom-elfs
Added environment variable OPENOCD_SCRIPTS = 
Added environment variable IDF_PYTHON_ENV_PATH = /home/brian/.espressif/python_env/idf5.1_py3.12_env/
Added proper directory to PATH
Activated virtual environment at /home/brian/.espressif/python_env/idf5.1_py3.12_env/
Environment setup complete for the current shell session.
These changes will be lost when you close this terminal.
You are now using IDF version 5.1.
(idf5.1_py3.12_env) brian@FA002502:~/.espressif/tools$ cd $IDF_PATH/examples/get-started/blink/
(idf5.1_py3.12_env) brian@FA002502:~/esp/v5.1.6/esp-idf/examples/get-started/blink$ idf.py build
Executing action: all (aliases: build)
Running cmake in directory /home/brian/esp/v5.1.6/esp-idf/examples/get-started/blink/build
Executing "cmake -G Ninja -DPYTHON_DEPS_CHECKED=1 -DPYTHON=/home/brian/.espressif/python_env/idf5.1_py3.12_env/bin/python3 -DESP_PLATFORM=1 -DCCACHE_ENABLE=0 /home/brian/esp/v5.1.6/esp-idf/examples/get-started/blink"...
-- IDF_TARGET not set, using default target: esp32
-- Found Git: /usr/bin/git (found version "2.43.0")
-- The C compiler identification is GNU 14.2.0
-- The CXX compiler identification is GNU 14.2.0
-- The ASM compiler identification is GNU
-- Found assembler: /home/brian/.espressif/tools/xtensa-esp-elf/esp-14.2.0_20241119/xtensa-esp-elf/bin/xtensa-esp32-elf-gcc
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /home/brian/.espressif/tools/xtensa-esp-elf/esp-14.2.0_20241119/xtensa-esp-elf/bin/xtensa-esp32-elf-gcc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /home/brian/.espressif/tools/xtensa-esp-elf/esp-14.2.0_20241119/xtensa-esp-elf/bin/xtensa-esp32-elf-g++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Building ESP-IDF components for target esp32
NOTICE: Dependencies lock doesn't exist, solving dependencies.
....NOTICE: Updating lock file at /home/brian/esp/v5.1.6/esp-idf/examples/get-started/blink/dependencies.lock
NOTICE: Processing 2 dependencies:
NOTICE: [1/2] espressif/led_strip (2.5.5)
NOTICE: [2/2] idf (5.1.6)
-- Project sdkconfig file /home/brian/esp/v5.1.6/esp-idf/examples/get-started/blink/sdkconfig
Compiler supported targets: xtensa-esp-elf

CMake Warning at /home/brian/esp/v5.1.6/esp-idf/tools/cmake/tool_version_check.cmake:41 (message):
  Can not get version for tool:
  /home/brian/.espressif/tools/xtensa-esp-elf/esp-14.2.0_20241119/xtensa-esp-elf/bin/xtensa-esp32-elf-gcc


  Check Getting Started documentation or proceed at own risk.

Call Stack (most recent call first):
  /home/brian/esp/v5.1.6/esp-idf/components/esp_common/project_include.cmake:10 (check_expected_tool_version)
  /home/brian/esp/v5.1.6/esp-idf/tools/cmake/build.cmake:398 (include)
  /home/brian/esp/v5.1.6/esp-idf/tools/cmake/build.cmake:628 (__build_process_project_includes)
  /home/brian/esp/v5.1.6/esp-idf/tools/cmake/project.cmake:604 (idf_build_process)
  CMakeLists.txt:6 (project)


-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of time_t
-- Check size of time_t - done
-- Found Python3: /home/brian/.espressif/python_env/idf5.1_py3.12_env/bin/python3 (found version "3.12.3") found components: Interpreter
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
-- Performing Test C_COMPILER_SUPPORTS_WFORMAT_SIGNEDNESS
-- Performing Test C_COMPILER_SUPPORTS_WFORMAT_SIGNEDNESS - Success
-- App "blink" version: v5.1.6-dirty
-- Adding linker script /home/brian/esp/v5.1.6/esp-idf/examples/get-started/blink/build/esp-idf/esp_system/ld/memory.ld
-- Adding linker script /home/brian/esp/v5.1.6/esp-idf/components/esp_system/ld/esp32/sections.ld.in
-- Adding linker script /home/brian/esp/v5.1.6/esp-idf/components/esp_rom/esp32/ld/esp32.rom.ld
-- Adding linker script /home/brian/esp/v5.1.6/esp-idf/components/esp_rom/esp32/ld/esp32.rom.api.ld
-- Adding linker script /home/brian/esp/v5.1.6/esp-idf/components/esp_rom/esp32/ld/esp32.rom.libgcc.ld
-- Adding linker script /home/brian/esp/v5.1.6/esp-idf/components/esp_rom/esp32/ld/esp32.rom.newlib-data.ld
-- Adding linker script /home/brian/esp/v5.1.6/esp-idf/components/esp_rom/esp32/ld/esp32.rom.syscalls.ld
-- Adding linker script /home/brian/esp/v5.1.6/esp-idf/components/esp_rom/esp32/ld/esp32.rom.newlib-funcs.ld
-- Adding linker script /home/brian/esp/v5.1.6/esp-idf/components/soc/esp32/ld/esp32.peripherals.ld
-- Components: app_trace app_update bootloader bootloader_support bt cmock console cxx driver efuse esp-tls esp_adc esp_app_format esp_coex esp_common esp_eth esp_event esp_gdbstub esp_hid esp_http_client esp_http_server esp_https_ota esp_https_server esp_hw_support esp_lcd esp_local_ctrl esp_mm esp_netif esp_netif_stack esp_partition esp_phy esp_pm esp_psram esp_ringbuf esp_rom esp_system esp_timer esp_wifi espcoredump espressif__led_strip esptool_py fatfs freertos hal heap http_parser idf_test ieee802154 json log lwip main mbedtls mqtt newlib nvs_flash openthread partition_table perfmon protobuf-c protocomm pthread sdmmc soc spi_flash spiffs tcp_transport ulp unity usb vfs wear_levelling wifi_provisioning wpa_supplicant xtensa
-- Component paths: /home/brian/esp/v5.1.6/esp-idf/components/app_trace /home/brian/esp/v5.1.6/esp-idf/components/app_update /home/brian/esp/v5.1.6/esp-idf/components/bootloader /home/brian/esp/v5.1.6/esp-idf/components/bootloader_support /home/brian/esp/v5.1.6/esp-idf/components/bt /home/brian/esp/v5.1.6/esp-idf/components/cmock /home/brian/esp/v5.1.6/esp-idf/components/console /home/brian/esp/v5.1.6/esp-idf/components/cxx /home/brian/esp/v5.1.6/esp-idf/components/driver /home/brian/esp/v5.1.6/esp-idf/components/efuse /home/brian/esp/v5.1.6/esp-idf/components/esp-tls /home/brian/esp/v5.1.6/esp-idf/components/esp_adc /home/brian/esp/v5.1.6/esp-idf/components/esp_app_format /home/brian/esp/v5.1.6/esp-idf/components/esp_coex /home/brian/esp/v5.1.6/esp-idf/components/esp_common /home/brian/esp/v5.1.6/esp-idf/components/esp_eth /home/brian/esp/v5.1.6/esp-idf/components/esp_event /home/brian/esp/v5.1.6/esp-idf/components/esp_gdbstub /home/brian/esp/v5.1.6/esp-idf/components/esp_hid /home/brian/esp/v5.1.6/esp-idf/components/esp_http_client /home/brian/esp/v5.1.6/esp-idf/components/esp_http_server /home/brian/esp/v5.1.6/esp-idf/components/esp_https_ota /home/brian/esp/v5.1.6/esp-idf/components/esp_https_server /home/brian/esp/v5.1.6/esp-idf/components/esp_hw_support /home/brian/esp/v5.1.6/esp-idf/components/esp_lcd /home/brian/esp/v5.1.6/esp-idf/components/esp_local_ctrl /home/brian/esp/v5.1.6/esp-idf/components/esp_mm /home/brian/esp/v5.1.6/esp-idf/components/esp_netif /home/brian/esp/v5.1.6/esp-idf/components/esp_netif_stack /home/brian/esp/v5.1.6/esp-idf/components/esp_partition /home/brian/esp/v5.1.6/esp-idf/components/esp_phy /home/brian/esp/v5.1.6/esp-idf/components/esp_pm /home/brian/esp/v5.1.6/esp-idf/components/esp_psram /home/brian/esp/v5.1.6/esp-idf/components/esp_ringbuf /home/brian/esp/v5.1.6/esp-idf/components/esp_rom /home/brian/esp/v5.1.6/esp-idf/components/esp_system /home/brian/esp/v5.1.6/esp-idf/components/esp_timer /home/brian/esp/v5.1.6/esp-idf/components/esp_wifi /home/brian/esp/v5.1.6/esp-idf/components/espcoredump /home/brian/esp/v5.1.6/esp-idf/examples/get-started/blink/managed_components/espressif__led_strip /home/brian/esp/v5.1.6/esp-idf/components/esptool_py /home/brian/esp/v5.1.6/esp-idf/components/fatfs /home/brian/esp/v5.1.6/esp-idf/components/freertos /home/brian/esp/v5.1.6/esp-idf/components/hal /home/brian/esp/v5.1.6/esp-idf/components/heap /home/brian/esp/v5.1.6/esp-idf/components/http_parser /home/brian/esp/v5.1.6/esp-idf/components/idf_test /home/brian/esp/v5.1.6/esp-idf/components/ieee802154 /home/brian/esp/v5.1.6/esp-idf/components/json /home/brian/esp/v5.1.6/esp-idf/components/log /home/brian/esp/v5.1.6/esp-idf/components/lwip /home/brian/esp/v5.1.6/esp-idf/examples/get-started/blink/main /home/brian/esp/v5.1.6/esp-idf/components/mbedtls /home/brian/esp/v5.1.6/esp-idf/components/mqtt /home/brian/esp/v5.1.6/esp-idf/components/newlib /home/brian/esp/v5.1.6/esp-idf/components/nvs_flash /home/brian/esp/v5.1.6/esp-idf/components/openthread /home/brian/esp/v5.1.6/esp-idf/components/partition_table /home/brian/esp/v5.1.6/esp-idf/components/perfmon /home/brian/esp/v5.1.6/esp-idf/components/protobuf-c /home/brian/esp/v5.1.6/esp-idf/components/protocomm /home/brian/esp/v5.1.6/esp-idf/components/pthread /home/brian/esp/v5.1.6/esp-idf/components/sdmmc /home/brian/esp/v5.1.6/esp-idf/components/soc /home/brian/esp/v5.1.6/esp-idf/components/spi_flash /home/brian/esp/v5.1.6/esp-idf/components/spiffs /home/brian/esp/v5.1.6/esp-idf/components/tcp_transport /home/brian/esp/v5.1.6/esp-idf/components/ulp /home/brian/esp/v5.1.6/esp-idf/components/unity /home/brian/esp/v5.1.6/esp-idf/components/usb /home/brian/esp/v5.1.6/esp-idf/components/vfs /home/brian/esp/v5.1.6/esp-idf/components/wear_levelling /home/brian/esp/v5.1.6/esp-idf/components/wifi_provisioning /home/brian/esp/v5.1.6/esp-idf/components/wpa_supplicant /home/brian/esp/v5.1.6/esp-idf/components/xtensa
-- Configuring done (6.2s)
-- Generating done (0.2s)
-- Build files have been written to: /home/brian/esp/v5.1.6/esp-idf/examples/get-started/blink/build
Running ninja in directory /home/brian/esp/v5.1.6/esp-idf/examples/get-started/blink/build
Executing "ninja all"...
[14/914] Generating ../../partition_table/partition-table.binPartition table binary generated. Contents:
*******************************************************************************
# ESP-IDF Partition Table
# Name, Type, SubType, Offset, Size, Flags
nvs,data,nvs,0x9000,24K,
phy_init,data,phy,0xf000,4K,
factory,app,factory,0x10000,1M,
*******************************************************************************
[142/914] Building C object esp-idf/es..._idf_esp_partition.dir/partition.c.obj/home/brian/esp/v5.1.6/esp-idf/components/esp_partition/partition.c: In function 'load_partitions':
/home/brian/esp/v5.1.6/esp-idf/components/esp_partition/partition.c:137:79: warning: 'calloc' sizes specified with 'sizeof' in the earlier argument and not in the later argument [-Wcalloc-transposed-args]
  137 |         partition_list_item_t *item = (partition_list_item_t *) calloc(sizeof(partition_list_item_t), 1);
      |                                                                               ^~~~~~~~~~~~~~~~~~~~~
/home/brian/esp/v5.1.6/esp-idf/components/esp_partition/partition.c:137:79: note: earlier argument should specify number of elements, later size of each element
/home/brian/esp/v5.1.6/esp-idf/components/esp_partition/partition.c: In function 'esp_partition_register_external':
/home/brian/esp/v5.1.6/esp-idf/components/esp_partition/partition.c:409:75: warning: 'calloc' sizes specified with 'sizeof' in the earlier argument and not in the later argument [-Wcalloc-transposed-args]
  409 |     partition_list_item_t *item = (partition_list_item_t *) calloc(sizeof(partition_list_item_t), 1);
      |                                                                           ^~~~~~~~~~~~~~~~~~~~~
/home/brian/esp/v5.1.6/esp-idf/components/esp_partition/partition.c:409:75: note: earlier argument should specify number of elements, later size of each element
[155/914] Building C object esp-idf/ap...__idf_app_update.dir/esp_ota_ops.c.obj/home/brian/esp/v5.1.6/esp-idf/components/app_update/esp_ota_ops.c: In function 'esp_ota_begin':
/home/brian/esp/v5.1.6/esp-idf/components/app_update/esp_ota_ops.c:173:51: warning: 'calloc' sizes specified with 'sizeof' in the earlier argument and not in the later argument [-Wcalloc-transposed-args]
  173 |     new_entry = (ota_ops_entry_t *) calloc(sizeof(ota_ops_entry_t), 1);
      |                                                   ^~~~~~~~~~~~~~~
/home/brian/esp/v5.1.6/esp-idf/components/app_update/esp_ota_ops.c:173:51: note: earlier argument should specify number of elements, later size of each element
[351/914] Building C object esp-idf/ne...iles/__idf_newlib.dir/reent_init.c.objFAILED: esp-idf/newlib/CMakeFiles/__idf_newlib.dir/reent_init.c.obj 
/home/brian/.espressif/tools/xtensa-esp-elf/esp-14.2.0_20241119/xtensa-esp-elf/bin/xtensa-esp32-elf-gcc -DESP_PLATFORM -DIDF_VER=\"v5.1.6-dirty\" -DSOC_MMU_PAGE_SIZE=CONFIG_MMU_PAGE_SIZE -D_GNU_SOURCE -D_POSIX_READER_WRITER_LOCKS -I/home/brian/esp/v5.1.6/esp-idf/examples/get-started/blink/build/config -I/home/brian/esp/v5.1.6/esp-idf/components/newlib/platform_include -I/home/brian/esp/v5.1.6/esp-idf/components/newlib/priv_include -I/home/brian/esp/v5.1.6/esp-idf/components/freertos/FreeRTOS-Kernel/include -I/home/brian/esp/v5.1.6/esp-idf/components/freertos/FreeRTOS-Kernel/portable/xtensa/include -I/home/brian/esp/v5.1.6/esp-idf/components/freertos/esp_additions/include/freertos -I/home/brian/esp/v5.1.6/esp-idf/components/freertos/esp_additions/include -I/home/brian/esp/v5.1.6/esp-idf/components/freertos/esp_additions/arch/xtensa/include -I/home/brian/esp/v5.1.6/esp-idf/components/esp_hw_support/include -I/home/brian/esp/v5.1.6/esp-idf/components/esp_hw_support/include/soc -I/home/brian/esp/v5.1.6/esp-idf/components/esp_hw_support/include/soc/esp32 -I/home/brian/esp/v5.1.6/esp-idf/components/esp_hw_support/port/esp32/. -I/home/brian/esp/v5.1.6/esp-idf/components/heap/include -I/home/brian/esp/v5.1.6/esp-idf/components/log/include -I/home/brian/esp/v5.1.6/esp-idf/components/soc/include -I/home/brian/esp/v5.1.6/esp-idf/components/soc/esp32 -I/home/brian/esp/v5.1.6/esp-idf/components/soc/esp32/include -I/home/brian/esp/v5.1.6/esp-idf/components/hal/esp32/include -I/home/brian/esp/v5.1.6/esp-idf/components/hal/include -I/home/brian/esp/v5.1.6/esp-idf/components/hal/platform_port/include -I/home/brian/esp/v5.1.6/esp-idf/components/esp_rom/include -I/home/brian/esp/v5.1.6/esp-idf/components/esp_rom/include/esp32 -I/home/brian/esp/v5.1.6/esp-idf/components/esp_rom/esp32 -I/home/brian/esp/v5.1.6/esp-idf/components/esp_common/include -I/home/brian/esp/v5.1.6/esp-idf/components/esp_system/include -I/home/brian/esp/v5.1.6/esp-idf/components/esp_system/port/soc -I/home/brian/esp/v5.1.6/esp-idf/components/esp_system/port/include/private -I/home/brian/esp/v5.1.6/esp-idf/components/xtensa/include -I/home/brian/esp/v5.1.6/esp-idf/components/xtensa/esp32/include -I/home/brian/esp/v5.1.6/esp-idf/components/lwip/include -I/home/brian/esp/v5.1.6/esp-idf/components/lwip/include/apps -I/home/brian/esp/v5.1.6/esp-idf/components/lwip/include/apps/sntp -I/home/brian/esp/v5.1.6/esp-idf/components/lwip/lwip/src/include -I/home/brian/esp/v5.1.6/esp-idf/components/lwip/port/include -I/home/brian/esp/v5.1.6/esp-idf/components/lwip/port/freertos/include -I/home/brian/esp/v5.1.6/esp-idf/components/lwip/port/esp32xx/include -I/home/brian/esp/v5.1.6/esp-idf/components/lwip/port/esp32xx/include/arch -I/home/brian/esp/v5.1.6/esp-idf/components/spi_flash/include -mlongcalls -Wno-frame-address  -fdiagnostics-color=always -ffunction-sections -fdata-sections -Wall -Werror=all -Wno-error=unused-function -Wno-error=unused-variable -Wno-error=unused-but-set-variable -Wno-error=deprecated-declarations -Wextra -Wno-unused-parameter -Wno-sign-compare -Wno-enum-conversion -gdwarf-4 -ggdb -Og -fmacro-prefix-map=/home/brian/esp/v5.1.6/esp-idf/examples/get-started/blink=. -fmacro-prefix-map=/home/brian/esp/v5.1.6/esp-idf=/IDF -fstrict-volatile-bitfields -fno-jump-tables -fno-tree-switch-conversion -DconfigENABLE_FREERTOS_DEBUG_OCDAWARE=1 -std=gnu17 -Wno-old-style-declaration -MD -MT esp-idf/newlib/CMakeFiles/__idf_newlib.dir/reent_init.c.obj -MF esp-idf/newlib/CMakeFiles/__idf_newlib.dir/reent_init.c.obj.d -o esp-idf/newlib/CMakeFiles/__idf_newlib.dir/reent_init.c.obj -c /home/brian/esp/v5.1.6/esp-idf/components/newlib/reent_init.c
/home/brian/esp/v5.1.6/esp-idf/components/newlib/reent_init.c: In function 'esp_reent_init':
/home/brian/esp/v5.1.6/esp-idf/components/newlib/reent_init.c:29:6: error: 'struct _reent' has no member named '__sdidinit'
   29 |     r->__sdidinit = 1;
      |      ^~
/home/brian/esp/v5.1.6/esp-idf/components/newlib/reent_init.c:30:6: error: 'struct _reent' has no member named '__sglue'
   30 |     r->__sglue._next = NULL;
      |      ^~
/home/brian/esp/v5.1.6/esp-idf/components/newlib/reent_init.c:31:6: error: 'struct _reent' has no member named '__sglue'
   31 |     r->__sglue._niobs = 0;
      |      ^~
/home/brian/esp/v5.1.6/esp-idf/components/newlib/reent_init.c:32:6: error: 'struct _reent' has no member named '__sglue'
   32 |     r->__sglue._iobs = NULL;
      |      ^~
/home/brian/esp/v5.1.6/esp-idf/components/newlib/reent_init.c: In function 'esp_reent_cleanup':
/home/brian/esp/v5.1.6/esp-idf/components/newlib/reent_init.c:60:40: error: 'struct _reent' has no member named '__sglue'
   60 |     struct _glue* prev = &_GLOBAL_REENT->__sglue;
      |                                        ^~
/home/brian/esp/v5.1.6/esp-idf/components/newlib/reent_init.c:61:43: error: 'struct _reent' has no member named '__sglue'
   61 |     for (struct _glue* cur = _GLOBAL_REENT->__sglue._next; cur != NULL;) {
      |                                           ^~
[360/914] Building C object esp-idf/ne...les/__idf_newlib.dir/newlib_init.c.objFAILED: esp-idf/newlib/CMakeFiles/__idf_newlib.dir/newlib_init.c.obj 
/home/brian/.espressif/tools/xtensa-esp-elf/esp-14.2.0_20241119/xtensa-esp-elf/bin/xtensa-esp32-elf-gcc -DESP_PLATFORM -DIDF_VER=\"v5.1.6-dirty\" -DSOC_MMU_PAGE_SIZE=CONFIG_MMU_PAGE_SIZE -D_GNU_SOURCE -D_POSIX_READER_WRITER_LOCKS -I/home/brian/esp/v5.1.6/esp-idf/examples/get-started/blink/build/config -I/home/brian/esp/v5.1.6/esp-idf/components/newlib/platform_include -I/home/brian/esp/v5.1.6/esp-idf/components/newlib/priv_include -I/home/brian/esp/v5.1.6/esp-idf/components/freertos/FreeRTOS-Kernel/include -I/home/brian/esp/v5.1.6/esp-idf/components/freertos/FreeRTOS-Kernel/portable/xtensa/include -I/home/brian/esp/v5.1.6/esp-idf/components/freertos/esp_additions/include/freertos -I/home/brian/esp/v5.1.6/esp-idf/components/freertos/esp_additions/include -I/home/brian/esp/v5.1.6/esp-idf/components/freertos/esp_additions/arch/xtensa/include -I/home/brian/esp/v5.1.6/esp-idf/components/esp_hw_support/include -I/home/brian/esp/v5.1.6/esp-idf/components/esp_hw_support/include/soc -I/home/brian/esp/v5.1.6/esp-idf/components/esp_hw_support/include/soc/esp32 -I/home/brian/esp/v5.1.6/esp-idf/components/esp_hw_support/port/esp32/. -I/home/brian/esp/v5.1.6/esp-idf/components/heap/include -I/home/brian/esp/v5.1.6/esp-idf/components/log/include -I/home/brian/esp/v5.1.6/esp-idf/components/soc/include -I/home/brian/esp/v5.1.6/esp-idf/components/soc/esp32 -I/home/brian/esp/v5.1.6/esp-idf/components/soc/esp32/include -I/home/brian/esp/v5.1.6/esp-idf/components/hal/esp32/include -I/home/brian/esp/v5.1.6/esp-idf/components/hal/include -I/home/brian/esp/v5.1.6/esp-idf/components/hal/platform_port/include -I/home/brian/esp/v5.1.6/esp-idf/components/esp_rom/include -I/home/brian/esp/v5.1.6/esp-idf/components/esp_rom/include/esp32 -I/home/brian/esp/v5.1.6/esp-idf/components/esp_rom/esp32 -I/home/brian/esp/v5.1.6/esp-idf/components/esp_common/include -I/home/brian/esp/v5.1.6/esp-idf/components/esp_system/include -I/home/brian/esp/v5.1.6/esp-idf/components/esp_system/port/soc -I/home/brian/esp/v5.1.6/esp-idf/components/esp_system/port/include/private -I/home/brian/esp/v5.1.6/esp-idf/components/xtensa/include -I/home/brian/esp/v5.1.6/esp-idf/components/xtensa/esp32/include -I/home/brian/esp/v5.1.6/esp-idf/components/lwip/include -I/home/brian/esp/v5.1.6/esp-idf/components/lwip/include/apps -I/home/brian/esp/v5.1.6/esp-idf/components/lwip/include/apps/sntp -I/home/brian/esp/v5.1.6/esp-idf/components/lwip/lwip/src/include -I/home/brian/esp/v5.1.6/esp-idf/components/lwip/port/include -I/home/brian/esp/v5.1.6/esp-idf/components/lwip/port/freertos/include -I/home/brian/esp/v5.1.6/esp-idf/components/lwip/port/esp32xx/include -I/home/brian/esp/v5.1.6/esp-idf/components/lwip/port/esp32xx/include/arch -I/home/brian/esp/v5.1.6/esp-idf/components/spi_flash/include -mlongcalls -Wno-frame-address  -fdiagnostics-color=always -ffunction-sections -fdata-sections -Wall -Werror=all -Wno-error=unused-function -Wno-error=unused-variable -Wno-error=unused-but-set-variable -Wno-error=deprecated-declarations -Wextra -Wno-unused-parameter -Wno-sign-compare -Wno-enum-conversion -gdwarf-4 -ggdb -Og -fmacro-prefix-map=/home/brian/esp/v5.1.6/esp-idf/examples/get-started/blink=. -fmacro-prefix-map=/home/brian/esp/v5.1.6/esp-idf=/IDF -fstrict-volatile-bitfields -fno-jump-tables -fno-tree-switch-conversion -DconfigENABLE_FREERTOS_DEBUG_OCDAWARE=1 -std=gnu17 -Wno-old-style-declaration -MD -MT esp-idf/newlib/CMakeFiles/__idf_newlib.dir/newlib_init.c.obj -MF esp-idf/newlib/CMakeFiles/__idf_newlib.dir/newlib_init.c.obj.d -o esp-idf/newlib/CMakeFiles/__idf_newlib.dir/newlib_init.c.obj -c /home/brian/esp/v5.1.6/esp-idf/components/newlib/newlib_init.c
/home/brian/esp/v5.1.6/esp-idf/components/newlib/newlib_init.c: In function 'esp_newlib_init':
/home/brian/esp/v5.1.6/esp-idf/components/newlib/newlib_init.c:143:19: error: lvalue required as left operand of assignment
  143 |     _GLOBAL_REENT = &s_reent;
      |                   ^
[372/914] Performing configure step for 'bootloader'-- Found Git: /usr/bin/git (found version "2.43.0")
-- The C compiler identification is GNU 14.2.0
-- The CXX compiler identification is GNU 14.2.0
-- The ASM compiler identification is GNU
-- Found assembler: /home/brian/.espressif/tools/xtensa-esp-elf/esp-14.2.0_20241119/xtensa-esp-elf/bin/xtensa-esp32-elf-gcc
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /home/brian/.espressif/tools/xtensa-esp-elf/esp-14.2.0_20241119/xtensa-esp-elf/bin/xtensa-esp32-elf-gcc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /home/brian/.espressif/tools/xtensa-esp-elf/esp-14.2.0_20241119/xtensa-esp-elf/bin/xtensa-esp32-elf-g++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Building ESP-IDF components for target esp32
-- Project sdkconfig file /home/brian/esp/v5.1.6/esp-idf/examples/get-started/blink/sdkconfig
Compiler supported targets: xtensa-esp-elf

CMake Warning at /home/brian/esp/v5.1.6/esp-idf/tools/cmake/tool_version_check.cmake:41 (message):
  Can not get version for tool:
  /home/brian/.espressif/tools/xtensa-esp-elf/esp-14.2.0_20241119/xtensa-esp-elf/bin/xtensa-esp32-elf-gcc


  Check Getting Started documentation or proceed at own risk.

Call Stack (most recent call first):
  /home/brian/esp/v5.1.6/esp-idf/components/esp_common/project_include.cmake:10 (check_expected_tool_version)
  /home/brian/esp/v5.1.6/esp-idf/tools/cmake/build.cmake:398 (include)
  /home/brian/esp/v5.1.6/esp-idf/tools/cmake/build.cmake:628 (__build_process_project_includes)
  /home/brian/esp/v5.1.6/esp-idf/tools/cmake/project.cmake:604 (idf_build_process)
  CMakeLists.txt:58 (project)


-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of time_t
-- Check size of time_t - done
-- Adding linker script /home/brian/esp/v5.1.6/esp-idf/components/soc/esp32/ld/esp32.peripherals.ld
-- App "bootloader" version: v5.1.6-dirty
-- Adding linker script /home/brian/esp/v5.1.6/esp-idf/components/esp_rom/esp32/ld/esp32.rom.ld
-- Adding linker script /home/brian/esp/v5.1.6/esp-idf/components/esp_rom/esp32/ld/esp32.rom.api.ld
-- Adding linker script /home/brian/esp/v5.1.6/esp-idf/components/esp_rom/esp32/ld/esp32.rom.libgcc.ld
-- Adding linker script /home/brian/esp/v5.1.6/esp-idf/components/esp_rom/esp32/ld/esp32.rom.newlib-funcs.ld
-- Adding linker script /home/brian/esp/v5.1.6/esp-idf/components/bootloader/subproject/main/ld/esp32/bootloader.ld
-- Adding linker script /home/brian/esp/v5.1.6/esp-idf/components/bootloader/subproject/main/ld/esp32/bootloader.rom.ld
-- Components: bootloader bootloader_support efuse esp_app_format esp_common esp_hw_support esp_rom esp_system esptool_py freertos hal log main micro-ecc newlib partition_table soc spi_flash xtensa
-- Component paths: /home/brian/esp/v5.1.6/esp-idf/components/bootloader /home/brian/esp/v5.1.6/esp-idf/components/bootloader_support /home/brian/esp/v5.1.6/esp-idf/components/efuse /home/brian/esp/v5.1.6/esp-idf/components/esp_app_format /home/brian/esp/v5.1.6/esp-idf/components/esp_common /home/brian/esp/v5.1.6/esp-idf/components/esp_hw_support /home/brian/esp/v5.1.6/esp-idf/components/esp_rom /home/brian/esp/v5.1.6/esp-idf/components/esp_system /home/brian/esp/v5.1.6/esp-idf/components/esptool_py /home/brian/esp/v5.1.6/esp-idf/components/freertos /home/brian/esp/v5.1.6/esp-idf/components/hal /home/brian/esp/v5.1.6/esp-idf/components/log /home/brian/esp/v5.1.6/esp-idf/components/bootloader/subproject/main /home/brian/esp/v5.1.6/esp-idf/components/bootloader/subproject/components/micro-ecc /home/brian/esp/v5.1.6/esp-idf/components/newlib /home/brian/esp/v5.1.6/esp-idf/components/partition_table /home/brian/esp/v5.1.6/esp-idf/components/soc /home/brian/esp/v5.1.6/esp-idf/components/spi_flash /home/brian/esp/v5.1.6/esp-idf/components/xtensa
-- Configuring done (2.8s)
-- Generating done (0.0s)
-- Build files have been written to: /home/brian/esp/v5.1.6/esp-idf/examples/get-started/blink/build/bootloader
ninja: build stopped: subcommand failed.
ninja failed with exit code 1, output of the command is in the /home/brian/esp/v5.1.6/esp-idf/examples/get-started/blink/build/log/idf_py_stderr_output_1927181 and /home/brian/esp/v5.1.6/esp-idf/examples/get-started/blink/build/log/idf_py_stdout_output_19271(idf5.1_py3.12_env) brian@FA002502:~(idf5.1_py3.12_env) brian@FA002502:~/esp/v(idf5.1_py3.12_env) brian@F(idf5.1_py3.12_env(idf5.1_py3.(idf5.1_p(id(id(id(idf5.(id(id(idf5.1_py3.12_env) brian@FA002502:~/esp/v5.1.6/esp-idf/examples/get-started/blink$ which xtensa-esp32-elf-gcc
/home/brian/.espressif/tools/xtensa-esp-elf/esp-14.2.0_20241119/xtensa-esp-elf/bin/xtensa-esp32-elf-gcc
(idf5.1_py3.12_env) brian@FA002502:~/esp/v5.1.6/esp-idf/examples/get-started/blink$ echo $PATH
/home/brian/.espressif/python_env/idf5.1_py3.12_env/bin:/home/brian/.espressif/:/home/brian/.espressif/bin:/home/brian/.espressif/ccache-4.10.2-windows-x86_64:/home/brian/.espressif/dfu-util-0.11-win64:/home/brian/.espressif/esp32ulp-elf/bin:/home/brian/.espressif/openocd-esp32/bin:/home/brian/.espressif/python_env/idf5.1_py3.12_env/bin:/home/brian/.espressif/python_env/idf5.4_py3.12_env/bin:/home/brian/.espressif/qemu/bin:/home/brian/.espressif/riscv32-esp-elf-gdb/bin:/home/brian/.espressif/riscv32-esp-elf/bin:/home/brian/.espressif/tools/cmake/3.30.2/cmake-3.30.2-linux-x86_64/bin:/home/brian/.espressif/tools/esp-clang/15.0.0-23786128ae/esp-clang/bin:/home/brian/.espressif/tools/esp-clang/15.0.0-23786128ae/esp-clang/riscv32-esp-elf/bin:/home/brian/.espressif/tools/esp-clang/15.0.0-23786128ae/esp-clang/xtensa-esp32-elf/bin:/home/brian/.espressif/tools/esp-clang/15.0.0-23786128ae/esp-clang/xtensa-esp32s2-elf/bin:/home/brian/.espressif/tools/esp-clang/15.0.0-23786128ae/esp-clang/xtensa-esp32s3-elf/bin:/home/brian/.espressif/tools/esp-clang/esp-18.1.2_20240912/esp-clang/bin:/home/brian/.espressif/tools/esp-clang/esp-19.1.2_20250312/esp-clang/bin:/home/brian/.espressif/tools/esp32ulp-elf/2.35_20220830/esp32ulp-elf/bin:/home/brian/.espressif/tools/esp32ulp-elf/2.35_20220830/esp32ulp-elf/esp32ulp-elf/bin:/home/brian/.espressif/tools/esp32ulp-elf/2.38_20240113/esp32ulp-elf/bin:/home/brian/.espressif/tools/esp32ulp-elf/2.38_20240113/esp32ulp-elf/esp32ulp-elf/bin:/home/brian/.espressif/tools/openocd-esp32/v0.12.0-esp32-20241016/openocd-esp32/bin:/home/brian/.espressif/tools/openocd-esp32/v0.12.0-esp32-20250422/openocd-esp32/bin:/home/brian/.espressif/tools/python/v5.5/venv/bin:/home/brian/.espressif/tools/qemu-riscv32/esp_develop_9.0.0_20240606/qemu/bin:/home/brian/.espressif/tools/qemu-xtensa/esp_develop_9.0.0_20240606/qemu/bin:/home/brian/.espressif/tools/riscv32-esp-elf-gdb/12.1_20231023/riscv32-esp-elf-gdb/bin:/home/brian/.espressif/tools/riscv32-esp-elf-gdb/14.2_20240403/riscv32-esp-elf-gdb/bin:/home/brian/.espressif/tools/riscv32-esp-elf-gdb/16.2_20250324/riscv32-esp-elf-gdb/bin:/home/brian/.espressif/tools/riscv32-esp-elf/esp-12.2.0_20230208/riscv32-esp-elf/bin:/home/brian/.espressif/tools/riscv32-esp-elf/esp-12.2.0_20230208/riscv32-esp-elf/riscv32-esp-elf/bin:/home/brian/.espressif/tools/riscv32-esp-elf/esp-14.2.0_20241119/riscv32-esp-elf/bin:/home/brian/.espressif/tools/riscv32-esp-elf/esp-14.2.0_20241119/riscv32-esp-elf/riscv32-esp-elf/bin:/home/brian/.espressif/tools/xtensa-esp-elf-gdb/12.1_20231023/xtensa-esp-elf-gdb/bin:/home/brian/.espressif/tools/xtensa-esp-elf-gdb/14.2_20240403/xtensa-esp-elf-gdb/bin:/home/brian/.espressif/tools/xtensa-esp-elf-gdb/16.2_20250324/xtensa-esp-elf-gdb/bin:/home/brian/.espressif/tools/xtensa-esp-elf/esp-14.2.0_20241119/xtensa-esp-elf/bin:/home/brian/.espressif/tools/xtensa-esp-elf/esp-14.2.0_20241119/xtensa-esp-elf/xtensa-esp-elf/bin:/home/brian/.espressif/tools/xtensa-esp32-elf/esp-12.2.0_20230208/xtensa-esp32-elf/bin:/home/brian/.espressif/tools/xtensa-esp32-elf/esp-12.2.0_20230208/xtensa-esp32-elf/xtensa-esp32-elf/bin:/home/brian/.espressif/tools/xtensa-esp32s2-elf/esp-12.2.0_20230208/xtensa-esp32s2-elf/bin:/home/brian/.espressif/tools/xtensa-esp32s2-elf/esp-12.2.0_20230208/xtensa-esp32s2-elf/xtensa-esp32s2-elf/bin:/home/brian/.espressif/tools/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin:/home/brian/.espressif/tools/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/xtensa-esp32s3-elf/bin:/home/brian/.espressif/xtensa-esp-elf-gdb/bin:/home/brian/.espressif/xtensa-esp32-elf/bin:/home/brian/.espressif/xtensa-esp32s2-elf/bin:/home/brian/.espressif/xtensa-esp32s3-elf/bin:/home/brian/.espressif/esp-clang/bin:/usr/bin/git:/home/brian/.espressif/python_env/idf5.1_py3.12_env/bin:/home/brian/.nvm/versions/node/v20.16.0/bin:/home/brian/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin
(idf5.1_py3.12_env) brian@FA002502:~/esp/v5.1.6/esp-idf/examples/get-started/blink$

Please consider that i previously installed v5.5 using EIM and this is already added in eim_idf.json.

Interesting enough, seems that xtensa-esp32-elf-gcc used for the EIM provided version is totally the same:

brian@FA002502:~$ cd .espressif/
brian@FA002502:~/.espressif$ cd tools/
brian@FA002502:~/.espressif/tools$ ls
activate_idf_5.1.6.sh  espidf.constraints.v5.5.txt  riscv32-esp-elf-gdb
activate_idf_5.4.2.sh  esp-rom-elfs                 xtensa-esp32-elf
activate_idf_v5.5.sh   ninja                        xtensa-esp32s2-elf
cmake                  openocd-esp32                xtensa-esp32s3-elf
eim_idf.json           python                       xtensa-esp-elf
esp32ulp-elf           qemu-riscv32                 xtensa-esp-elf-gdb
esp-clang              qemu-xtensa
esp-clang-libs         riscv32-esp-elf
brian@FA002502:~/.espressif/tools$ source activate_idf_v5.5.sh 
Added environment variable ESP_IDF_VERSION = 5.5
Added environment variable IDF_TOOLS_PATH = /home/brian/.espressif/tools
Added environment variable IDF_PATH = /home/brian/.espressif/v5.5/esp-idf
Added environment variable ESP_ROM_ELF_DIR = /home/brian/.espressif/tools/esp-rom-elfs/20241011
Added environment variable OPENOCD_SCRIPTS = /home/brian/.espressif/tools/openocd-esp32/v0.12.0-esp32-20250422/openocd-esp32/share/openocd/scripts
Added environment variable IDF_PYTHON_ENV_PATH = /home/brian/.espressif/tools/python/v5.5/venv
Added proper directory to PATH
Activated virtual environment at /home/brian/.espressif/tools/python/v5.5/venv
Environment setup complete for the current shell session.
These changes will be lost when you close this terminal.
You are now using IDF version 5.5.
(venv) brian@FA002502:~/.espressif/tools$ cd $IDF_PATH/examples/get-started/blink/
(venv) brian@FA002502:~/.espressif/v5.5/esp-idf/examples/get-started/blink$ ls
CMakeLists.txt      sdkconfig.defaults.esp32     sdkconfig.defaults.esp32h2
main                sdkconfig.defaults.esp32c3   sdkconfig.defaults.esp32p4
pytest_blink.py     sdkconfig.defaults.esp32c5   sdkconfig.defaults.esp32s2
README.md           sdkconfig.defaults.esp32c6   sdkconfig.defaults.esp32s3
sdkconfig.defaults  sdkconfig.defaults.esp32c61
(venv) brian@FA002502:~/.espressif/v5.5/esp-idf/examples/get-started/blink$ idf.py build
Executing action: all (aliases: build)
Running cmake in directory /home/brian/.espressif/v5.5/esp-idf/examples/get-started/blink/build
Executing "cmake -G Ninja -DPYTHON_DEPS_CHECKED=1 -DPYTHON=/home/brian/.espressif/tools/python/v5.5/venv/bin/python3 -DESP_PLATFORM=1 -DCCACHE_ENABLE=0 /home/brian/.espressif/v5.5/esp-idf/examples/get-started/blink"...
-- IDF_TARGET not set, using default target: esp32
-- Found Git: /usr/bin/git (found version "2.43.0")
-- Minimal build - ON
-- The C compiler identification is GNU 14.2.0
-- The CXX compiler identification is GNU 14.2.0
-- The ASM compiler identification is GNU
-- Found assembler: /home/brian/.espressif/tools/xtensa-esp-elf/esp-14.2.0_20241119/xtensa-esp-elf/bin/xtensa-esp32-elf-gcc
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /home/brian/.espressif/tools/xtensa-esp-elf/esp-14.2.0_20241119/xtensa-esp-elf/bin/xtensa-esp32-elf-gcc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /home/brian/.espressif/tools/xtensa-esp-elf/esp-14.2.0_20241119/xtensa-esp-elf/bin/xtensa-esp32-elf-g++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Building ESP-IDF components for target esp32
NOTICE: Dependencies lock doesn't exist, solving dependencies.
..NOTICE: Updating lock file at /home/brian/.espressif/v5.5/esp-idf/examples/get-started/blink/dependencies.lock
NOTICE: Processing 2 dependencies:
NOTICE: [1/2] espressif/led_strip (3.0.1~1)
NOTICE: [2/2] idf (5.5.0)
-- Project sdkconfig file /home/brian/.espressif/v5.5/esp-idf/examples/get-started/blink/sdkconfig
Loading defaults file /home/brian/.espressif/v5.5/esp-idf/examples/get-started/blink/sdkconfig.defaults...
Loading defaults file /home/brian/.espressif/v5.5/esp-idf/examples/get-started/blink/sdkconfig.defaults.esp32...
-- Compiler supported targets: xtensa-esp-elf
-- Found Python3: /home/brian/.espressif/tools/python/v5.5/venv/bin/python3 (found version "3.12.3") found components: Interpreter
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
-- Performing Test C_COMPILER_SUPPORTS_WFORMAT_SIGNEDNESS
-- Performing Test C_COMPILER_SUPPORTS_WFORMAT_SIGNEDNESS - Success
-- USING O3
-- App "blink" version: v5.5
-- Adding linker script /home/brian/.espressif/v5.5/esp-idf/examples/get-started/blink/build/esp-idf/esp_system/ld/memory.ld
-- Adding linker script /home/brian/.espressif/v5.5/esp-idf/examples/get-started/blink/build/esp-idf/esp_system/ld/sections.ld.in
-- Adding linker script /home/brian/.espressif/v5.5/esp-idf/components/esp_rom/esp32/ld/esp32.rom.ld
-- Adding linker script /home/brian/.espressif/v5.5/esp-idf/components/esp_rom/esp32/ld/esp32.rom.api.ld
-- Adding linker script /home/brian/.espressif/v5.5/esp-idf/components/esp_rom/esp32/ld/esp32.rom.libgcc.ld
-- Adding linker script /home/brian/.espressif/v5.5/esp-idf/components/esp_rom/esp32/ld/esp32.rom.newlib-data.ld
-- Adding linker script /home/brian/.espressif/v5.5/esp-idf/components/esp_rom/esp32/ld/esp32.rom.syscalls.ld
-- Adding linker script /home/brian/.espressif/v5.5/esp-idf/components/esp_rom/esp32/ld/esp32.rom.libc-funcs.ld
-- Adding linker script /home/brian/.espressif/v5.5/esp-idf/components/esp_rom/esp32/ld/esp32.rom.newlib-reent-funcs.ld
-- Adding linker script /home/brian/.espressif/v5.5/esp-idf/components/soc/esp32/ld/esp32.peripherals.ld
-- Components: app_update bootloader bootloader_support cxx efuse esp_app_format esp_bootloader_format esp_common esp_driver_bitscrambler esp_driver_gpio esp_driver_rmt esp_driver_spi esp_hw_support esp_mm esp_partition esp_pm esp_rom esp_security esp_system esp_timer espressif__led_strip esptool_py freertos hal heap log main mbedtls newlib partition_table pthread soc spi_flash xtensa
-- Component paths: /home/brian/.espressif/v5.5/esp-idf/components/app_update /home/brian/.espressif/v5.5/esp-idf/components/bootloader /home/brian/.espressif/v5.5/esp-idf/components/bootloader_support /home/brian/.espressif/v5.5/esp-idf/components/cxx /home/brian/.espressif/v5.5/esp-idf/components/efuse /home/brian/.espressif/v5.5/esp-idf/components/esp_app_format /home/brian/.espressif/v5.5/esp-idf/components/esp_bootloader_format /home/brian/.espressif/v5.5/esp-idf/components/esp_common /home/brian/.espressif/v5.5/esp-idf/components/esp_driver_bitscrambler /home/brian/.espressif/v5.5/esp-idf/components/esp_driver_gpio /home/brian/.espressif/v5.5/esp-idf/components/esp_driver_rmt /home/brian/.espressif/v5.5/esp-idf/components/esp_driver_spi /home/brian/.espressif/v5.5/esp-idf/components/esp_hw_support /home/brian/.espressif/v5.5/esp-idf/components/esp_mm /home/brian/.espressif/v5.5/esp-idf/components/esp_partition /home/brian/.espressif/v5.5/esp-idf/components/esp_pm /home/brian/.espressif/v5.5/esp-idf/components/esp_rom /home/brian/.espressif/v5.5/esp-idf/components/esp_security /home/brian/.espressif/v5.5/esp-idf/components/esp_system /home/brian/.espressif/v5.5/esp-idf/components/esp_timer /home/brian/.espressif/v5.5/esp-idf/examples/get-started/blink/managed_components/espressif__led_strip /home/brian/.espressif/v5.5/esp-idf/components/esptool_py /home/brian/.espressif/v5.5/esp-idf/components/freertos /home/brian/.espressif/v5.5/esp-idf/components/hal /home/brian/.espressif/v5.5/esp-idf/components/heap /home/brian/.espressif/v5.5/esp-idf/components/log /home/brian/.espressif/v5.5/esp-idf/examples/get-started/blink/main /home/brian/.espressif/v5.5/esp-idf/components/mbedtls /home/brian/.espressif/v5.5/esp-idf/components/newlib /home/brian/.espressif/v5.5/esp-idf/components/partition_table /home/brian/.espressif/v5.5/esp-idf/components/pthread /home/brian/.espressif/v5.5/esp-idf/components/soc /home/brian/.espressif/v5.5/esp-idf/components/spi_flash /home/brian/.espressif/v5.5/esp-idf/components/xtensa
-- Configuring done (12.9s)
-- Generating done (0.1s)
-- Build files have been written to: /home/brian/.espressif/v5.5/esp-idf/examples/get-started/blink/build
Running ninja in directory /home/brian/.espressif/v5.5/esp-idf/examples/get-started/blink/build
Executing "ninja all"...
[16/505] Generating ../../partition_table/partition-table.bin
Partition table binary generated. Contents:
*******************************************************************************
# ESP-IDF Partition Table
# Name, Type, SubType, Offset, Size, Flags
nvs,data,nvs,0x9000,24K,
phy_init,data,phy,0xf000,4K,
factory,app,factory,0x10000,1M,
*******************************************************************************
[497/505] Performing configure step for 'bootloader'
-- Found Git: /usr/bin/git (found version "2.43.0")
-- Minimal build - OFF
-- The C compiler identification is GNU 14.2.0
-- The CXX compiler identification is GNU 14.2.0
-- The ASM compiler identification is GNU
-- Found assembler: /home/brian/.espressif/tools/xtensa-esp-elf/esp-14.2.0_20241119/xtensa-esp-elf/bin/xtensa-esp32-elf-gcc
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /home/brian/.espressif/tools/xtensa-esp-elf/esp-14.2.0_20241119/xtensa-esp-elf/bin/xtensa-esp32-elf-gcc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /home/brian/.espressif/tools/xtensa-esp-elf/esp-14.2.0_20241119/xtensa-esp-elf/bin/xtensa-esp32-elf-g++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Building ESP-IDF components for target esp32
-- Project sdkconfig file /home/brian/.espressif/v5.5/esp-idf/examples/get-started/blink/sdkconfig
-- Compiler supported targets: xtensa-esp-elf
-- Adding linker script /home/brian/.espressif/v5.5/esp-idf/components/soc/esp32/ld/esp32.peripherals.ld
-- Bootloader project name: "bootloader" version: 1
-- Adding linker script /home/brian/.espressif/v5.5/esp-idf/components/esp_rom/esp32/ld/esp32.rom.ld
-- Adding linker script /home/brian/.espressif/v5.5/esp-idf/components/esp_rom/esp32/ld/esp32.rom.api.ld
-- Adding linker script /home/brian/.espressif/v5.5/esp-idf/components/esp_rom/esp32/ld/esp32.rom.libgcc.ld
-- Adding linker script /home/brian/.espressif/v5.5/esp-idf/components/esp_rom/esp32/ld/esp32.rom.libc-funcs.ld
-- Adding linker script /home/brian/.espressif/v5.5/esp-idf/components/bootloader/subproject/main/ld/esp32/bootloader.ld
-- Adding linker script /home/brian/.espressif/v5.5/esp-idf/components/bootloader/subproject/main/ld/esp32/bootloader.rom.ld
-- Components: bootloader bootloader_support efuse esp_app_format esp_bootloader_format esp_common esp_hw_support esp_rom esp_security esp_system esptool_py freertos hal log main micro-ecc newlib partition_table soc spi_flash xtensa
-- Component paths: /home/brian/.espressif/v5.5/esp-idf/components/bootloader /home/brian/.espressif/v5.5/esp-idf/components/bootloader_support /home/brian/.espressif/v5.5/esp-idf/components/efuse /home/brian/.espressif/v5.5/esp-idf/components/esp_app_format /home/brian/.espressif/v5.5/esp-idf/components/esp_bootloader_format /home/brian/.espressif/v5.5/esp-idf/components/esp_common /home/brian/.espressif/v5.5/esp-idf/components/esp_hw_support /home/brian/.espressif/v5.5/esp-idf/components/esp_rom /home/brian/.espressif/v5.5/esp-idf/components/esp_security /home/brian/.espressif/v5.5/esp-idf/components/esp_system /home/brian/.espressif/v5.5/esp-idf/components/esptool_py /home/brian/.espressif/v5.5/esp-idf/components/freertos /home/brian/.espressif/v5.5/esp-idf/components/hal /home/brian/.espressif/v5.5/esp-idf/components/log /home/brian/.espressif/v5.5/esp-idf/components/bootloader/subproject/main /home/brian/.espressif/v5.5/esp-idf/components/bootloader/subproject/components/micro-ecc /home/brian/.espressif/v5.5/esp-idf/components/newlib /home/brian/.espressif/v5.5/esp-idf/components/partition_table /home/brian/.espressif/v5.5/esp-idf/components/soc /home/brian/.espressif/v5.5/esp-idf/components/spi_flash /home/brian/.espressif/v5.5/esp-idf/components/xtensa
-- Configuring done (2.0s)
-- Generating done (0.0s)
-- Build files have been written to: /home/brian/.espressif/v5.5/esp-idf/examples/get-started/blink/build/bootloader
[117/118] Generating binary image from built executable
esptool.py v4.9.0
Creating esp32 image...
Merged 2 ELF sections
Successfully created esp32 image.
Generated /home/brian/.espressif/v5.5/esp-idf/examples/get-started/blink/build/bootloader/bootloader.bin
[118/118] cd /home/brian/.espressif/v5.../blink/build/bootloader/bootloader.bin
Bootloader binary size 0x6680 bytes. 0x980 bytes (8%) free.
[504/505] Generating binary image from built executable
esptool.py v4.9.0
Creating esp32 image...
Merged 2 ELF sections
Successfully created esp32 image.
Generated /home/brian/.espressif/v5.5/esp-idf/examples/get-started/blink/build/blink.bin
[505/505] cd /home/brian/.espressif/v5...ples/get-started/blink/build/blink.bin
blink.bin binary size 0x270c0 bytes. Smallest app partition is 0x100000 bytes. 0xd8f40 bytes (85%) free.

Project build complete. To flash, run:
 idf.py flash
or
 idf.py -p PORT flash
or
 python -m esptool --chip esp32 -b 460800 --before default_reset --after hard_reset write_flash --flash_mode dio --flash_size 2MB --flash_freq 40m 0x1000 build/bootloader/bootloader.bin 0x8000 build/partition_table/partition-table.bin 0x10000 build/blink.bin
or from the "/home/brian/.espressif/v5.5/esp-idf/examples/get-started/blink/build" directory
 python -m esptool --chip esp32 -b 460800 --before default_reset --after hard_reset write_flash "@flash_args"
(venv) brian@FA002502:~/.espressif/v5.5/esp-idf/examples/get-started/blink$ echo $PATH
/home/brian/.espressif/tools/python/v5.5/venv/bin:/home/brian/.espressif/tools/cmake/3.30.2/cmake-3.30.2-linux-x86_64/bin:/home/brian/.espressif/tools/esp-clang/esp-19.1.2_20250312/esp-clang/bin:/home/brian/.espressif/tools/esp-rom-elfs/20241011/:/home/brian/.espressif/tools/esp32ulp-elf/2.38_20240113/esp32ulp-elf/bin:/home/brian/.espressif/tools/esp32ulp-elf/2.38_20240113/esp32ulp-elf/esp32ulp-elf/bin:/home/brian/.espressif/tools/ninja/1.12.1/:/home/brian/.espressif/tools/openocd-esp32/v0.12.0-esp32-20250422/openocd-esp32/bin:/home/brian/.espressif/tools/qemu-riscv32/esp_develop_9.0.0_20240606/qemu/bin:/home/brian/.espressif/tools/qemu-xtensa/esp_develop_9.0.0_20240606/qemu/bin:/home/brian/.espressif/tools/riscv32-esp-elf-gdb/16.2_20250324/riscv32-esp-elf-gdb/bin:/home/brian/.espressif/tools/riscv32-esp-elf/esp-14.2.0_20241119/riscv32-esp-elf/bin:/home/brian/.espressif/tools/riscv32-esp-elf/esp-14.2.0_20241119/riscv32-esp-elf/riscv32-esp-elf/bin:/home/brian/.espressif/tools/xtensa-esp-elf-gdb/16.2_20250324/xtensa-esp-elf-gdb/bin:/home/brian/.espressif/tools/xtensa-esp-elf/esp-14.2.0_20241119/xtensa-esp-elf/bin:/home/brian/.espressif/tools/xtensa-esp-elf/esp-14.2.0_20241119/xtensa-esp-elf/xtensa-esp-elf/bin:/home/brian/.espressif/tools/python/v5.5/venv/bin:/home/brian/.nvm/versions/node/v20.16.0/bin:/home/brian/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin
(venv) brian@FA002502:~/.espressif/v5.5/esp-idf/examples/get-started/blink$ which xtensa-esp32-elf-gcc
/home/brian/.espressif/tools/xtensa-esp-elf/esp-14.2.0_20241119/xtensa-esp-elf/bin/xtensa-esp32-elf-gcc
(venv) brian@FA002502:~/.espressif/v5.5/esp-idf/examples/get-started/blink$ 


Copy link
Collaborator

@Fabricio-ESP Fabricio-ESP left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Incorrect post

@Fabricio-ESP Fabricio-ESP self-requested a review August 4, 2025 09:17
@Hahihula Hahihula force-pushed the EIM-79-discovery branch 6 times, most recently from 07d7535 to 4e42c60 Compare August 7, 2025 10:01
IDF installed using eim or eclipse can be discovered

parsing function for esp_idf.json file added

POSIX discovery mvp

updated activation script creation

improved export paths in old version discovery

added tool_set.json file parsing to the discovery

returned the parse_tool_set_config back to working state

updated according to changes in the scripts location

Documentation update to add the discovery command

reworked the vscode discovery according to new approach to isntallation

removed unused code

updated the discovery command help

Fixed discovery tools paths

improved windows debugging part of discovery and venv creation

creating venv using proper python

discovery disabled for vscode installed IDF on windows
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants