oxan / esphome-stream-server

Stream server (serial-to-wifi bridge) for ESPHome
Other
201 stars 86 forks source link

tube_zb_gw_cc2652p2 yaml build failed #9

Closed kylinfedora closed 1 year ago

kylinfedora commented 3 years ago

ymal: esphome: name: tube_zb_gw_cc2652p2 platform: ESP32 board: esp-wrover-kit

external_components:

build info: INFO Reading configuration /config/esphome/tube-zb-gw-cc2652p2.yaml... WARNING 'tube_zb_gwcc2652p2': Using the '' (underscore) character in the hostname is discouraged as it can cause problems with some DHCP and local name services. For more information, see https://esphome.io/guides/faq.html#why-shouldn-t-i-use-underscores-in-my-device-name INFO Generating C++ source... INFO Compiling app... Processing tube_zb_gw_cc2652p2 (board: esp-wrover-kit; framework: arduino; platform: espressif32 @ 3.3.2)

HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash Dependency Graph |-- 1.2.2 |-- 1.0 |-- 1.0 |-- 1.0 |-- 2.0.0 | |-- 1.2.2 |-- 5.13.3 |-- 1.0 Compiling /data/tube_zb_gw_cc2652p2/.pioenvs/tube_zb_gw_cc2652p2/src/esphome/components/api/api_connection.cpp.o Compiling /data/tube_zb_gw_cc2652p2/.pioenvs/tube_zb_gw_cc2652p2/src/esphome/components/api/api_frame_helper.cpp.o Compiling /data/tube_zb_gw_cc2652p2/.pioenvs/tube_zb_gw_cc2652p2/src/esphome/components/api/api_pb2.cpp.o Compiling /data/tube_zb_gw_cc2652p2/.pioenvs/tube_zb_gw_cc2652p2/src/esphome/components/api/api_pb2_service.cpp.o Compiling /data/tube_zb_gw_cc2652p2/.pioenvs/tube_zb_gw_cc2652p2/src/esphome/components/api/api_server.cpp.o Compiling /data/tube_zb_gw_cc2652p2/.pioenvs/tube_zb_gw_cc2652p2/src/esphome/components/api/list_entities.cpp.o Compiling /data/tube_zb_gw_cc2652p2/.pioenvs/tube_zb_gw_cc2652p2/src/esphome/components/api/proto.cpp.o Compiling /data/tube_zb_gw_cc2652p2/.pioenvs/tube_zb_gw_cc2652p2/src/esphome/components/api/subscribe_state.cpp.o Compiling /data/tube_zb_gw_cc2652p2/.pioenvs/tube_zb_gw_cc2652p2/src/esphome/components/api/user_services.cpp.o Compiling /data/tube_zb_gw_cc2652p2/.pioenvs/tube_zb_gw_cc2652p2/src/esphome/components/api/util.cpp.o Compiling /data/tube_zb_gw_cc2652p2/.pioenvs/tube_zb_gw_cc2652p2/src/esphome/components/esp32/core.cpp.o Compiling /data/tube_zb_gw_cc2652p2/.pioenvs/tube_zb_gw_cc2652p2/src/esphome/components/esp32/gpio_arduino.cpp.o Compiling /data/tube_zb_gw_cc2652p2/.pioenvs/tube_zb_gw_cc2652p2/src/esphome/components/esp32/gpio_idf.cpp.o Compiling /data/tube_zb_gw_cc2652p2/.pioenvs/tube_zb_gw_cc2652p2/src/esphome/components/esp32/preferences.cpp.o Compiling /data/tube_zb_gw_cc2652p2/.pioenvs/tube_zb_gw_cc2652p2/src/esphome/components/ethernet/ethernet_component.cpp.o Compiling /data/tube_zb_gw_cc2652p2/.pioenvs/tube_zb_gw_cc2652p2/src/esphome/components/gpio/switch/gpio_switch.cpp.o Compiling /data/tube_zb_gw_cc2652p2/.pioenvs/tube_zb_gw_cc2652p2/src/esphome/components/json/json_util.cpp.o Compiling /data/tube_zb_gw_cc2652p2/.pioenvs/tube_zb_gw_cc2652p2/src/esphome/components/logger/logger.cpp.o Compiling /data/tube_zb_gw_cc2652p2/.pioenvs/tube_zb_gw_cc2652p2/src/esphome/components/md5/md5.cpp.o Compiling /data/tube_zb_gw_cc2652p2/.pioenvs/tube_zb_gw_cc2652p2/src/esphome/components/mdns/mdns_component.cpp.o Compiling /data/tube_zb_gw_cc2652p2/.pioenvs/tube_zb_gw_cc2652p2/src/esphome/components/mdns/mdns_esp32_arduino.cpp.o Compiling /data/tube_zb_gw_cc2652p2/.pioenvs/tube_zb_gw_cc2652p2/src/esphome/components/mdns/mdns_esp8266.cpp.o Compiling /data/tube_zb_gw_cc2652p2/.pioenvs/tube_zb_gw_cc2652p2/src/esphome/components/mdns/mdns_esp_idf.cpp.o Compiling /data/tube_zb_gw_cc2652p2/.pioenvs/tube_zb_gw_cc2652p2/src/esphome/components/network/util.cpp.o Compiling /data/tube_zb_gw_cc2652p2/.pioenvs/tube_zb_gw_cc2652p2/src/esphome/components/ota/ota_backend_arduino_esp32.cpp.o Compiling /data/tube_zb_gw_cc2652p2/.pioenvs/tube_zb_gw_cc2652p2/src/esphome/components/ota/ota_backend_arduino_esp8266.cpp.o Compiling /data/tube_zb_gw_cc2652p2/.pioenvs/tube_zb_gw_cc2652p2/src/esphome/components/ota/ota_backend_esp_idf.cpp.o Compiling /data/tube_zb_gw_cc2652p2/.pioenvs/tube_zb_gw_cc2652p2/src/esphome/components/ota/ota_component.cpp.o Compiling /data/tube_zb_gw_cc2652p2/.pioenvs/tube_zb_gw_cc2652p2/src/esphome/components/restart/restart_switch.cpp.o Compiling /data/tube_zb_gw_cc2652p2/.pioenvs/tube_zb_gw_cc2652p2/src/esphome/components/script/script.cpp.o Compiling /data/tube_zb_gw_cc2652p2/.pioenvs/tube_zb_gw_cc2652p2/src/esphome/components/socket/bsd_sockets_impl.cpp.o Compiling /data/tube_zb_gw_cc2652p2/.pioenvs/tube_zb_gw_cc2652p2/src/esphome/components/socket/lwip_raw_tcp_impl.cpp.o Compiling /data/tube_zb_gw_cc2652p2/.pioenvs/tube_zb_gw_cc2652p2/src/esphome/components/switch/automation.cpp.o Compiling /data/tube_zb_gw_cc2652p2/.pioenvs/tube_zb_gw_cc2652p2/src/esphome/components/switch/switch.cpp.o Compiling /data/tube_zb_gw_cc2652p2/.pioenvs/tube_zb_gw_cc2652p2/src/esphome/components/template/switch/template_switch.cpp.o Compiling /data/tube_zb_gw_cc2652p2/.pioenvs/tube_zb_gw_cc2652p2/src/esphome/components/uart/uart.cpp.o Compiling /data/tube_zb_gw_cc2652p2/.pioenvs/tube_zb_gw_cc2652p2/src/esphome/components/uart/uart_component.cpp.o Compiling /data/tube_zb_gw_cc2652p2/.pioenvs/tube_zb_gw_cc2652p2/src/esphome/components/uart/uart_component_esp32_arduino.cpp.o Compiling /data/tube_zb_gw_cc2652p2/.pioenvs/tube_zb_gw_cc2652p2/src/esphome/components/uart/uart_component_esp8266.cpp.o Compiling /data/tube_zb_gw_cc2652p2/.pioenvs/tube_zb_gw_cc2652p2/src/esphome/components/uart/uart_component_esp_idf.cpp.o Compiling /data/tube_zb_gw_cc2652p2/.pioenvs/tube_zb_gw_cc2652p2/src/esphome/components/web_server/web_server.cpp.o Compiling /data/tube_zb_gw_cc2652p2/.pioenvs/tube_zb_gw_cc2652p2/src/esphome/components/web_server_base/web_server_base.cpp.o Compiling /data/tube_zb_gw_cc2652p2/.pioenvs/tube_zb_gw_cc2652p2/src/esphome/core/application.cpp.o Compiling /data/tube_zb_gw_cc2652p2/.pioenvs/tube_zb_gw_cc2652p2/src/esphome/core/color.cpp.o Compiling /data/tube_zb_gw_cc2652p2/.pioenvs/tube_zb_gw_cc2652p2/src/esphome/core/component.cpp.o Compiling /data/tube_zb_gw_cc2652p2/.pioenvs/tube_zb_gw_cc2652p2/src/esphome/core/controller.cpp.o Compiling /data/tube_zb_gw_cc2652p2/.pioenvs/tube_zb_gw_cc2652p2/src/esphome/core/entity_base.cpp.o Compiling /data/tube_zb_gw_cc2652p2/.pioenvs/tube_zb_gw_cc2652p2/src/esphome/core/helpers.cpp.o Compiling /data/tube_zb_gw_cc2652p2/.pioenvs/tube_zb_gw_cc2652p2/src/esphome/core/log.cpp.o Compiling /data/tube_zb_gw_cc2652p2/.pioenvs/tube_zb_gw_cc2652p2/src/esphome/core/scheduler.cpp.o Compiling /data/tube_zb_gw_cc2652p2/.pioenvs/tube_zb_gw_cc2652p2/src/esphome/core/util.cpp.o Compiling /data/tube_zb_gw_cc2652p2/.pioenvs/tube_zb_gw_cc2652p2/src/main.cpp.o Compiling /data/tube_zb_gw_cc2652p2/.pioenvs/tube_zb_gw_cc2652p2/src/stream_server.cpp.o In file included from /piolibs/AsyncTCP-esphome/src/AsyncTCP.h:29:0, from src/stream_server.h:29, from src/stream_server.cpp:17: /data/cache/platformio/packages/framework-arduinoespressif32/tools/sdk/include/freertos/freertos/semphr.h:74:3: error: #error "include FreeRTOS.h" must appear in source files before "include semphr.h"

