INFO Reading configuration /config/esphome/mailbox.yaml...
INFO Generating C++ source...
INFO Compiling app...
Processing mailbox (board: nodemcuv2; framework: arduino; platform: platformio/espressif8266 @ 3.2.0)
--------------------------------------------------------------------------------
HARDWARE: ESP8266 80MHz, 80KB RAM, 4MB Flash
LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
Dependency Graph
|-- <ESPAsyncTCP-esphome> 1.2.3
|-- <ESPAsyncWebServer-esphome> 2.1.0
| |-- <ESPAsyncTCP-esphome> 1.2.3
| |-- <Hash> 1.0
| |-- <ESP8266WiFi> 1.0
|-- <DNSServer> 1.1.1
|-- <ESP8266WiFi> 1.0
|-- <ESP8266mDNS> 1.2
Compiling /data/mailbox/.pioenvs/mailbox/src/esphome/components/api/api_connection.cpp.o
sh: 1: xtensa-lx106-elf-g++: not found
Compiling /data/mailbox/.pioenvs/mailbox/src/esphome/components/api/api_frame_helper.cpp.o
sh: 1: xtensa-lx106-elf-g++: not found
Compiling /data/mailbox/.pioenvs/mailbox/src/esphome/components/api/api_pb2.cpp.o
sh: 1: xtensa-lx106-elf-g++: not found
*** [/data/mailbox/.pioenvs/mailbox/src/esphome/components/api/api_connection.cpp.o] Error 127
Compiling /data/mailbox/.pioenvs/mailbox/src/esphome/components/api/api_pb2_service.cpp.o
*** [/data/mailbox/.pioenvs/mailbox/src/esphome/components/api/api_frame_helper.cpp.o] Error 127
*** [/data/mailbox/.pioenvs/mailbox/src/esphome/components/api/api_pb2.cpp.o] Error 127
sh: 1: xtensa-lx106-elf-g++: not found
*** [/data/mailbox/.pioenvs/mailbox/src/esphome/components/api/api_pb2_service.cpp.o] Error 127
========================== [FAILED] Took 6.99 seconds ==========================
I am running ESPHome as Addon on my raspberry pi 3+
-----------------------------------------------------------
Add-on: ESPHome
ESPHome add-on for intelligently managing all your ESP8266/ESP32 devices
-----------------------------------------------------------
Add-on version: 2022.3.1
You are running the latest version of this add-on.
System: Home Assistant OS 7.5 (aarch64 / raspberrypi3-64)
Home Assistant Core: 2022.3.6
Home Assistant Supervisor: 2022.03.5
-----------------------------------------------------------
Para los que tienen arquitectura de 64 bits esto soluciono mi problema: Edite el archivo “util.py”, primero realice la bĂşsqueda dentro de mi sistema de archivos y me devuelve 3 resultados, como no supe cuál de los tres es el que debĂa modificar, modifique los tres:
def get_systype():
system = platform.system().lower() arch = platform.machine().lower() if system == “windows”: if not arch: # issue #4353 arch = “x86_” + platform.architecture()[0] if “x86” in arch: arch = “amd64” if “64” in arch else “x86” if arch == “aarch64”: if platform.architecture()[0]
== “32bit”:
I suddenly started getting this failure with a containerized esphome on a Raspberry Pi4B. Turns out a recent update to my Pi switched from the 32-bit to 64-bit kernel. So although this is not your exact scenario I am adding this update to help others understand their possible root cause and the easy fix. My existing Docker installation was still using the platform , armhf, for Docker images. Once the Pi kernel switched from kernel7l to kernel8 esphome would not correctly identify the compiler to use for the build. The resolution is to switch back to the 32-bit kernel by placing the string arm_64bit=0 at the top of the /boot/config.txt file and reboot the pi. esphome will be back to normal after that.