|
本人小白,第一次编译固件
不管是树莓派,虚拟机总是出现这个错误
WARNING You're using ESPHome with python 2. Support for python 2 is deprecated and will be removed in 1.15.0. Please reinstall ESPHome with python 3.6 or higher.INFO Reading configuration config/light.yaml...INFO Generating C++ source...INFO Compiling app...INFO Running: platformio run -d config/lightProcessing light (board: nodemcuv2; framework: arduino; platform: [email protected])--------------------------------------------------------------------------------HARDWARE: ESP8266 80MHz, 80KB RAM, 4MB FlashPACKAGES: - framework-arduinoespressif8266 2.20502.0 (2.5.2) - tool-esptool 1.413.0 (4.13) - tool-esptoolpy 1.20600.0 (2.6.0) - toolchain-xtensa 2.100100.200706 (10.1.0)Dependency Graph|-- <ESPAsyncTCP-esphome> 1.2.2| |-- <ESP8266WiFi> 1.0|-- <ESP8266WiFi> 1.0|-- <ESP8266mDNS> 1.2| |-- <ESP8266WiFi> 1.0|-- <ESPAsyncWebServer-esphome> 1.2.6| |-- <ESPAsyncTCP-esphome> 1.2.2| | |-- <ESP8266WiFi> 1.0| |-- <Hash> 1.0| |-- <ESP8266WiFi> 1.0|-- <DNSServer> 1.1.1| |-- <ESP8266WiFi> 1.0Compiling .pioenvs/light/src/esphome/components/api/api_connection.cpp.oCompiling .pioenvs/light/src/esphome/components/api/api_pb2.cpp.oCompiling .pioenvs/light/src/esphome/components/api/api_pb2_service.cpp.oCompiling .pioenvs/light/src/esphome/components/api/api_server.cpp.oIn file included from src/esphome/core/component.h:5, from src/esphome/components/api/proto.h:3, from src/esphome/components/api/api_pb2.h:3, from src/esphome/components/api/api_pb2.cpp:1:/root/.platformio/packages/framework-arduinoespressif8266/cores/esp8266/Arduino.h:270:12: error: 'isinf' has not been declared in 'std' 270 | using std::isinf; | ^~~~~/root/.platformio/packages/framework-arduinoespressif8266/cores/esp8266/Arduino.h:271:12: error: 'isnan' has not been declared in 'std' 271 | using std::isnan; | ^~~~~In file included from src/esphome/core/component.h:5, from src/esphome/components/api/api_connection.h:3, from src/esphome/components/api/api_connection.cpp:1:/root/.platformio/packages/framework-arduinoespressif8266/cores/esp8266/Arduino.h:270:12: error: 'isinf' has not been declared in 'std' 270 | using std::isinf; | ^~~~~/root/.platformio/packages/framework-arduinoespressif8266/cores/esp8266/Arduino.h:271:12: error: 'isnan' has not been declared in 'std' 271 | using std::isnan; | ^~~~~In file included from src/esphome/core/component.h:5, from src/esphome/components/api/proto.h:3, from src/esphome/components/api/api_pb2.h:3, from src/esphome/components/api/api_pb2_service.h:3, from src/esphome/components/api/api_pb2_service.cpp:1:/root/.platformio/packages/framework-arduinoespressif8266/cores/esp8266/Arduino.h:270:12: error: 'isinf' has not been declared in 'std' 270 | using std::isinf; | ^~~~~/root/.platformio/packages/framework-arduinoespressif8266/cores/esp8266/Arduino.h:271:12: error: 'isnan' has not been declared in 'std' 271 | using std::isnan; | ^~~~~In file included from src/esphome/core/component.h:5, from src/esphome/components/api/api_server.h:3, from src/esphome/components/api/api_server.cpp:1:/root/.platformio/packages/framework-arduinoespressif8266/cores/esp8266/Arduino.h:270:12: error: 'isinf' has not been declared in 'std' 270 | using std::isinf; | ^~~~~/root/.platformio/packages/framework-arduinoespressif8266/cores/esp8266/Arduino.h:271:12: error: 'isnan' has not been declared in 'std' 271 | using std::isnan; | ^~~~~In file included from src/esphome/components/api/api_server.h:12, from src/esphome/components/api/api_connection.h:7, from src/esphome/components/api/api_connection.cpp:1:src/esphome/components/api/homeassistant_service.h: In member function 'void esphome::api::HomeAssistantServiceCallAction<Ts>::play(Ts ...)':src/esphome/components/api/homeassistant_service.h:54:18: warning: invalid use of incomplete type 'class esphome::api::APIServer' 54 | this->parent_->send_homeassistant_service_call(resp); | ^~In file included from src/esphome/components/api/api_server.h:9, from src/esphome/components/api/api_connection.h:7, from src/esphome/components/api/api_connection.cpp:1:src/esphome/components/api/util.h:13:7: note: forward declaration of 'class esphome::api::APIServer' 13 | class APIServer; | ^~~~~~~~~In file included from src/esphome/components/api/api_server.h:12, from src/esphome/components/api/api_server.cpp:1:src/esphome/components/api/homeassistant_service.h: In member function 'void esphome::api::HomeAssistantServiceCallAction<Ts>::play(Ts ...)':src/esphome/components/api/homeassistant_service.h:54:18: warning: invalid use of incomplete type 'class esphome::api::APIServer' 54 | this->parent_->send_homeassistant_service_call(resp); | ^~In file included from src/esphome/components/api/api_server.h:9, from src/esphome/components/api/api_server.cpp:1:src/esphome/components/api/util.h:13:7: note: forward declaration of 'class esphome::api::APIServer' 13 | class APIServer; | ^~~~~~~~~*** [.pioenvs/light/src/esphome/components/api/api_pb2_service.cpp.o] Error 1*** [.pioenvs/light/src/esphome/components/api/api_connection.cpp.o] Error 1*** [.pioenvs/light/src/esphome/components/api/api_server.cpp.o] Error 1*** [.pioenvs/light/src/esphome/components/api/api_pb2.cpp.o] Error 1========================= [FAILED] Took 14.64 seconds =========================
|
|