error "include FreeRTOS.h" must appear in source files before "include semphr.h"

^ In file included from /data/cache/platformio/packages/framework-arduinoespressif32/tools/sdk/include/freertos/freertos/semphr.h:77:0, from /piolibs/AsyncTCP-esphome/src/AsyncTCP.h:29, from src/stream_server.h:29, from src/stream_server.cpp:17: /data/cache/platformio/packages/framework-arduinoespressif32/tools/sdk/include/freertos/freertos/queue.h:75:3: error: #error "include FreeRTOS.h" must appear in source files before "include queue.h"

error "include FreeRTOS.h" must appear in source files before "include queue.h"

^ Generating partitions /data/tube_zb_gw_cc2652p2/.pioenvs/tube_zb_gw_cc2652p2/partitions.bin Compiling /data/tube_zb_gw_cc2652p2/.pioenvs/tube_zb_gw_cc2652p2/lib528/AsyncTCP-esphome/AsyncTCP.cpp.o In file included from /data/cache/platformio/packages/framework-arduinoespressif32/tools/sdk/include/freertos/freertos/semphr.h:77:0, from /piolibs/AsyncTCP-esphome/src/AsyncTCP.h:29, from src/stream_server.h:29, from src/stream_server.cpp:17: /data/cache/platformio/packages/framework-arduinoespressif32/tools/sdk/include/freertos/freertos/queue.h:613:1: error: 'BaseType_t' does not name a type BaseType_t xQueueGenericSend( QueueHandle_t xQueue, const void const pvItemToQueue, TickType_t xTicksToWait, const BaseType_t xCopyPosition ) PRIVILEGED_FUNCTION; ^ /data/cache/platformio/packages/framework-arduinoespressif32/tools/sdk/include/freertos/freertos/queue.h:725:1: error: 'BaseType_t' does not name a type BaseType_t xQueuePeekFromISR( QueueHandle_t xQueue, void const pvBuffer ) PRIVILEGED_FUNCTION; ^ /data/cache/platformio/packages/framework-arduinoespressif32/tools/sdk/include/freertos/freertos/queue.h:906:1: error: 'BaseType_t' does not name a type BaseType_t xQueueGenericReceive( QueueHandle_t xQueue, void const pvBuffer, TickType_t xTicksToWait, const BaseType_t xJustPeek ) PRIVILEGED_FUNCTION; ^ /data/cache/platformio/packages/framework-arduinoespressif32/tools/sdk/include/freertos/freertos/queue.h:917:1: error: 'UBaseType_t' does not name a type UBaseType_t uxQueueMessagesWaiting( const QueueHandle_t xQueue ) PRIVILEGED_FUNCTION; ^ /data/cache/platformio/packages/framework-arduinoespressif32/tools/sdk/include/freertos/freertos/queue.h:930:1: error: 'UBaseType_t' does not name a type UBaseType_t uxQueueSpacesAvailable( const QueueHandle_t xQueue ) PRIVILEGED_FUNCTION; ^ /data/cache/platformio/packages/framework-arduinoespressif32/tools/sdk/include/freertos/freertos/queue.h:940:43: error: expected initializer before 'PRIVILEGED_FUNCTION' void vQueueDelete( QueueHandle_t xQueue ) PRIVILEGED_FUNCTION; ^ /data/cache/platformio/packages/framework-arduinoespressif32/tools/sdk/include/freertos/freertos/queue.h:1267:1: error: 'BaseType_t' does not name a type BaseType_t xQueueGenericSendFromISR( QueueHandle_t xQueue, const void const pvItemToQueue, BaseType_t const pxHigherPriorityTaskWoken, const BaseType_t xCopyPosition ) PRIVILEGED_FUNCTION; ^ /data/cache/platformio/packages/framework-arduinoespressif32/tools/sdk/include/freertos/freertos/queue.h:1268:1: error: 'BaseType_t' does not name a type BaseType_t xQueueGiveFromISR( QueueHandle_t xQueue, BaseType_t const pxHigherPriorityTaskWoken ) PRIVILEGED_FUNCTION; ^ /data/cache/platformio/packages/framework-arduinoespressif32/tools/sdk/include/freertos/freertos/queue.h:1347:1: error: 'BaseType_t' does not name a type BaseType_t xQueueReceiveFromISR( QueueHandle_t xQueue, void const pvBuffer, BaseType_t const pxHigherPriorityTaskWoken ) PRIVILEGED_FUNCTION; ^ /data/cache/platformio/packages/framework-arduinoespressif32/tools/sdk/include/freertos/freertos/queue.h:1354:1: error: 'BaseType_t' does not name a type BaseType_t xQueueIsQueueEmptyFromISR( const QueueHandle_t xQueue ) PRIVILEGED_FUNCTION; ^ /data/cache/platformio/packages/framework-arduinoespressif32/tools/sdk/include/freertos/freertos/queue.h:1355:1: error: 'BaseType_t' does not name a type BaseType_t xQueueIsQueueFullFromISR( const QueueHandle_t xQueue ) PRIVILEGED_FUNCTION; ^ /data/cache/platformio/packages/framework-arduinoespressif32/tools/sdk/include/freertos/freertos/queue.h:1356:1: error: 'UBaseType_t' does not name a type UBaseType_t uxQueueMessagesWaitingFromISR( const QueueHandle_t xQueue ) PRIVILEGED_FUNCTION; ^ /data/cache/platformio/packages/framework-arduinoespressif32/tools/sdk/include/freertos/freertos/queue.h:1374:1: error: 'BaseType_t' does not name a type BaseType_t xQueueAltGenericSend( QueueHandle_t xQueue, const void const pvItemToQueue, TickType_t xTicksToWait, BaseType_t xCopyPosition ); ^ /data/cache/platformio/packages/framework-arduinoespressif32/tools/sdk/include/freertos/freertos/queue.h:1375:1: error: 'BaseType_t' does not name a type BaseType_t xQueueAltGenericReceive( QueueHandle_t xQueue, void const pvBuffer, TickType_t xTicksToWait, BaseType_t xJustPeeking ); ^ /data/cache/platformio/packages/framework-arduinoespressif32/tools/sdk/include/freertos/freertos/queue.h:1390:1: error: 'BaseType_t' does not name a type BaseType_t xQueueCRSendFromISR( QueueHandle_t xQueue, const void pvItemToQueue, BaseType_t xCoRoutinePreviouslyWoken ); ^ /data/cache/platformio/packages/framework-arduinoespressif32/tools/sdk/include/freertos/freertos/queue.h:1391:1: error: 'BaseType_t' does not name a type BaseType_t xQueueCRReceiveFromISR( QueueHandle_t xQueue, void pvBuffer, BaseType_t pxTaskWoken ); ^ /data/cache/platformio/packages/framework-arduinoespressif32/tools/sdk/include/freertos/freertos/queue.h:1392:1: error: 'BaseType_t' does not name a type BaseType_t xQueueCRSend( QueueHandle_t xQueue, const void pvItemToQueue, TickType_t xTicksToWait ); ^ /data/cache/platformio/packages/framework-arduinoespressif32/tools/sdk/include/freertos/freertos/queue.h:1393:1: error: 'BaseType_t' does not name a type BaseType_t xQueueCRReceive( QueueHandle_t xQueue, void pvBuffer, TickType_t xTicksToWait ); ^ /data/cache/platformio/packages/framework-arduinoespressif32/tools/sdk/include/freertos/freertos/queue.h:1400:62: error: expected initializer before 'PRIVILEGED_FUNCTION' QueueHandle_t xQueueCreateMutex( const uint8_t ucQueueType ) PRIVILEGED_FUNCTION; ^ /data/cache/platformio/packages/framework-arduinoespressif32/tools/sdk/include/freertos/freertos/queue.h:1401:67: error: 'StaticQueue_t' has not been declared QueueHandle_t xQueueCreateMutexStatic( const uint8_t ucQueueType, StaticQueue_t pxStaticQueue ) PRIVILEGED_FUNCTION; ^ /data/cache/platformio/packages/framework-arduinoespressif32/tools/sdk/include/freertos/freertos/queue.h:1401:98: error: expected initializer before 'PRIVILEGED_FUNCTION' QueueHandle_t xQueueCreateMutexStatic( const uint8_t ucQueueType, StaticQueue_t pxStaticQueue ) PRIVILEGED_FUNCTION; ^ /data/cache/platformio/packages/framework-arduinoespressif32/tools/sdk/include/freertos/freertos/queue.h:1402:52: error: 'UBaseType_t' does not name a type QueueHandle_t xQueueCreateCountingSemaphore( const UBaseType_t uxMaxCount, const UBaseType_t uxInitialCount ) PRIVILEGED_FUNCTION; ^ /data/cache/platformio/packages/framework-arduinoespressif32/tools/sdk/include/freertos/freertos/queue.h:1402:82: error: 'UBaseType_t' does not name a type QueueHandle_t xQueueCreateCountingSemaphore( const UBaseType_t uxMaxCount, const UBaseType_t uxInitialCount ) PRIVILEGED_FUNCTION; ^ /data/cache/platformio/packages/framework-arduinoespressif32/tools/sdk/include/freertos/freertos/queue.h:1402:111: error: expected initializer before 'PRIVILEGED_FUNCTION' QueueHandle_t xQueueCreateCountingSemaphore( const UBaseType_t uxMaxCount, const UBaseType_t uxInitialCount ) PRIVILEGED_FUNCTION; ^ /data/cache/platformio/packages/framework-arduinoespressif32/tools/sdk/include/freertos/freertos/queue.h:1403:58: error: 'UBaseType_t' does not name a type Compiling /data/tube_zb_gw_cc2652p2/.pioenvs/tube_zb_gw_cc2652p2/lib64d/WiFi/ETH.cpp.o QueueHandle_t xQueueCreateCountingSemaphoreStatic( const UBaseType_t uxMaxCount, const UBaseType_t uxInitialCount, StaticQueue_t pxStaticQueue ) PRIVILEGED_FUNCTION; ^ /data/cache/platformio/packages/framework-arduinoespressif32/tools/sdk/include/freertos/freertos/queue.h:1403:88: error: 'UBaseType_t' does not name a type QueueHandle_t xQueueCreateCountingSemaphoreStatic( const UBaseType_t uxMaxCount, const UBaseType_t uxInitialCount, StaticQueue_t pxStaticQueue ) PRIVILEGED_FUNCTION; ^ /data/cache/platformio/packages/framework-arduinoespressif32/tools/sdk/include/freertos/freertos/queue.h:1403:116: error: 'StaticQueue_t' has not been declared QueueHandle_t xQueueCreateCountingSemaphoreStatic( const UBaseType_t uxMaxCount, const UBaseType_t uxInitialCount, StaticQueue_t pxStaticQueue ) PRIVILEGED_FUNCTION; ^ /data/cache/platformio/packages/framework-arduinoespressif32/tools/sdk/include/freertos/freertos/queue.h:1403:147: error: expected initializer before 'PRIVILEGED_FUNCTION' QueueHandle_t xQueueCreateCountingSemaphoreStatic( const UBaseType_t uxMaxCount, const UBaseType_t uxInitialCount, StaticQueue_t pxStaticQueue ) PRIVILEGED_FUNCTION; ^ /data/cache/platformio/packages/framework-arduinoespressif32/tools/sdk/include/freertos/freertos/queue.h:1404:56: error: expected initializer before 'PRIVILEGED_FUNCTION' void xQueueGetMutexHolder( QueueHandle_t xSemaphore ) PRIVILEGED_FUNCTION; ^ /data/cache/platformio/packages/framework-arduinoespressif32/tools/sdk/include/freertos/freertos/queue.h:1410:1: error: 'BaseType_t' does not name a type BaseType_t xQueueTakeMutexRecursive( QueueHandle_t xMutex, TickType_t xTicksToWait ) PRIVILEGED_FUNCTION; ^ /data/cache/platformio/packages/framework-arduinoespressif32/tools/sdk/include/freertos/freertos/queue.h:1411:1: error: 'BaseType_t' does not name a type BaseType_t xQueueGiveMutexRecursive( QueueHandle_t pxMutex ) PRIVILEGED_FUNCTION; ^ /data/cache/platformio/packages/framework-arduinoespressif32/tools/sdk/include/freertos/freertos/queue.h:1548:41: error: 'UBaseType_t' does not name a type QueueSetHandle_t xQueueCreateSet( const UBaseType_t uxEventQueueLength ) PRIVILEGED_FUNCTION; ^ /data/cache/platformio/packages/framework-arduinoespressif32/tools/sdk/include/freertos/freertos/queue.h:1548:74: error: expected initializer before 'PRIVILEGED_FUNCTION' QueueSetHandle_t xQueueCreateSet( const UBaseType_t uxEventQueueLength ) PRIVILEGED_FUNCTION; ^ /data/cache/platformio/packages/framework-arduinoespressif32/tools/sdk/include/freertos/freertos/queue.h:1572:1: error: 'BaseType_t' does not name a type BaseType_t xQueueAddToSet( QueueSetMemberHandle_t xQueueOrSemaphore, QueueSetHandle_t xQueueSet ) PRIVILEGED_FUNCTION; ^ /data/cache/platformio/packages/framework-arduinoespressif32/tools/sdk/include/freertos/freertos/queue.h:1591:1: error: 'BaseType_t' does not name a type BaseType_t xQueueRemoveFromSet( QueueSetMemberHandle_t xQueueOrSemaphore, QueueSetHandle_t xQueueSet ) PRIVILEGED_FUNCTION; ^ /data/cache/platformio/packages/framework-arduinoespressif32/tools/sdk/include/freertos/freertos/queue.h:1627:79: error: 'TickType_t' does not name a type QueueSetMemberHandle_t xQueueSelectFromSet( QueueSetHandle_t xQueueSet, const TickType_t xTicksToWait ) PRIVILEGED_FUNCTION; ^ /data/cache/platformio/packages/framework-arduinoespressif32/tools/sdk/include/freertos/freertos/queue.h:1627:105: error: expected initializer before 'PRIVILEGED_FUNCTION' QueueSetMemberHandle_t xQueueSelectFromSet( QueueSetHandle_t xQueueSet, const TickType_t xTicksToWait ) PRIVILEGED_FUNCTION; ^ /data/cache/platformio/packages/framework-arduinoespressif32/tools/sdk/include/freertos/freertos/queue.h:1632:81: error: expected initializer before 'PRIVILEGED_FUNCTION' QueueSetMemberHandle_t xQueueSelectFromSetFromISR( QueueSetHandle_t xQueueSet ) PRIVILEGED_FUNCTION; ^ /data/cache/platformio/packages/framework-arduinoespressif32/tools/sdk/include/freertos/freertos/queue.h:1636:60: error: 'TickType_t' has not been declared void vQueueWaitForMessageRestricted( QueueHandle_t xQueue, TickType_t xTicksToWait ) PRIVILEGED_FUNCTION; ^ /data/cache/platformio/packages/framework-arduinoespressif32/tools/sdk/include/freertos/freertos/queue.h:1636:86: error: expected initializer before 'PRIVILEGED_FUNCTION' void vQueueWaitForMessageRestricted( QueueHandle_t xQueue, TickType_t xTicksToWait ) PRIVILEGED_FUNCTION; ^ /data/cache/platformio/packages/framework-arduinoespressif32/tools/sdk/include/freertos/freertos/queue.h:1637:1: error: 'BaseType_t' does not name a type BaseType_t xQueueGenericReset( QueueHandle_t xQueue, BaseType_t xNewQueue ) PRIVILEGED_FUNCTION; Compiling /data/tube_zb_gw_cc2652p2/.pioenvs/tube_zb_gw_cc2652p2/lib64d/WiFi/WiFi.cpp.o ^ /data/cache/platformio/packages/framework-arduinoespressif32/tools/sdk/include/freertos/freertos/queue.h:1638:50: error: 'UBaseType_t' has not been declared void vQueueSetQueueNumber( QueueHandle_t xQueue, UBaseType_t uxQueueNumber ) PRIVILEGED_FUNCTION; ^ /data/cache/platformio/packages/framework-arduinoespressif32/tools/sdk/include/freertos/freertos/queue.h:1638:78: error: expected initializer before 'PRIVILEGED_FUNCTION' void vQueueSetQueueNumber( QueueHandle_t xQueue, UBaseType_t uxQueueNumber ) PRIVILEGED_FUNCTION; ^ /data/cache/platformio/packages/framework-arduinoespressif32/tools/sdk/include/freertos/freertos/queue.h:1639:1: error: 'UBaseType_t' does not name a type UBaseType_t uxQueueGetQueueNumber( QueueHandle_t xQueue ) PRIVILEGED_FUNCTION; ^ /data/cache/platformio/packages/framework-arduinoespressif32/tools/sdk/include/freertos/freertos/queue.h:1640:53: error: expected initializer before 'PRIVILEGED_FUNCTION' uint8_t ucQueueGetQueueType( QueueHandle_t xQueue ) PRIVILEGED_FUNCTION; ^ src/stream_server.cpp: In member function 'void StreamServerComponent::read()': src/stream_server.cpp:59:65: error: 'min' was not declared in this scope sizet read = this->stream->readBytes(buf, min(len, 128)); ^ src/stream_server.cpp:59:65: note: suggested alternative: In file included from /data/cache/platformio/packages/toolchain-xtensa32/xtensa-esp32-elf/include/c++/5.2.0/algorithm:62:0, from src/esphome/core/optional.h:19, from src/esphome/core/component.h:7, from src/stream_server.h:19, from src/stream_server.cpp:17: /data/cache/platformio/packages/toolchain-xtensa32/xtensa-esp32-elf/include/c++/5.2.0/bits/stl_algo.h:3451:5: note: 'std::min' min(initializer_list<_Tp> l, _Compare __comp) ^ In file included from src/stream_server.cpp:19:0: src/stream_server.cpp: In member function 'virtual void StreamServerComponent::dump_config()': src/stream_server.cpp:75:64: error: 'network_get_address' was not declared in this scope ESP_LOGCONFIG(TAG, " Address: %s:%u", network_get_address().cstr(), this->port); ^ src/esphome/core/log.h:97:90: note: in definition of macro 'esph_log_config' esp_logprintf(ESPHOME_LOG_LEVEL_CONFIG, tag, LINE, ESPHOME_LOG_FORMAT(format), ##VA_ARGS__) ^ src/stream_server.cpp:75:5: note: in expansion of macro 'ESP_LOGCONFIG' ESP_LOGCONFIG(TAG, " Address: %s:%u", network_get_address().cstr(), this->port); ^ Compiling /data/tube_zb_gw_cc2652p2/.pioenvs/tube_zb_gw_cc2652p2/lib64d/WiFi/WiFiAP.cpp.o * [/data/tube_zb_gw_cc2652p2/.pioenvs/tube_zb_gw_cc2652p2/src/stream_server.cpp.o] Error 1 /config/esphome/tube-zb-gw-cc2652p2.yaml: In lambda function: /config/esphome/tube-zb-gw-cc2652p2.yaml:89:32: error: expected type-specifier before 'StreamServerComponent' auto stream_server = new StreamServerComponent(id(uart_bus)); ^ /config/esphome/tube-zb-gw-cc2652p2.yaml:90:28: error: could not convert '{stream_server}' from '' to 'std::vector<esphome::Component>' return {stream_server}; ^ [/data/tube_zb_gw_cc2652p2/.pioenvs/tube_zb_gw_cc2652p2/src/main.cpp.o] Error 1 ========================== [FAILED] Took 8.61 seconds ==========================

oxan commented 3 years ago

Please put YAML and logs inside code blocks, as this is unreadable.

Furthermore, which versions are you using? This seems like a problem that was already fixed with the 2021.10 compatibility.