kevjs1982
(Kevjs1982)
December 14, 2022, 1:48pm
1
I’ve updated ESPHome on my Raspberry Pi this morning to 2022.12 and am getting the error:-
sh: 1: xtensa-esp32-elf-g++: not found
Uninstalling and reinstalling the ESPHome Addon from the Home Add-on Store hasn’t helped - looks like it (?) downloads and installs OK?
INFO [email protected] +2021r2-patch3 has been installed!
but isn’t accessible?
Anyone know how to fix this / what debug steps to take?
Running on
Home Assistant 2022.11.2
Supervisor 2022.11.2
Operating System 9.3
Frontend 20221108.0 - latest
Full logs:-
INFO Reading configuration /config/esphome/vandoorne.yaml...
INFO Generating C++ source...
INFO Compiling app...
Processing vandoorne (board: nodemcu-32s; framework: arduino; platform: platformio/espressif32 @ 5.2.0)
--------------------------------------------------------------------------------
Platform Manager: Installing platformio/espressif32 @ 5.2.0
INFO Installing platformio/espressif32 @ 5.2.0
Downloading [####################################] 100%
Unpacking [####################################] 100%
Platform Manager: [email protected] has been installed!
INFO [email protected] has been installed!
Tool Manager: Installing espressif/toolchain-xtensa-esp32 @ 8.4.0+2021r2-patch3
INFO Installing espressif/toolchain-xtensa-esp32 @ 8.4.0+2021r2-patch3
Downloading [####################################] 100%
Unpacking [####################################] 100%
Tool Manager: [email protected] +2021r2-patch3 has been installed!
INFO [email protected] +2021r2-patch3 has been installed!
Tool Manager: Installing platformio/framework-arduinoespressif32 @ ~3.20005.0
INFO Installing platformio/framework-arduinoespressif32 @ ~3.20005.0
Downloading [####################################] 100%
Unpacking [####################################] 100%
Tool Manager: [email protected] has been installed!
INFO [email protected] has been installed!
Tool Manager: Installing platformio/tool-esptoolpy @ ~1.40201.0
INFO Installing platformio/tool-esptoolpy @ ~1.40201.0
Downloading [####################################] 100%
Unpacking [####################################] 100%
Tool Manager: [email protected] has been installed!
INFO [email protected] has been installed!
Tool Manager: Installing platformio/tool-scons @ ~4.40400.0
INFO Installing platformio/tool-scons @ ~4.40400.0
Downloading [####################################] 100%
Unpacking [####################################] 100%
Tool Manager: [email protected] has been installed!
INFO [email protected] has been installed!
HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash
- toolchain-xtensa-esp32 @ 8.4.0+2021r2-patch3
LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
Dependency Graph
|-- WiFi @ 2.0.0
|-- ESPmDNS @ 2.0.0
|-- Update @ 2.0.0
Compiling /data/vandoorne/.pioenvs/vandoorne/src/esphome/components/api/api_connection.cpp.o
sh: 1: xtensa-esp32-elf-g++: not found
Compiling /data/vandoorne/.pioenvs/vandoorne/src/esphome/components/api/api_frame_helper.cpp.o
sh: 1: xtensa-esp32-elf-g++: not found
Compiling /data/vandoorne/.pioenvs/vandoorne/src/esphome/components/api/api_pb2.cpp.o
sh: 1: xtensa-esp32-elf-g++: not found
*** [/data/vandoorne/.pioenvs/vandoorne/src/esphome/components/api/api_connection.cpp.o] Error 127
Compiling /data/vandoorne/.pioenvs/vandoorne/src/esphome/components/api/api_pb2_service.cpp.o
*** [/data/vandoorne/.pioenvs/vandoorne/src/esphome/components/api/api_frame_helper.cpp.o] Error 127
*** [/data/vandoorne/.pioenvs/vandoorne/src/esphome/components/api/api_pb2.cpp.o] Error 127
sh: 1: xtensa-esp32-elf-g++: not found
*** [/data/vandoorne/.pioenvs/vandoorne/src/esphome/components/api/api_pb2_service.cpp.o] Error 127
========================= [FAILED] Took 222.84 seconds =========================
kevjs1982
(Kevjs1982)
December 14, 2022, 2:33pm
2
Looks like ESPHome have broke it and don’t care about fixing it
opened 07:37AM - 14 Dec 22 UTC
### The problem
Compile fails with "sh: 1: xtensa-esp32-elf-g++: not found"
…
### Which version of ESPHome has the issue?
2022.12.0
### What type of installation are you using?
Home Assistant Add-on
### Which version of Home Assistant has the issue?
2022.12.5
### What platform are you using?
ESP32
### Board
esp32dev
### Component causing the issue
_No response_
### Example YAML snippet
_No response_
### Anything in the logs that might be useful for us?
```txt
Platform Manager: Installing platformio/espressif32 @ 5.2.0
INFO Installing platformio/espressif32 @ 5.2.0
Downloading [####################################] 100%
Unpacking [####################################] 100%
Platform Manager: [email protected] has been installed!
INFO [email protected] has been installed!
Tool Manager: Installing espressif/toolchain-xtensa-esp32 @ 8.4.0+2021r2-patch3
INFO Installing espressif/toolchain-xtensa-esp32 @ 8.4.0+2021r2-patch3
Downloading [####################################] 100%
Unpacking [####################################] 100%
Tool Manager: [email protected] +2021r2-patch3 has been installed!
INFO [email protected] +2021r2-patch3 has been installed!
Tool Manager: Installing platformio/framework-arduinoespressif32 @ ~3.20005.0
INFO Installing platformio/framework-arduinoespressif32 @ ~3.20005.0
Downloading [####################################] 100%
Unpacking [####################################] 100%
Tool Manager: [email protected] has been installed!
INFO [email protected] has been installed!
Tool Manager: Installing platformio/tool-esptoolpy @ ~1.40201.0
INFO Installing platformio/tool-esptoolpy @ ~1.40201.0
Downloading [####################################] 100%
Unpacking [####################################] 100%
Tool Manager: [email protected] has been installed!
INFO [email protected] has been installed!
HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash
- toolchain-xtensa-esp32 @ 8.4.0+2021r2-patch3
LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
Dependency Graph
|-- WiFi @ 2.0.0
|-- ESPmDNS @ 2.0.0
|-- Update @ 2.0.0
Compiling /data/luftkvalitet1/.pioenvs/luftkvalitet1/src/esphome/components/api/api_connection.cpp.o
sh: 1: xtensa-esp32-elf-g++: not found
*** [/data/luftkvalitet1/.pioenvs/luftkvalitet1/src/esphome/components/api/api_connection.cpp.o] Error 127
========================= [FAILED] Took 371.07 seconds =========================
```
### Additional information
_No response_
kevjs1982
(Kevjs1982)
December 16, 2022, 9:22am
3
Turns out it was a bug with the AddOn on all 32bit platforms.
The 2012.12.01 update has resolved this issue.
1 Like
alpat59
February 14, 2023, 11:55pm
4
ESPHome 2022.12.8 installed as HA add-on on Raspberry and I have the same problem
“sh: 1: xtensa-esp32-elf-g++: not found”
Could someone try to fix it ?
Thank you for support
Hi kevjs1982,
You are saying this issue is solved. But can you tell me how? I’m trying to compile on a rapsberrypi in a container, and I’m getting the same error. I pulled the version 2022.12.8 but I still get the same error:
Compiling .pioenvs/ketelmonitor/src/esphome/components/adc/adc_sensor.cpp.o
sh: 1: xtensa-esp32-elf-g++: not found
Any suggestions?
1 Like
dirkmuc
(Dirk)
March 24, 2023, 10:32am
6
Hi,
I have still the issue with:
sh: 1: xtensa-esp32-elf-g++: not found
I am running ESPHome 2023.3.1 under
Home Assistant 2023.3.6
Supervisor 2023.03.2
Operating System 9.5
Frontend 20230309.1 - latest
Does anyone see the same issue? Is there a solution in place?
Thanks for any help!
Dirk
1 Like
42madorna
(Miguel Ángel Adorna Ruiz)
August 9, 2023, 11:33pm
7
Hi, I’m facing this issue too while trying to flash an ESP32C3.
sh: 1: riscv32-esp-elf-g++: not found
Home Assistant 2023.7.1
Supervisor 2023.08.1
Operating System 10.3
Frontend 20230705.1 - latest
1 Like
jaap
(Jaap Spies)
August 25, 2023, 6:12pm
8
The same here with ESPhome 2023.8.2. The solution doesn’t work for me.
Putting back backup ESPhome 2023.7.1 makes no difference.
mortenx
(Mortenx)
November 10, 2023, 4:38pm
9
same problem
with ESP32
but not with 8266
Compiling .pioenvs/esphome-web-6a91e1/src/esphome/components/api/api_connection.cpp.o
sh: 1: xtensa-esp32-elf-g++: not found
Compiling .pioenvs/esphome-web-6a91e1/src/esphome/components/api/api_frame_helper.cpp.o
sh: 1: xtensa-esp32-elf-g++: not found
Compiling .pioenvs/esphome-web-6a91e1/src/esphome/components/api/api_pb2.cpp.o
sh: 1: xtensa-esp32-elf-g++: not found
*** [.pioenvs/esphome-web-6a91e1/src/esphome/components/api/api_connection.cpp.o] Error 127
Compiling .pioenvs/esphome-web-6a91e1/src/esphome/components/api/api_pb2_service.cpp.o
*** [.pioenvs/esphome-web-6a91e1/src/esphome/components/api/api_frame_helper.cpp.o] Error 127
*** [.pioenvs/esphome-web-6a91e1/src/esphome/components/api/api_pb2.cpp.o] Error 127
sh: 1: xtensa-esp32-elf-g++: not found
*** [.pioenvs/esphome-web-6a91e1/src/esphome/components/api/api_pb2_service.cpp.o] Error 127
========================== [FAILED] Took 6.70 seconds ==========================
Core2023.11.0
Supervisor2023.11.0
Operating System11.1
Frontend20231030.1
Same here (only ESP32 broken)
Core2023.11.2
Supervisor2023.11.3
Operating System11.1
Compiling .pioenvs/multiospiti32/src/esphome/components/adc/adc_sensor.cpp.o
sh: 1: xtensa-esp32-elf-g++: not found
Compiling .pioenvs/multiospiti32/src/esphome/components/api/api_connection.cpp.o
sh: 1: xtensa-esp32-elf-g++: not found
Compiling .pioenvs/multiospiti32/src/esphome/components/api/api_frame_helper.cpp.o
sh: 1: xtensa-esp32-elf-g++: not found
*** [.pioenvs/multiospiti32/src/esphome/components/adc/adc_sensor.cpp.o] Error 127
Compiling .pioenvs/multiospiti32/src/esphome/components/api/api_pb2.cpp.o
*** [.pioenvs/multiospiti32/src/esphome/components/api/api_connection.cpp.o] Error 127
*** [.pioenvs/multiospiti32/src/esphome/components/api/api_frame_helper.cpp.o] Error 127
sh: 1: xtensa-esp32-elf-g++: not found
*** [.pioenvs/multiospiti32/src/esphome/components/api/api_pb2.cpp.o] Error 127
========================== [FAILED] Took 5.08 seconds ==========================
ricarva
(Ricardo)
November 15, 2023, 4:17pm
12
Just want to add another voice on here.
This issue seems to have been introduced with ESPHome 2023.11.0.
ricarva
(Ricardo)
November 15, 2023, 4:26pm
13
I’ve reported the issue in ESPHome’s github.
mortenx
(Mortenx)
November 15, 2023, 4:45pm
14
HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash
toolchain-xtensa-esp32 @ 8.4.0+2021r2-patch5
Dependency Graph
|-- AsyncTCP-esphome @ 2.0.1
|-- WiFi @ 2.0.0
|-- FS @ 2.0.0
|-- Update @ 2.0.0
|-- ESPAsyncWebServer-esphome @ 3.1.0
|-- DNSServer @ 2.0.0
|-- ESPmDNS @ 2.0.0
|-- ArduinoJson @ 6.18.5
Compiling .pioenvs/s3/src/esphome/components/binary_sensor/automation.cpp.o
sh: 1: xtensa-esp32-elf-g++: not found
Compiling .pioenvs/s3/src/esphome/components/binary_sensor/binary_sensor.cpp.o
sh: 1: xtensa-esp32-elf-g++: not found
Compiling .pioenvs/s3/src/esphome/components/binary_sensor/filter.cpp.o
sh: 1: xtensa-esp32-elf-g++: not found
*** [.pioenvs/s3/src/esphome/components/binary_sensor/automation.cpp.o] Error 127
Compiling .pioenvs/s3/src/esphome/components/ble_client/automation.cpp.o
*** [.pioenvs/s3/src/esphome/components/binary_sensor/binary_sensor.cpp.o] Error 127
*** [.pioenvs/s3/src/esphome/components/binary_sensor/filter.cpp.o] Error 127
sh: 1: xtensa-esp32-elf-g++: not found
*** [.pioenvs/s3/src/esphome/components/ble_client/automation.cpp.o] Error 127
========================== [FAILED] Took 7.05 seconds ==========================
mortenx
(Mortenx)
November 15, 2023, 6:03pm
15
tested with version: 2023.10.6 then its ok.
problem is in ESPHome 2023.11.0.
bjm
(Brent (the Other Other Kiwi))
June 11, 2024, 2:27am
17
same issue on Current version: 2024.5.5
klavergne
(Kevin LaVergne)
May 8, 2025, 4:20pm
18
Seems like this still isn’t fixed. ESPHome version 2025.4.1
INFO ESPHome 2025.4.1
INFO Reading configuration /config/esphome/bed-sensor.yaml...
INFO Generating C++ source...
INFO Compiling app...
Processing bed-sensor (board: nodemcu-32s; framework: arduino; platform: platformio/[email protected] )
--------------------------------------------------------------------------------
HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash
- toolchain-xtensa-esp32 @ 8.4.0+2021r2-patch5
Dependency Graph
|-- AsyncTCP-esphome @ 2.1.4
|-- WiFi @ 2.0.0
|-- FS @ 2.0.0
|-- Update @ 2.0.0
|-- ESPAsyncWebServer-esphome @ 3.3.0
|-- DNSServer @ 2.0.0
|-- ESPmDNS @ 2.0.0
|-- noise-c @ 0.1.6
Compiling .pioenvs/bed-sensor/src/esphome/components/api/api_connection.cpp.o
sh: 1: xtensa-esp32-elf-g++: not found
Compiling .pioenvs/bed-sensor/src/esphome/components/api/api_frame_helper.cpp.o
*** [.pioenvs/bed-sensor/src/esphome/components/api/api_connection.cpp.o] Error 127
sh: 1: xtensa-esp32-elf-g++: not found
*** [.pioenvs/bed-sensor/src/esphome/components/api/api_frame_helper.cpp.o] Error 127
==========================
[FAILED] Took 4.58 seconds
==========================
Wout1
July 2, 2025, 8:08pm
19
I think this is still a problem.
INFO ESPHome 2025.5.0
INFO Reading configuration /config/test-led.yaml...
INFO Generating C++ source...
INFO Compiling app...
Processing test-led (board: esp32-s3-devkitc-1; framework: arduino; platform: platformio/[email protected] )
--------------------------------------------------------------------------------
HARDWARE: ESP32S3 240MHz, 320KB RAM, 8MB Flash
- toolchain-riscv32-esp @ 8.4.0+2021r2-patch5
- toolchain-xtensa-esp32s3 @ 8.4.0+2021r2-patch5
Dependency Graph
|-- AsyncTCP-esphome @ 2.1.4
|-- WiFi @ 2.0.0
|-- FS @ 2.0.0
|-- Update @ 2.0.0
|-- ESPAsyncWebServer-esphome @ 3.3.0
|-- DNSServer @ 2.0.0
|-- ESPmDNS @ 2.0.0
|-- noise-c @ 0.1.6
Compiling .pioenvs/test-led/src/esphome/components/api/api_connection.cpp.o
sh: 1: xtensa-esp32s3-elf-g++: not found
Compiling .pioenvs/test-led/src/esphome/components/api/api_frame_helper.cpp.o
*** [.pioenvs/test-led/src/esphome/components/api/api_connection.cpp.o] Error 127
sh: 1: xtensa-esp32s3-elf-g++: not found
*** [.pioenvs/test-led/src/esphome/components/api/api_frame_helper.cpp.o] Error 127
========================= [FAILED] Took 16.87 seconds =========================
2 Likes
ovisopa
(Ovisopa)
August 24, 2025, 6:20pm
20
hello everyone. Is there a way to fix it ?
I was compiling a few days ago without any problem, today I updated HA Core, HA OS, ESPHome to the latest, and a few more addons and it seems it does not compile anymore beasue of this issue :
INFO ESPHome 2025.8.0
INFO Reading configuration /config/esphome/led-mosfet-1-esp32.yaml...
INFO Generating C++ source...
INFO Compiling app...
Processing led-mosfet-1-esp32 (board: esp32-s3-devkitc-1; framework: arduino; platform: https://github.com/pioarduino/platform-espressif32/releases/download/54.03.21-2/platform-espressif32.zip)
--------------------------------------------------------------------------------
INFO Package configuration completed successfully
INFO Package configuration completed successfully
HARDWARE: ESP32S3 240MHz, 320KB RAM, 8MB Flash
- framework-arduinoespressif32 @ 3.2.1
- framework-arduinoespressif32-libs @ 5.4.0+sha.858a988d6e
- tool-esptoolpy @ 5.0.2
- tool-mklittlefs @ 3.2.0
- toolchain-xtensa-esp-elf @ 14.2.0+20241119
Dependency Graph
|-- Networking @ 3.2.1
|-- AsyncTCP @ 3.4.5
|-- WiFi @ 3.2.1
|-- FS @ 3.2.1
|-- Update @ 3.2.1
|-- ESPAsyncWebServer @ 3.7.10
|-- ESP32 Async UDP @ 3.2.1
|-- DNSServer @ 3.2.1
|-- ESPmDNS @ 3.2.1
|-- noise-c @ 0.1.10
Compiling .pioenvs/led-mosfet-1-esp32/lib4c5/Network/NetworkClient.cpp.o
sh: 1: xtensa-esp32s3-elf-g++: not found
Compiling .pioenvs/led-mosfet-1-esp32/lib4c5/Network/NetworkEvents.cpp.o
*** [.pioenvs/led-mosfet-1-esp32/lib4c5/Network/NetworkClient.cpp.o] Error 127
sh: 1: xtensa-esp32s3-elf-g++: not found
*** [.pioenvs/led-mosfet-1-esp32/lib4c5/Network/NetworkEvents.cpp.o] Error 127
========================= [FAILED] Took 17.29 seconds =========================
Any Sollution ? Thank you
ovisopa
(Ovisopa)
August 26, 2025, 9:25am
21
I finally fixed it with the help of a developer, and after one more uninstall and reinstall of ESPHome
Here is the full topic for anyone esle struggling with this problem.
opened 05:57AM - 25 Aug 25 UTC
### The problem
here is the log, after I uninstalled ESPHome and reinstalled it… again, I tried to compile but I still get the same errors, and now as it was a fresh install I can see also some error idf related
```
INFO ESPHome 2025.8.0
INFO Reading configuration /config/esphome/led-mosfet-1-esp32.yaml...
INFO Generating C++ source...
INFO Core config or version changed, cleaning build files...
INFO Compiling app...
Processing led-mosfet-1-esp32 (board: esp32-s3-devkitc-1; framework: arduino; platform: https://github.com/pioarduino/platform-espressif32/releases/download/54.03.21-2/platform-espressif32.zip)
--------------------------------------------------------------------------------
Platform Manager: Installing https://github.com/pioarduino/platform-espressif32/releases/download/54.03.21-2/platform-espressif32.zip
INFO Installing https://github.com/pioarduino/platform-espressif32/releases/download/54.03.21-2/platform-espressif32.zip
Downloading [####################################] 100%
Unpacking [####################################] 100%
Platform Manager: [email protected] has been installed!
INFO [email protected] has been installed!
INFO tool-esp_install not installed, installing version https://github.com/pioarduino/esp_install/releases/download/v5.3.1/esp_install-v5.3.1.zip
INFO Installing tool-esp_install version https://github.com/pioarduino/esp_install/releases/download/v5.3.1/esp_install-v5.3.1.zip
Tool Manager: Installing https://github.com/pioarduino/esp_install/releases/download/v5.3.1/esp_install-v5.3.1.zip
INFO Installing https://github.com/pioarduino/esp_install/releases/download/v5.3.1/esp_install-v5.3.1.zip
Downloading [####################################] 100%
Unpacking [####################################] 100%
Tool Manager: [email protected] has been installed!
INFO [email protected] has been installed!
INFO tool-esp_install successfully installed and verified
INFO Package configuration completed successfully
Tool Manager: Installing https://github.com/espressif/arduino-esp32/releases/download/3.2.1/esp32-3.2.1.zip
INFO Installing https://github.com/espressif/arduino-esp32/releases/download/3.2.1/esp32-3.2.1.zip
Downloading [####################################] 100%
Unpacking [####################################] 100%
Tool Manager: [email protected] has been installed!
INFO [email protected] has been installed!
Tool Manager: Installing https://github.com/espressif/esp32-arduino-lib-builder/releases/download/idf-release_v5.4/esp32-arduino-libs-idf-release_v5.4-858a988d-v1.zip
INFO Installing https://github.com/espressif/esp32-arduino-lib-builder/releases/download/idf-release_v5.4/esp32-arduino-libs-idf-release_v5.4-858a988d-v1.zip
Downloading [####################################] 100%
Unpacking [####################################] 100%
Tool Manager: [email protected] +sha.858a988d6e has been installed!
INFO [email protected] +sha.858a988d6e has been installed!
Tool Manager: Installing https://github.com/pioarduino/registry/releases/download/0.0.1/xtensa-esp-elf-14.2.0_20241119.zip
INFO Installing https://github.com/pioarduino/registry/releases/download/0.0.1/xtensa-esp-elf-14.2.0_20241119.zip
Downloading [####################################] 100%
Unpacking [####################################] 100%
Tool Manager: [email protected] +20241119 has been installed!
INFO [email protected] +20241119 has been installed!
Tool Manager: Installing https://github.com/pioarduino/registry/releases/download/0.0.1/esptoolpy-v5.0.2.zip
INFO Installing https://github.com/pioarduino/registry/releases/download/0.0.1/esptoolpy-v5.0.2.zip
Downloading [####################################] 100%
Unpacking [####################################] 100%
Tool Manager: [email protected] has been installed!
INFO [email protected] has been installed!
Tool Manager: Installing https://github.com/pioarduino/registry/releases/download/0.0.1/mklittlefs-3.2.0.zip
INFO Installing https://github.com/pioarduino/registry/releases/download/0.0.1/mklittlefs-3.2.0.zip
Downloading [####################################] 100%
Unpacking [####################################] 100%
Tool Manager: [email protected] has been installed!
INFO [email protected] has been installed!
Tool Manager: Installing platformio/tool-scons @ ~4.40801.0
INFO Installing platformio/tool-scons @ ~4.40801.0
Downloading [####################################] 100%
Unpacking [####################################] 100%
Tool Manager: [email protected] has been installed!
INFO [email protected] has been installed!
Library Manager: Installing ESP32Async/AsyncTCP @ 3.4.5
INFO Installing ESP32Async/AsyncTCP @ 3.4.5
Downloading [####################################] 100%
Unpacking [####################################] 100%
Library Manager: [email protected] has been installed!
INFO [email protected] has been installed!
Library Manager: Installing ESP32Async/ESPAsyncWebServer @ 3.7.10
INFO Installing ESP32Async/ESPAsyncWebServer @ 3.7.10
Downloading [####################################] 100%
Unpacking [####################################] 100%
Library Manager: [email protected] has been installed!
INFO [email protected] has been installed!
Library Manager: Resolving dependencies...
INFO Resolving dependencies...
Library Manager: Installing esphome/noise-c @ 0.1.10
INFO Installing esphome/noise-c @ 0.1.10
Downloading [####################################] 100%
Unpacking [####################################] 100%
Library Manager: [email protected] has been installed!
INFO [email protected] has been installed!
Library Manager: Resolving dependencies...
INFO Resolving dependencies...
Library Manager: Installing esphome/libsodium @ 1.10020.7
INFO Installing esphome/libsodium @ 1.10020.7
Downloading [####################################] 100%
Unpacking [####################################] 100%
Library Manager: [email protected] has been installed!
INFO [email protected] has been installed!
Tool Manager: Installing file:///root/.platformio/tools/tool-esptoolpy
INFO Installing file:///root/.platformio/tools/tool-esptoolpy
Tool Manager: [email protected] has been installed!
INFO [email protected] has been installed!
INFO Tool tool-esptoolpy successfully installed
ERROR Timeout in idf_tools.py after 300s
Tool Manager: Installing file:///root/.platformio/tools/tool-mklittlefs
INFO Installing file:///root/.platformio/tools/tool-mklittlefs
Tool Manager: [email protected] has been installed!
INFO [email protected] has been installed!
INFO Tool tool-mklittlefs successfully installed
INFO Package configuration completed successfully
Timeout in idf_tools.py after 300s
HARDWARE: ESP32S3 240MHz, 320KB RAM, 8MB Flash
- framework-arduinoespressif32 @ 3.2.1
- framework-arduinoespressif32-libs @ 5.4.0+sha.858a988d6e
- tool-esptoolpy @ 5.0.2
- tool-mklittlefs @ 3.2.0
- toolchain-xtensa-esp-elf @ 14.2.0+20241119
Installing Arduino Python dependencies
Dependency Graph
|-- Networking @ 3.2.1
|-- AsyncTCP @ 3.4.5
|-- WiFi @ 3.2.1
|-- FS @ 3.2.1
|-- Update @ 3.2.1
|-- ESPAsyncWebServer @ 3.7.10
|-- ESP32 Async UDP @ 3.2.1
|-- DNSServer @ 3.2.1
|-- ESPmDNS @ 3.2.1
|-- noise-c @ 0.1.10
Compiling .pioenvs/led-mosfet-1-esp32/lib4c5/Network/NetworkClient.cpp.o
sh: 1: xtensa-esp32s3-elf-g++: not found
Compiling .pioenvs/led-mosfet-1-esp32/lib4c5/Network/NetworkEvents.cpp.o
*** [.pioenvs/led-mosfet-1-esp32/lib4c5/Network/NetworkClient.cpp.o] Error 127
sh: 1: xtensa-esp32s3-elf-g++: not found
*** [.pioenvs/led-mosfet-1-esp32/lib4c5/Network/NetworkEvents.cpp.o] Error 127
======================== [FAILED] Took 4520.07 seconds ========================
```
Anyone knows what I should do?
The problem started either after
the last update, or because I had a file using framework tipe: idf , I have changed it now to arduino, but I try to compile a different file, that has no mention about IDF, and it still fails. Now I have deleted the only line type:idf that I had in a single file, to see if it works .. I still wait for it to compile, it seems it works very very slow
it's been 7 minutes and it reached to this line, it's been stuck here in the last 4 minutes
```
INFO ESPHome 2025.8.0
INFO Reading configuration /config/esphome/led-mosfet-1-esp32.yaml...
INFO Generating C++ source...
INFO Compiling app...
Processing led-mosfet-1-esp32 (board: esp32-s3-devkitc-1; framework: arduino; platform: https://github.com/pioarduino/platform-espressif32/releases/download/54.03.21-2/platform-espressif32.zip)
--------------------------------------------------------------------------------
Tool Manager: Installing file:///root/.platformio/tools/toolchain-xtensa-esp-elf
INFO Installing file:///root/.platformio/tools/toolchain-xtensa-esp-elf
Tool Manager: [email protected] +20241119 has been installed!
INFO [email protected] +20241119 has been installed!
INFO Tool toolchain-xtensa-esp-elf successfully installed
INFO Package configuration completed successfully
Tool Manager: Installing https://github.com/pioarduino/registry/releases/download/0.0.1/xtensa-esp-elf-14.2.0_20241119.zip
INFO Installing https://github.com/pioarduino/registry/releases/download/0.0.1/xtensa-esp-elf-14.2.0_20241119.zip
Unpacking [####################################] 100%
Tool Manager: [email protected] +20241119 has been installed!
INFO [email protected] +20241119 has been installed!
Tool Manager: Installing file:///root/.platformio/tools/toolchain-xtensa-esp-elf
INFO Installing file:///root/.platformio/tools/toolchain-xtensa-esp-elf`
```
ESPHome stistics don't look so bad while compiling
```
Add-on CPU usage 0.1 %
Add-on RAM usage 14.2 %
```
RaspberriPi 4 statistics also don't look bad (rpi4-64)
```
Processor 1%
Memory 0.9 GB / 2 GB
```
And now, after 900 seconds, it finished the com[pile process with the same error, but no mention on idf
```
INFO ESPHome 2025.8.0
INFO Reading configuration /config/esphome/led-mosfet-1-esp32.yaml...
INFO Generating C++ source...
INFO Compiling app...
Processing led-mosfet-1-esp32 (board: esp32-s3-devkitc-1; framework: arduino; platform: https://github.com/pioarduino/platform-espressif32/releases/download/54.03.21-2/platform-espressif32.zip)
--------------------------------------------------------------------------------
Tool Manager: Installing file:///root/.platformio/tools/toolchain-xtensa-esp-elf
INFO Installing file:///root/.platformio/tools/toolchain-xtensa-esp-elf
Tool Manager: [email protected] +20241119 has been installed!
INFO [email protected] +20241119 has been installed!
INFO Tool toolchain-xtensa-esp-elf successfully installed
INFO Package configuration completed successfully
Tool Manager: Installing https://github.com/pioarduino/registry/releases/download/0.0.1/xtensa-esp-elf-14.2.0_20241119.zip
INFO Installing https://github.com/pioarduino/registry/releases/download/0.0.1/xtensa-esp-elf-14.2.0_20241119.zip
Unpacking [####################################] 100%
Tool Manager: [email protected] +20241119 has been installed!
INFO [email protected] +20241119 has been installed!
Tool Manager: Installing file:///root/.platformio/tools/toolchain-xtensa-esp-elf
INFO Installing file:///root/.platformio/tools/toolchain-xtensa-esp-elf
Tool Manager: [email protected] +20241119 has been installed!
INFO [email protected] +20241119 has been installed!
INFO Tool toolchain-xtensa-esp-elf successfully installed
INFO Package configuration completed successfully
HARDWARE: ESP32S3 240MHz, 320KB RAM, 8MB Flash
- framework-arduinoespressif32 @ 3.2.1
- framework-arduinoespressif32-libs @ 5.4.0+sha.858a988d6e
- tool-esptoolpy @ 5.0.2
- tool-mklittlefs @ 3.2.0
- toolchain-xtensa-esp-elf @ 14.2.0+20241119
Dependency Graph
|-- Networking @ 3.2.1
|-- AsyncTCP @ 3.4.5
|-- WiFi @ 3.2.1
|-- FS @ 3.2.1
|-- Update @ 3.2.1
|-- ESPAsyncWebServer @ 3.7.10
|-- ESP32 Async UDP @ 3.2.1
|-- DNSServer @ 3.2.1
|-- ESPmDNS @ 3.2.1
|-- noise-c @ 0.1.10
Compiling .pioenvs/led-mosfet-1-esp32/lib4c5/Network/NetworkClient.cpp.o
sh: 1: xtensa-esp32s3-elf-g++: not found
Compiling .pioenvs/led-mosfet-1-esp32/lib4c5/Network/NetworkEvents.cpp.o
*** [.pioenvs/led-mosfet-1-esp32/lib4c5/Network/NetworkClient.cpp.o] Error 127
sh: 1: xtensa-esp32s3-elf-g++: not found
*** [.pioenvs/led-mosfet-1-esp32/lib4c5/Network/NetworkEvents.cpp.o] Error 127
========================= [FAILED] Took 964.89 seconds =========================
```
Any help is appreciated
### Which version of ESPHome has the issue?
2025.8.0
### What type of installation are you using?
Home Assistant Add-on
### What platform are you using?
ESP32
### Component causing the issue
_No response_
### YAML Config
```yaml
```
### Anything in the logs that might be useful for us?
```txt
```
### Additional information
_No response_