Face issues in SDK file compilation, which shows issues in include stdio.h header file in the esp_timer.h file
Posted: Wed Jan 20, 2021 7:59 am
Hi,
Currently we are using esp-idf v3.2 in our project and all the functionalties are working fine, but there are some limitations in coap and dtls related components and due to that we need to port latest ESP-IDF v4.3-dev-2586-g526f68239 in our project. We have already switched from makefile to CMake compilation build procedure and we can see our project source files are able to compiled. But we face some issues in SDK file compilation, which shows issues as below compilation error logs.
As per the logs, it says we need to include stdio.h header file in the esp_timer.h header file, but if we see this header file, stdio.h file is already included in this.
Would you please check the below issues and let us know if anything is missing in build procedure and provide possible resolution for that.
Debug logs:
//after idf.py build command//
Running ninja in directory e:\
Executing "ninja all"...
[1/214] Performing build step for 'bootloader'
ninja: no work to do.
[8/212] Building C object esp-idf/cli_service/CMakeFiles/__idf_cli_service.dir/src/FreeRTOS_CLI.c.obj
FAILED: esp-idf/cli_service/CMakeFiles/__idf_cli_service.dir/src/FreeRTOS_CLI.c.obj
ccache C:\Users\.espressif\tools\xtensa-esp32-elf\esp-2020r3-8.4.0\xtensa-esp32-elf\bin\xtensa-esp32-elf-gcc.exe -DMBEDTLS_CONFIG_FILE=\"mbedtls/esp_config.h\" -Iconfig -I../components/cli_service/include -I../SDK/esp-idf/components/newlib/platform_include -I../SDK/esp-idf/components/freertos/include -I../SDK/esp-idf/components/freertos/port/xtensa/include -I../SDK/esp-idf/components/esp_hw_support/include -I../SDK/esp-idf/components/esp_hw_support/port/esp32/. -I../SDK/esp-idf/components/heap/include -I../SDK/esp-idf/components/log/include -I../SDK/esp-idf/components/lwip/include/apps -I../SDK/esp-idf/components/lwip/include/apps/sntp -I../SDK/esp-idf/components/lwip/lwip/src/include -I../SDK/esp-idf/components/lwip/port/esp32/include -I../SDK/esp-idf/components/lwip/port/esp32/include/arch -I../SDK/esp-idf/components/soc/include -I../SDK/esp-idf/components/soc/esp32/. -I../SDK/esp-idf/components/soc/esp32/include -I../SDK/esp-idf/components/hal/esp32/include -I../SDK/esp-idf/components/hal/include -I../SDK/esp-idf/components/esp_rom/include -I../SDK/esp-idf/components/esp_rom/esp32 -I../SDK/esp-idf/components/esp_common/include -I../SDK/esp-idf/components/esp_system/include -I../SDK/esp-idf/components/esp32/include -I../SDK/esp-idf/components/driver/include -I../SDK/esp-idf/components/driver/esp32/include -I../SDK/esp-idf/components/esp_ringbuf/include -I../SDK/esp-idf/components/efuse/include -I../SDK/esp-idf/components/efuse/esp32/include -I../SDK/esp-idf/components/xtensa/include -I../SDK/esp-idf/components/xtensa/esp32/include -I../SDK/esp-idf/components/espcoredump/include -I../SDK/esp-idf/components/esp_timer/include -I../SDK/esp-idf/components/esp_ipc/include -I../SDK/esp-idf/components/esp_pm/include -I../SDK/esp-idf/components/vfs/include -I../SDK/esp-idf/components/esp_wifi/include -I../SDK/esp-idf/components/esp_wifi/esp32/include -I../SDK/esp-idf/components/esp_event/include -I../SDK/esp-idf/components/esp_netif/include -I../SDK/esp-idf/components/tcpip_adapter/include -I../SDK/esp-idf/components/app_trace/include -I../components/nlg_os/include -I../components/debug_log/include -I../components/gw_config/include -I../components/wifi_osal/include -I../components/led_service/include -I../components/gpio_osal/include -I../components/i2c_service/include -I../components/board_init/include -I../components/board_init/common_handler -I../components/uart_osal/include -I../components/uart_osal/port/include -I../components/ring_buffer/include -I../main/include -I../main/source/mib_parser/include -I../main/lib/include -I../main/source/devices/include -I../main/include/audio_headers -I../components/routing_service/include -I../components/crc16/include -I../components/xmodem/include -I../components/spiffs/spiffs/include -I../components/spiffs/spiffs/spiffs/src -I../components/bt_osal/include -I../SDK/esp-idf/components/bt/include -I../SDK/esp-idf/components/bt/common/osi/include -I../SDK/esp-idf/components/bt/host/bluedroid/api/include/api -I../SDK/esp-idf/components/nvs_flash/include -I../SDK/esp-idf/components/spi_flash/include -I../SDK/esp-idf/components/mbedtls/port/include -I../SDK/esp-idf/components/mbedtls/mbedtls/include -I../SDK/esp-idf/components/mbedtls/esp_crt_bundle/include -I../components/middleware_service/include -I../components/kaa/src -I../components/kaa/src/kaa -I../components/kaa/src/kaa/platform-impl/esp8266/platform -I../components/kaa/src/extensions/bootstrap -I../components/kaa/src/extensions/configuration -I../components/kaa/src/extensions/event -I../components/kaa/src/extensions/logging -I../components/kaa/src/extensions/notification -I../components/kaa/src/extensions/profile -I../components/kaa/tools/kaa_encryption/rsa_key_gen/include -I../components/kaa/src/extensions/user -I../components/nlg_fota/nbl-gw-fota/fota/inc -I../components/nlg_fota/port/app/include -I../components/nlg_fota/port/platform/include -I../components/kgw_fota/include -I../components/rmt/include -I../components/spi_flash_os/include -I../components/event_manager/include -I../components/firmware_update/include -I../components/nbl-mib/nbl-mib-service/includes -I../components/nbl-mib/port/include -I../SDK/esp-idf/components/wpa_supplicant/include -I../SDK/esp-idf/components/wpa_supplicant/port/include -I../SDK/esp-idf/components/wpa_supplicant/include/esp_supplicant -I../components/ping_service/include -I../components/database/include -I../components/rtc_service/include -I../components/system_service/include -I../components/adc/include -I../components/pwm/include -mlongcalls -Wno-frame-address -ffunction-sections -fdata-sections -fstrict-volatile-bitfields -Wall -Werror=all -Wno-error=unused-function -Wno-error=unused-but-set-variable -Wno-error=unused-variable -Wno-error=deprecated-declarations -Wextra -Wno-unused-parameter -Wno-sign-compare -ggdb -Og -std=gnu99 -Wno-old-style-declaration -D_GNU_SOURCE -DIDF_VER=\"v4.3-dev-2568-g59869bf61\" -DESP_PLATFORM -MD -MT esp-idf/cli_service/CMakeFiles/__idf_cli_service.dir/src/FreeRTOS_CLI.c.obj -MF esp-idf\cli_service\CMakeFiles\__idf_cli_service.dir\src\FreeRTOS_CLI.c.obj.d -o esp-idf/cli_service/CMakeFiles/__idf_cli_service.dir/src/FreeRTOS_CLI.c.obj -c ../components/cli_service/src/FreeRTOS_CLI.c
In file included from ../SDK/esp-idf/components/freertos/port/xtensa/include/freertos/portmacro.h:46,
from ../SDK/esp-idf/components/freertos/include/freertos/portable.h:52,
from ../SDK/esp-idf/components/freertos/include/freertos/FreeRTOS.h:64,
from ../components/nlg_os/include/nlg_os.h:23,
from ../components/cli_service/src/FreeRTOS_CLI.c:32:
../SDK/esp-idf/components/esp_timer/include/esp_timer.h:229:26: error: unknown type name 'FILE'
esp_err_t esp_timer_dump(FILE* stream);
^~~~
../SDK/esp-idf/components/esp_timer/include/esp_timer.h:229:26: note: 'FILE' is defined in header '<stdio.h>'; did you forget to '#include <stdio.h>'?
../SDK/esp-idf/components/esp_timer/include/esp_timer.h:46:1:
+#include <stdio.h>
../SDK/esp-idf/components/esp_timer/include/esp_timer.h:229:26:
esp_err_t esp_timer_dump(FILE* stream);
^~~~
[10/212] Building C object esp-idf/i2c_service/CMakeFiles/__idf_i2c_service.dir/src/i2c_expander.c.obj
FAILED: esp-idf/i2c_service/CMakeFiles/__idf_i2c_service.dir/src/i2c_expander.c.obj
ccache C:\Users\.espressif\tools\xtensa-esp32-elf\esp-2020r3-8.4.0\xtensa-esp32-elf\bin\xtensa-esp32-elf-gcc.exe -DMBEDTLS_CONFIG_FILE=\"mbedtls/esp_config.h\" -Iconfig -I../components/i2c_service/include -I../SDK/esp-idf/components/newlib/platform_include -I../SDK/esp-idf/components/freertos/include -I../SDK/esp-idf/components/freertos/port/xtensa/include -I../SDK/esp-idf/components/esp_hw_support/include -I../SDK/esp-idf/components/esp_hw_support/port/esp32/. -I../SDK/esp-idf/components/heap/include -I../SDK/esp-idf/components/log/include -I../SDK/esp-idf/components/lwip/include/apps -I../SDK/esp-idf/components/lwip/include/apps/sntp -I../SDK/esp-idf/components/lwip/lwip/src/include -I../SDK/esp-idf/components/lwip/port/esp32/include -I../SDK/esp-idf/components/lwip/port/esp32/include/arch -I../SDK/esp-idf/components/soc/include -I../SDK/esp-idf/components/soc/esp32/. -I../SDK/esp-idf/components/soc/esp32/include -I../SDK/esp-idf/components/hal/esp32/include -I../SDK/esp-idf/components/hal/include -I../SDK/esp-idf/components/esp_rom/include -I../SDK/esp-idf/components/esp_rom/esp32 -I../SDK/esp-idf/components/esp_common/include -I../SDK/esp-idf/components/esp_system/include -I../SDK/esp-idf/components/esp32/include -I../SDK/esp-idf/components/driver/include -I../SDK/esp-idf/components/driver/esp32/include -I../SDK/esp-idf/components/esp_ringbuf/include -I../SDK/esp-idf/components/efuse/include -I../SDK/esp-idf/components/efuse/esp32/include -I../SDK/esp-idf/components/xtensa/include -I../SDK/esp-idf/components/xtensa/esp32/include -I../SDK/esp-idf/components/espcoredump/include -I../SDK/esp-idf/components/esp_timer/include -I../SDK/esp-idf/components/esp_ipc/include -I../SDK/esp-idf/components/esp_pm/include -I../SDK/esp-idf/components/vfs/include -I../SDK/esp-idf/components/esp_wifi/include -I../SDK/esp-idf/components/esp_wifi/esp32/include -I../SDK/esp-idf/components/esp_event/include -I../SDK/esp-idf/components/esp_netif/include -I../SDK/esp-idf/components/tcpip_adapter/include -I../SDK/esp-idf/components/app_trace/include -I../components/nlg_os/include -I../components/debug_log/include -I../components/gw_config/include -I../components/wifi_osal/include -I../components/led_service/include -I../components/gpio_osal/include -I../components/board_init/include -I../components/board_init/common_handler -I../components/uart_osal/include -I../components/uart_osal/port/include -I../components/ring_buffer/include -I../main/include -I../main/source/mib_parser/include -I../main/lib/include -I../main/source/devices/include -I../main/include/audio_headers -I../components/routing_service/include -I../components/crc16/include -I../components/cli_service/include -I../components/xmodem/include -I../components/spiffs/spiffs/include -I../components/spiffs/spiffs/spiffs/src -I../components/bt_osal/include -I../SDK/esp-idf/components/bt/include -I../SDK/esp-idf/components/bt/common/osi/include -I../SDK/esp-idf/components/bt/host/bluedroid/api/include/api -I../SDK/esp-idf/components/nvs_flash/include -I../SDK/esp-idf/components/spi_flash/include -I../SDK/esp-idf/components/mbedtls/port/include -I../SDK/esp-idf/components/mbedtls/mbedtls/include -I../SDK/esp-idf/components/mbedtls/esp_crt_bundle/include -I../components/middleware_service/include -I../components/kaa/src -I../components/kaa/src/kaa -I../components/kaa/src/kaa/platform-impl/esp8266/platform -I../components/kaa/src/extensions/bootstrap -I../components/kaa/src/extensions/configuration -I../components/kaa/src/extensions/event -I../components/kaa/src/extensions/logging -I../components/kaa/src/extensions/notification -I../components/kaa/src/extensions/profile -I../components/kaa/tools/kaa_encryption/rsa_key_gen/include -I../components/kaa/src/extensions/user -I../components/nlg_fota/nbl-gw-fota/fota/inc -I../components/nlg_fota/port/app/include -I../components/nlg_fota/port/platform/include -I../components/kgw_fota/include -I../components/rmt/include -I../components/spi_flash_os/include -I../components/event_manager/include -I../components/firmware_update/include -I../components/nbl-mib/nbl-mib-service/includes -I../components/nbl-mib/port/include -I../SDK/esp-idf/components/wpa_supplicant/include -I../SDK/esp-idf/components/wpa_supplicant/port/include -I../SDK/esp-idf/components/wpa_supplicant/include/esp_supplicant -I../components/ping_service/include -I../components/database/include -I../components/rtc_service/include -I../components/system_service/include -I../components/adc/include -I../components/pwm/include -mlongcalls -Wno-frame-address -ffunction-sections -fdata-sections -fstrict-volatile-bitfields -Wall -Werror=all -Wno-error=unused-function -Wno-error=unused-but-set-variable -Wno-error=unused-variable -Wno-error=deprecated-declarations -Wextra -Wno-unused-parameter -Wno-sign-compare -ggdb -Og -std=gnu99 -Wno-old-style-declaration -D_GNU_SOURCE -DIDF_VER=\"v4.3-dev-2568-g59869bf61\" -DESP_PLATFORM -MD -MT esp-idf/i2c_service/CMakeFiles/__idf_i2c_service.dir/src/i2c_expander.c.obj -MF esp-idf\i2c_service\CMakeFiles\__idf_i2c_service.dir\src\i2c_expander.c.obj.d -o esp-idf/i2c_service/CMakeFiles/__idf_i2c_service.dir/src/i2c_expander.c.obj -c ../components/i2c_service/src/i2c_expander.c
In file included from ../SDK/esp-idf/components/freertos/port/xtensa/include/freertos/portmacro.h:46,
from ../SDK/esp-idf/components/freertos/include/freertos/portable.h:52,
from ../SDK/esp-idf/components/freertos/include/freertos/FreeRTOS.h:64,
from ../components/nlg_os/include/nlg_os.h:23,
from ../components/i2c_service/src/i2c_expander.c:4:
../SDK/esp-idf/components/esp_timer/include/esp_timer.h:229:26: error: unknown type name 'FILE'
esp_err_t esp_timer_dump(FILE* stream);
^~~~
../SDK/esp-idf/components/esp_timer/include/esp_timer.h:229:26: note: 'FILE' is defined in header '<stdio.h>'; did you forget to '#include <stdio.h>'?
../SDK/esp-idf/components/esp_timer/include/esp_timer.h:46:1:
+#include <stdio.h>
../SDK/esp-idf/components/esp_timer/include/esp_timer.h:229:26:
esp_err_t esp_timer_dump(FILE* stream);
^~~~
[11/212] Building C object esp-idf/ring_buffer/CMakeFiles/__idf_ring_buffer.dir/src/ringbuf.c.obj
FAILED: esp-idf/ring_buffer/CMakeFiles/__idf_ring_buffer.dir/src/ringbuf.c.obj
ccache C:\Users\.espressif\tools\xtensa-esp32-elf\esp-2020r3-8.4.0\xtensa-esp32-elf\bin\xtensa-esp32-elf-gcc.exe -DMBEDTLS_CONFIG_FILE=\"mbedtls/esp_config.h\" -Iconfig -I../components/ring_buffer/include -I../SDK/esp-idf/components/newlib/platform_include -I../SDK/esp-idf/components/freertos/include -I../SDK/esp-idf/components/freertos/port/xtensa/include -I../SDK/esp-idf/components/esp_hw_support/include -I../SDK/esp-idf/components/esp_hw_support/port/esp32/. -I../SDK/esp-idf/components/heap/include -I../SDK/esp-idf/components/log/include -I../SDK/esp-idf/components/lwip/include/apps -I../SDK/esp-idf/components/lwip/include/apps/sntp -I../SDK/esp-idf/components/lwip/lwip/src/include -I../SDK/esp-idf/components/lwip/port/esp32/include -I../SDK/esp-idf/components/lwip/port/esp32/include/arch -I../SDK/esp-idf/components/soc/include -I../SDK/esp-idf/components/soc/esp32/. -I../SDK/esp-idf/components/soc/esp32/include -I../SDK/esp-idf/components/hal/esp32/include -I../SDK/esp-idf/components/hal/include -I../SDK/esp-idf/components/esp_rom/include -I../SDK/esp-idf/components/esp_rom/esp32 -I../SDK/esp-idf/components/esp_common/include -I../SDK/esp-idf/components/esp_system/include -I../SDK/esp-idf/components/esp32/include -I../SDK/esp-idf/components/driver/include -I../SDK/esp-idf/components/driver/esp32/include -I../SDK/esp-idf/components/esp_ringbuf/include -I../SDK/esp-idf/components/efuse/include -I../SDK/esp-idf/components/efuse/esp32/include -I../SDK/esp-idf/components/xtensa/include -I../SDK/esp-idf/components/xtensa/esp32/include -I../SDK/esp-idf/components/espcoredump/include -I../SDK/esp-idf/components/esp_timer/include -I../SDK/esp-idf/components/esp_ipc/include -I../SDK/esp-idf/components/esp_pm/include -I../SDK/esp-idf/components/vfs/include -I../SDK/esp-idf/components/esp_wifi/include -I../SDK/esp-idf/components/esp_wifi/esp32/include -I../SDK/esp-idf/components/esp_event/include -I../SDK/esp-idf/components/esp_netif/include -I../SDK/esp-idf/components/tcpip_adapter/include -I../SDK/esp-idf/components/app_trace/include -I../components/nlg_os/include -I../components/debug_log/include -I../components/gw_config/include -I../components/wifi_osal/include -I../components/led_service/include -I../components/gpio_osal/include -I../components/i2c_service/include -I../components/board_init/include -I../components/board_init/common_handler -I../components/uart_osal/include -I../components/uart_osal/port/include -I../main/include -I../main/source/mib_parser/include -I../main/lib/include -I../main/source/devices/include -I../main/include/audio_headers -I../components/routing_service/include -I../components/crc16/include -I../components/cli_service/include -I../components/xmodem/include -I../components/spiffs/spiffs/include -I../components/spiffs/spiffs/spiffs/src -I../components/bt_osal/include -I../SDK/esp-idf/components/bt/include -I../SDK/esp-idf/components/bt/common/osi/include -I../SDK/esp-idf/components/bt/host/bluedroid/api/include/api -I../SDK/esp-idf/components/nvs_flash/include -I../SDK/esp-idf/components/spi_flash/include -I../SDK/esp-idf/components/mbedtls/port/include -I../SDK/esp-idf/components/mbedtls/mbedtls/include -I../SDK/esp-idf/components/mbedtls/esp_crt_bundle/include -I../components/middleware_service/include -I../components/kaa/src -I../components/kaa/src/kaa -I../components/kaa/src/kaa/platform-impl/esp8266/platform -I../components/kaa/src/extensions/bootstrap -I../components/kaa/src/extensions/configuration -I../components/kaa/src/extensions/event -I../components/kaa/src/extensions/logging -I../components/kaa/src/extensions/notification -I../components/kaa/src/extensions/profile -I../components/kaa/tools/kaa_encryption/rsa_key_gen/include -I../components/kaa/src/extensions/user -I../components/nlg_fota/nbl-gw-fota/fota/inc -I../components/nlg_fota/port/app/include -I../components/nlg_fota/port/platform/include -I../components/kgw_fota/include -I../components/rmt/include -I../components/spi_flash_os/include -I../components/event_manager/include -I../components/firmware_update/include -I../components/nbl-mib/nbl-mib-service/includes -I../components/nbl-mib/port/include -I../SDK/esp-idf/components/wpa_supplicant/include -I../SDK/esp-idf/components/wpa_supplicant/port/include -I../SDK/esp-idf/components/wpa_supplicant/include/esp_supplicant -I../components/ping_service/include -I../components/database/include -I../components/rtc_service/include -I../components/system_service/include -I../components/adc/include -I../components/pwm/include -mlongcalls -Wno-frame-address -ffunction-sections -fdata-sections -fstrict-volatile-bitfields -Wall -Werror=all -Wno-error=unused-function -Wno-error=unused-but-set-variable -Wno-error=unused-variable -Wno-error=deprecated-declarations -Wextra -Wno-unused-parameter -Wno-sign-compare -ggdb -Og -std=gnu99 -Wno-old-style-declaration -D_GNU_SOURCE -DIDF_VER=\"v4.3-dev-2568-g59869bf61\" -DESP_PLATFORM -MD -MT esp-idf/ring_buffer/CMakeFiles/__idf_ring_buffer.dir/src/ringbuf.c.obj -MF esp-idf\ring_buffer\CMakeFiles\__idf_ring_buffer.dir\src\ringbuf.c.obj.d -o esp-idf/ring_buffer/CMakeFiles/__idf_ring_buffer.dir/src/ringbuf.c.obj -c ../components/ring_buffer/src/ringbuf.c
In file included from ../SDK/esp-idf/components/freertos/port/xtensa/include/freertos/portmacro.h:46,
from ../SDK/esp-idf/components/freertos/include/freertos/portable.h:52,
from ../SDK/esp-idf/components/freertos/include/freertos/FreeRTOS.h:64,
from ../components/nlg_os/include/nlg_os.h:23,
from ../components/ring_buffer/src/ringbuf.c:15:
../SDK/esp-idf/components/esp_timer/include/esp_timer.h:229:26: error: unknown type name 'FILE'
esp_err_t esp_timer_dump(FILE* stream);
^~~~
../SDK/esp-idf/components/esp_timer/include/esp_timer.h:229:26: note: 'FILE' is defined in header '<stdio.h>'; did you forget to '#include <stdio.h>'?
../SDK/esp-idf/components/esp_timer/include/esp_timer.h:46:1:
+#include <stdio.h>
../SDK/esp-idf/components/esp_timer/include/esp_timer.h:229:26:
esp_err_t esp_timer_dump(FILE* stream);
^~~~
[12/212] Building C object esp-idf/gpio_osal/CMakeFiles/__idf_gpio_osal.dir/src/gpio_handler.c.obj
FAILED: esp-idf/gpio_osal/CMakeFiles/__idf_gpio_osal.dir/src/gpio_handler.c.obj
ccache C:\Users\.espressif\tools\xtensa-esp32-elf\esp-2020r3-8.4.0\xtensa-esp32-elf\bin\xtensa-esp32-elf-gcc.exe -DMBEDTLS_CONFIG_FILE=\"mbedtls/esp_config.h\" -Iconfig -I../components/gpio_osal/include -I../SDK/esp-idf/components/newlib/platform_include -I../SDK/esp-idf/components/freertos/include -I../SDK/esp-idf/components/freertos/port/xtensa/include -I../SDK/esp-idf/components/esp_hw_support/include -I../SDK/esp-idf/components/esp_hw_support/port/esp32/. -I../SDK/esp-idf/components/heap/include -I../SDK/esp-idf/components/log/include -I../SDK/esp-idf/components/lwip/include/apps -I../SDK/esp-idf/components/lwip/include/apps/sntp -I../SDK/esp-idf/components/lwip/lwip/src/include -I../SDK/esp-idf/components/lwip/port/esp32/include -I../SDK/esp-idf/components/lwip/port/esp32/include/arch -I../SDK/esp-idf/components/soc/include -I../SDK/esp-idf/components/soc/esp32/. -I../SDK/esp-idf/components/soc/esp32/include -I../SDK/esp-idf/components/hal/esp32/include -I../SDK/esp-idf/components/hal/include -I../SDK/esp-idf/components/esp_rom/include -I../SDK/esp-idf/components/esp_rom/esp32 -I../SDK/esp-idf/components/esp_common/include -I../SDK/esp-idf/components/esp_system/include -I../SDK/esp-idf/components/esp32/include -I../SDK/esp-idf/components/driver/include -I../SDK/esp-idf/components/driver/esp32/include -I../SDK/esp-idf/components/esp_ringbuf/include -I../SDK/esp-idf/components/efuse/include -I../SDK/esp-idf/components/efuse/esp32/include -I../SDK/esp-idf/components/xtensa/include -I../SDK/esp-idf/components/xtensa/esp32/include -I../SDK/esp-idf/components/espcoredump/include -I../SDK/esp-idf/components/esp_timer/include -I../SDK/esp-idf/components/esp_ipc/include -I../SDK/esp-idf/components/esp_pm/include -I../SDK/esp-idf/components/vfs/include -I../SDK/esp-idf/components/esp_wifi/include -I../SDK/esp-idf/components/esp_wifi/esp32/include -I../SDK/esp-idf/components/esp_event/include -I../SDK/esp-idf/components/esp_netif/include -I../SDK/esp-idf/components/tcpip_adapter/include -I../SDK/esp-idf/components/app_trace/include -I../components/nlg_os/include -I../components/debug_log/include -I../components/gw_config/include -I../components/wifi_osal/include -I../components/led_service/include -I../components/i2c_service/include -I../components/board_init/include -I../components/board_init/common_handler -I../components/uart_osal/include -I../components/uart_osal/port/include -I../components/ring_buffer/include -I../main/include -I../main/source/mib_parser/include -I../main/lib/include -I../main/source/devices/include -I../main/include/audio_headers -I../components/routing_service/include -I../components/crc16/include -I../components/cli_service/include -I../components/xmodem/include -I../components/spiffs/spiffs/include -I../components/spiffs/spiffs/spiffs/src -I../components/bt_osal/include -I../SDK/esp-idf/components/bt/include -I../SDK/esp-idf/components/bt/common/osi/include -I../SDK/esp-idf/components/bt/host/bluedroid/api/include/api -I../SDK/esp-idf/components/nvs_flash/include -I../SDK/esp-idf/components/spi_flash/include -I../SDK/esp-idf/components/mbedtls/port/include -I../SDK/esp-idf/components/mbedtls/mbedtls/include -I../SDK/esp-idf/components/mbedtls/esp_crt_bundle/include -I../components/middleware_service/include -I../components/kaa/src -I../components/kaa/src/kaa -I../components/kaa/src/kaa/platform-impl/esp8266/platform -I../components/kaa/src/extensions/bootstrap -I../components/kaa/src/extensions/configuration -I../components/kaa/src/extensions/event -I../components/kaa/src/extensions/logging -I../components/kaa/src/extensions/notification -I../components/kaa/src/extensions/profile -I../components/kaa/tools/kaa_encryption/rsa_key_gen/include -I../components/kaa/src/extensions/user -I../components/nlg_fota/nbl-gw-fota/fota/inc -I../components/nlg_fota/port/app/include -I../components/nlg_fota/port/platform/include -I../components/kgw_fota/include -I../components/rmt/include -I../components/spi_flash_os/include -I../components/event_manager/include -I../components/firmware_update/include -I../components/nbl-mib/nbl-mib-service/includes -I../components/nbl-mib/port/include -I../SDK/esp-idf/components/wpa_supplicant/include -I../SDK/esp-idf/components/wpa_supplicant/port/include -I../SDK/esp-idf/components/wpa_supplicant/include/esp_supplicant -I../components/ping_service/include -I../components/database/include -I../components/rtc_service/include -I../components/system_service/include -I../components/adc/include -I../components/pwm/include -mlongcalls -Wno-frame-address -ffunction-sections -fdata-sections -fstrict-volatile-bitfields -Wall -Werror=all -Wno-error=unused-function -Wno-error=unused-but-set-variable -Wno-error=unused-variable -Wno-error=deprecated-declarations -Wextra -Wno-unused-parameter -Wno-sign-compare -ggdb -Og -std=gnu99 -Wno-old-style-declaration -D_GNU_SOURCE -DIDF_VER=\"v4.3-dev-2568-g59869bf61\" -DESP_PLATFORM -MD -MT esp-idf/gpio_osal/CMakeFiles/__idf_gpio_osal.dir/src/gpio_handler.c.obj -MF esp-idf\gpio_osal\CMakeFiles\__idf_gpio_osal.dir\src\gpio_handler.c.obj.d -o esp-idf/gpio_osal/CMakeFiles/__idf_gpio_osal.dir/src/gpio_handler.c.obj -c ../components/gpio_osal/src/gpio_handler.c
In file included from ../SDK/esp-idf/components/freertos/port/xtensa/include/freertos/portmacro.h:46,
from ../SDK/esp-idf/components/freertos/include/freertos/portable.h:52,
from ../SDK/esp-idf/components/freertos/include/freertos/FreeRTOS.h:64,
from ../components/nlg_os/include/nlg_os.h:23,
from ../components/gpio_osal/src/gpio_handler.c:7:
../SDK/esp-idf/components/esp_timer/include/esp_timer.h:229:26: error: unknown type name 'FILE'
esp_err_t esp_timer_dump(FILE* stream);
^~~~
../SDK/esp-idf/components/esp_timer/include/esp_timer.h:229:26: note: 'FILE' is defined in header '<stdio.h>'; did you forget to '#include <stdio.h>'?
../SDK/esp-idf/components/esp_timer/include/esp_timer.h:46:1:
+#include <stdio.h>
../SDK/esp-idf/components/esp_timer/include/esp_timer.h:229:26:
esp_err_t esp_timer_dump(FILE* stream);
^~~~
[13/212] Building C object esp-idf/xmodem/CMakeFiles/__idf_xmodem.dir/src/xmodem.c.obj
FAILED: esp-idf/xmodem/CMakeFiles/__idf_xmodem.dir/src/xmodem.c.obj
ccache C:\Users\.espressif\tools\xtensa-esp32-elf\esp-2020r3-8.4.0\xtensa-esp32-elf\bin\xtensa-esp32-elf-gcc.exe -DMBEDTLS_CONFIG_FILE=\"mbedtls/esp_config.h\" -Iconfig -I../components/xmodem/include -I../SDK/esp-idf/components/newlib/platform_include -I../SDK/esp-idf/components/freertos/include -I../SDK/esp-idf/components/freertos/port/xtensa/include -I../SDK/esp-idf/components/esp_hw_support/include -I../SDK/esp-idf/components/esp_hw_support/port/esp32/. -I../SDK/esp-idf/components/heap/include -I../SDK/esp-idf/components/log/include -I../SDK/esp-idf/components/lwip/include/apps -I../SDK/esp-idf/components/lwip/include/apps/sntp -I../SDK/esp-idf/components/lwip/lwip/src/include -I../SDK/esp-idf/components/lwip/port/esp32/include -I../SDK/esp-idf/components/lwip/port/esp32/include/arch -I../SDK/esp-idf/components/soc/include -I../SDK/esp-idf/components/soc/esp32/. -I../SDK/esp-idf/components/soc/esp32/include -I../SDK/esp-idf/components/hal/esp32/include -I../SDK/esp-idf/components/hal/include -I../SDK/esp-idf/components/esp_rom/include -I../SDK/esp-idf/components/esp_rom/esp32 -I../SDK/esp-idf/components/esp_common/include -I../SDK/esp-idf/components/esp_system/include -I../SDK/esp-idf/components/esp32/include -I../SDK/esp-idf/components/driver/include -I../SDK/esp-idf/components/driver/esp32/include -I../SDK/esp-idf/components/esp_ringbuf/include -I../SDK/esp-idf/components/efuse/include -I../SDK/esp-idf/components/efuse/esp32/include -I../SDK/esp-idf/components/xtensa/include -I../SDK/esp-idf/components/xtensa/esp32/include -I../SDK/esp-idf/components/espcoredump/include -I../SDK/esp-idf/components/esp_timer/include -I../SDK/esp-idf/components/esp_ipc/include -I../SDK/esp-idf/components/esp_pm/include -I../SDK/esp-idf/components/vfs/include -I../SDK/esp-idf/components/esp_wifi/include -I../SDK/esp-idf/components/esp_wifi/esp32/include -I../SDK/esp-idf/components/esp_event/include -I../SDK/esp-idf/components/esp_netif/include -I../SDK/esp-idf/components/tcpip_adapter/include -I../SDK/esp-idf/components/app_trace/include -I../components/gw_config/include -I../components/debug_log/include -I../components/nlg_os/include -I../components/uart_osal/include -I../components/uart_osal/port/include -I../components/ring_buffer/include -I../main/include -I../main/source/mib_parser/include -I../main/lib/include -I../main/source/devices/include -I../main/include/audio_headers -I../components/routing_service/include -I../components/crc16/include -I../components/cli_service/include -I../components/spiffs/spiffs/include -I../components/spiffs/spiffs/spiffs/src -I../components/bt_osal/include -I../SDK/esp-idf/components/bt/include -I../SDK/esp-idf/components/bt/common/osi/include -I../SDK/esp-idf/components/bt/host/bluedroid/api/include/api -I../SDK/esp-idf/components/nvs_flash/include -I../SDK/esp-idf/components/spi_flash/include -I../SDK/esp-idf/components/mbedtls/port/include -I../SDK/esp-idf/components/mbedtls/mbedtls/include -I../SDK/esp-idf/components/mbedtls/esp_crt_bundle/include -I../components/middleware_service/include -I../components/kaa/src -I../components/kaa/src/kaa -I../components/kaa/src/kaa/platform-impl/esp8266/platform -I../components/kaa/src/extensions/bootstrap -I../components/kaa/src/extensions/configuration -I../components/kaa/src/extensions/event -I../components/kaa/src/extensions/logging -I../components/kaa/src/extensions/notification -I../components/kaa/src/extensions/profile -I../components/kaa/tools/kaa_encryption/rsa_key_gen/include -I../components/kaa/src/extensions/user -I../components/nlg_fota/nbl-gw-fota/fota/inc -I../components/nlg_fota/port/app/include -I../components/nlg_fota/port/platform/include -I../components/kgw_fota/include -I../components/rmt/include -I../components/wifi_osal/include -I../components/led_service/include -I../components/gpio_osal/include -I../components/i2c_service/include -I../components/board_init/include -I../components/board_init/common_handler -I../components/spi_flash_os/include -I../components/event_manager/include -I../components/firmware_update/include -I../components/nbl-mib/nbl-mib-service/includes -I../components/nbl-mib/port/include -I../SDK/esp-idf/components/wpa_supplicant/include -I../SDK/esp-idf/components/wpa_supplicant/port/include -I../SDK/esp-idf/components/wpa_supplicant/include/esp_supplicant -I../components/ping_service/include -I../components/database/include -I../components/rtc_service/include -I../components/system_service/include -I../components/adc/include -I../components/pwm/include -mlongcalls -Wno-frame-address -ffunction-sections -fdata-sections -fstrict-volatile-bitfields -Wall -Werror=all -Wno-error=unused-function -Wno-error=unused-but-set-variable -Wno-error=unused-variable -Wno-error=deprecated-declarations -Wextra -Wno-unused-parameter -Wno-sign-compare -ggdb -Og -std=gnu99 -Wno-old-style-declaration -D_GNU_SOURCE -DIDF_VER=\"v4.3-dev-2568-g59869bf61\" -DESP_PLATFORM -MD -MT esp-idf/xmodem/CMakeFiles/__idf_xmodem.dir/src/xmodem.c.obj -MF esp-idf\xmodem\CMakeFiles\__idf_xmodem.dir\src\xmodem.c.obj.d -o esp-idf/xmodem/CMakeFiles/__idf_xmodem.dir/src/xmodem.c.obj -c ../components/xmodem/src/xmodem.c
In file included from ../SDK/esp-idf/components/freertos/port/xtensa/include/freertos/portmacro.h:46,
from ../SDK/esp-idf/components/freertos/include/freertos/portable.h:52,
from ../SDK/esp-idf/components/freertos/include/freertos/FreeRTOS.h:64,
from ../components/nlg_os/include/nlg_os.h:23,
from ../components/gw_config/include/common_config.h:4,
from ../components/xmodem/src/xmodem.c:30:
../SDK/esp-idf/components/esp_timer/include/esp_timer.h:229:26: error: unknown type name 'FILE'
esp_err_t esp_timer_dump(FILE* stream);
^~~~
../SDK/esp-idf/components/esp_timer/include/esp_timer.h:229:26: note: 'FILE' is defined in header '<stdio.h>'; did you forget to '#include <stdio.h>'?
../SDK/esp-idf/components/esp_timer/include/esp_timer.h:46:1:
+#include <stdio.h>
../SDK/esp-idf/components/esp_timer/include/esp_timer.h:229:26:
esp_err_t esp_timer_dump(FILE* stream);
^~~~
../components/xmodem/src/xmodem.c:61:1: error: unknown type name 'FILE'
FILE *fd_xmodem;
^~~~
../components/xmodem/src/xmodem.c:61:1: note: 'FILE' is defined in header '<stdio.h>'; did you forget to '#include <stdio.h>'?
../components/xmodem/src/xmodem.c:39:1:
+#include <stdio.h>
#endif
../components/xmodem/src/xmodem.c:61:1:
FILE *fd_xmodem;
^~~~
../components/xmodem/src/xmodem.c: In function 'ReceiveXmodem':
../components/xmodem/src/xmodem.c:1061:10: error: implicit declaration of function 'fwrite' [-Werror=implicit-function-declaration]
if(!(fwrite(pX->buf.xbuf.aDataBuf,1,writeLength,fd_xmodem))) {
^~~~~~
../components/xmodem/src/xmodem.c:1061:10: warning: incompatible implicit declaration of built-in function 'fwrite'
../components/xmodem/src/xmodem.c:1061:10: note: include '<stdio.h>' or provide a declaration of 'fwrite'
../components/xmodem/src/xmodem.c: In function 'SendXmodem':
../components/xmodem/src/xmodem.c:1203:3: error: implicit declaration of function 'printf' [-Werror=implicit-function-declaration]
printf("\n fail in file size ....");
^~~~~~
../components/xmodem/src/xmodem.c:1203:3: warning: incompatible implicit declaration of built-in function 'printf'
../components/xmodem/src/xmodem.c:1203:3: note: include '<stdio.h>' or provide a declaration of 'printf'
../components/xmodem/src/xmodem.c:1306:8: error: implicit declaration of function 'fseek'; did you mean 'lseek'? [-Werror=implicit-function-declaration]
if(fseek(fd_xmodem, XMODEM_BUF_SIZE * xmodem_rcv_count,SEEK_SET)) {
^~~~~
lseek
../components/xmodem/src/xmodem.c:1309:8: error: implicit declaration of function 'fread'; did you mean 'read'? [-Werror=implicit-function-declaration]
if(fread(pX->buf.xbuf.aDataBuf,1,sizeof(pX->buf.xbuf.aDataBuf),fd_xmodem)){
^~~~~
read
../components/xmodem/src/xmodem.c: In function 'XReceive':
../components/xmodem/src/xmodem.c:1719:5: error: implicit declaration of function 'snprintf' [-Werror=implicit-function-declaration]
snprintf((char *)filename,sizeof(filename),"/spiffs/%s",szFilename);
^~~~~~~~
../components/xmodem/src/xmodem.c:1719:5: warning: incompatible implicit declaration of built-in function 'snprintf'
../components/xmodem/src/xmodem.c:1719:5: note: include '<stdio.h>' or provide a declaration of 'snprintf'
../components/xmodem/src/xmodem.c:1722:17: error: implicit declaration of function 'fopen' [-Werror=implicit-function-declaration]
fd_xmodem = fopen(((const char *) filename),"a");
^~~~~
../components/xmodem/src/xmodem.c:1722:17: note: 'fopen' is defined in header '<stdio.h>'; did you forget to '#include <stdio.h>'?
../components/xmodem/src/xmodem.c:1722:15: warning: assignment to 'int *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
fd_xmodem = fopen(((const char *) filename),"a");
^
../components/xmodem/src/xmodem.c:1744:5: error: implicit declaration of function 'fclose'; did you mean 'close'? [-Werror=implicit-function-declaration]
fclose(fd_xmodem);
^~~~~~
close
../components/xmodem/src/xmodem.c: In function 'XSend':
../components/xmodem/src/xmodem.c:1807:5: warning: incompatible implicit declaration of built-in function 'snprintf'
snprintf((char *)filename,sizeof(filename),"/spiffs/%s",szFilename);
^~~~~~~~
../components/xmodem/src/xmodem.c:1807:5: note: include '<stdio.h>' or provide a declaration of 'snprintf'
../components/xmodem/src/xmodem.c:1808:15: warning: assignment to 'int *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
fd_xmodem = fopen(((const char *)filename),"r");
^
cc1.exe: some warnings being treated as errors
ninja: build stopped: subcommand failed.
ninja failed with exit code 1
Currently we are using esp-idf v3.2 in our project and all the functionalties are working fine, but there are some limitations in coap and dtls related components and due to that we need to port latest ESP-IDF v4.3-dev-2586-g526f68239 in our project. We have already switched from makefile to CMake compilation build procedure and we can see our project source files are able to compiled. But we face some issues in SDK file compilation, which shows issues as below compilation error logs.
As per the logs, it says we need to include stdio.h header file in the esp_timer.h header file, but if we see this header file, stdio.h file is already included in this.
Would you please check the below issues and let us know if anything is missing in build procedure and provide possible resolution for that.
Debug logs:
//after idf.py build command//
Running ninja in directory e:\
Executing "ninja all"...
[1/214] Performing build step for 'bootloader'
ninja: no work to do.
[8/212] Building C object esp-idf/cli_service/CMakeFiles/__idf_cli_service.dir/src/FreeRTOS_CLI.c.obj
FAILED: esp-idf/cli_service/CMakeFiles/__idf_cli_service.dir/src/FreeRTOS_CLI.c.obj
ccache C:\Users\.espressif\tools\xtensa-esp32-elf\esp-2020r3-8.4.0\xtensa-esp32-elf\bin\xtensa-esp32-elf-gcc.exe -DMBEDTLS_CONFIG_FILE=\"mbedtls/esp_config.h\" -Iconfig -I../components/cli_service/include -I../SDK/esp-idf/components/newlib/platform_include -I../SDK/esp-idf/components/freertos/include -I../SDK/esp-idf/components/freertos/port/xtensa/include -I../SDK/esp-idf/components/esp_hw_support/include -I../SDK/esp-idf/components/esp_hw_support/port/esp32/. -I../SDK/esp-idf/components/heap/include -I../SDK/esp-idf/components/log/include -I../SDK/esp-idf/components/lwip/include/apps -I../SDK/esp-idf/components/lwip/include/apps/sntp -I../SDK/esp-idf/components/lwip/lwip/src/include -I../SDK/esp-idf/components/lwip/port/esp32/include -I../SDK/esp-idf/components/lwip/port/esp32/include/arch -I../SDK/esp-idf/components/soc/include -I../SDK/esp-idf/components/soc/esp32/. -I../SDK/esp-idf/components/soc/esp32/include -I../SDK/esp-idf/components/hal/esp32/include -I../SDK/esp-idf/components/hal/include -I../SDK/esp-idf/components/esp_rom/include -I../SDK/esp-idf/components/esp_rom/esp32 -I../SDK/esp-idf/components/esp_common/include -I../SDK/esp-idf/components/esp_system/include -I../SDK/esp-idf/components/esp32/include -I../SDK/esp-idf/components/driver/include -I../SDK/esp-idf/components/driver/esp32/include -I../SDK/esp-idf/components/esp_ringbuf/include -I../SDK/esp-idf/components/efuse/include -I../SDK/esp-idf/components/efuse/esp32/include -I../SDK/esp-idf/components/xtensa/include -I../SDK/esp-idf/components/xtensa/esp32/include -I../SDK/esp-idf/components/espcoredump/include -I../SDK/esp-idf/components/esp_timer/include -I../SDK/esp-idf/components/esp_ipc/include -I../SDK/esp-idf/components/esp_pm/include -I../SDK/esp-idf/components/vfs/include -I../SDK/esp-idf/components/esp_wifi/include -I../SDK/esp-idf/components/esp_wifi/esp32/include -I../SDK/esp-idf/components/esp_event/include -I../SDK/esp-idf/components/esp_netif/include -I../SDK/esp-idf/components/tcpip_adapter/include -I../SDK/esp-idf/components/app_trace/include -I../components/nlg_os/include -I../components/debug_log/include -I../components/gw_config/include -I../components/wifi_osal/include -I../components/led_service/include -I../components/gpio_osal/include -I../components/i2c_service/include -I../components/board_init/include -I../components/board_init/common_handler -I../components/uart_osal/include -I../components/uart_osal/port/include -I../components/ring_buffer/include -I../main/include -I../main/source/mib_parser/include -I../main/lib/include -I../main/source/devices/include -I../main/include/audio_headers -I../components/routing_service/include -I../components/crc16/include -I../components/xmodem/include -I../components/spiffs/spiffs/include -I../components/spiffs/spiffs/spiffs/src -I../components/bt_osal/include -I../SDK/esp-idf/components/bt/include -I../SDK/esp-idf/components/bt/common/osi/include -I../SDK/esp-idf/components/bt/host/bluedroid/api/include/api -I../SDK/esp-idf/components/nvs_flash/include -I../SDK/esp-idf/components/spi_flash/include -I../SDK/esp-idf/components/mbedtls/port/include -I../SDK/esp-idf/components/mbedtls/mbedtls/include -I../SDK/esp-idf/components/mbedtls/esp_crt_bundle/include -I../components/middleware_service/include -I../components/kaa/src -I../components/kaa/src/kaa -I../components/kaa/src/kaa/platform-impl/esp8266/platform -I../components/kaa/src/extensions/bootstrap -I../components/kaa/src/extensions/configuration -I../components/kaa/src/extensions/event -I../components/kaa/src/extensions/logging -I../components/kaa/src/extensions/notification -I../components/kaa/src/extensions/profile -I../components/kaa/tools/kaa_encryption/rsa_key_gen/include -I../components/kaa/src/extensions/user -I../components/nlg_fota/nbl-gw-fota/fota/inc -I../components/nlg_fota/port/app/include -I../components/nlg_fota/port/platform/include -I../components/kgw_fota/include -I../components/rmt/include -I../components/spi_flash_os/include -I../components/event_manager/include -I../components/firmware_update/include -I../components/nbl-mib/nbl-mib-service/includes -I../components/nbl-mib/port/include -I../SDK/esp-idf/components/wpa_supplicant/include -I../SDK/esp-idf/components/wpa_supplicant/port/include -I../SDK/esp-idf/components/wpa_supplicant/include/esp_supplicant -I../components/ping_service/include -I../components/database/include -I../components/rtc_service/include -I../components/system_service/include -I../components/adc/include -I../components/pwm/include -mlongcalls -Wno-frame-address -ffunction-sections -fdata-sections -fstrict-volatile-bitfields -Wall -Werror=all -Wno-error=unused-function -Wno-error=unused-but-set-variable -Wno-error=unused-variable -Wno-error=deprecated-declarations -Wextra -Wno-unused-parameter -Wno-sign-compare -ggdb -Og -std=gnu99 -Wno-old-style-declaration -D_GNU_SOURCE -DIDF_VER=\"v4.3-dev-2568-g59869bf61\" -DESP_PLATFORM -MD -MT esp-idf/cli_service/CMakeFiles/__idf_cli_service.dir/src/FreeRTOS_CLI.c.obj -MF esp-idf\cli_service\CMakeFiles\__idf_cli_service.dir\src\FreeRTOS_CLI.c.obj.d -o esp-idf/cli_service/CMakeFiles/__idf_cli_service.dir/src/FreeRTOS_CLI.c.obj -c ../components/cli_service/src/FreeRTOS_CLI.c
In file included from ../SDK/esp-idf/components/freertos/port/xtensa/include/freertos/portmacro.h:46,
from ../SDK/esp-idf/components/freertos/include/freertos/portable.h:52,
from ../SDK/esp-idf/components/freertos/include/freertos/FreeRTOS.h:64,
from ../components/nlg_os/include/nlg_os.h:23,
from ../components/cli_service/src/FreeRTOS_CLI.c:32:
../SDK/esp-idf/components/esp_timer/include/esp_timer.h:229:26: error: unknown type name 'FILE'
esp_err_t esp_timer_dump(FILE* stream);
^~~~
../SDK/esp-idf/components/esp_timer/include/esp_timer.h:229:26: note: 'FILE' is defined in header '<stdio.h>'; did you forget to '#include <stdio.h>'?
../SDK/esp-idf/components/esp_timer/include/esp_timer.h:46:1:
+#include <stdio.h>
../SDK/esp-idf/components/esp_timer/include/esp_timer.h:229:26:
esp_err_t esp_timer_dump(FILE* stream);
^~~~
[10/212] Building C object esp-idf/i2c_service/CMakeFiles/__idf_i2c_service.dir/src/i2c_expander.c.obj
FAILED: esp-idf/i2c_service/CMakeFiles/__idf_i2c_service.dir/src/i2c_expander.c.obj
ccache C:\Users\.espressif\tools\xtensa-esp32-elf\esp-2020r3-8.4.0\xtensa-esp32-elf\bin\xtensa-esp32-elf-gcc.exe -DMBEDTLS_CONFIG_FILE=\"mbedtls/esp_config.h\" -Iconfig -I../components/i2c_service/include -I../SDK/esp-idf/components/newlib/platform_include -I../SDK/esp-idf/components/freertos/include -I../SDK/esp-idf/components/freertos/port/xtensa/include -I../SDK/esp-idf/components/esp_hw_support/include -I../SDK/esp-idf/components/esp_hw_support/port/esp32/. -I../SDK/esp-idf/components/heap/include -I../SDK/esp-idf/components/log/include -I../SDK/esp-idf/components/lwip/include/apps -I../SDK/esp-idf/components/lwip/include/apps/sntp -I../SDK/esp-idf/components/lwip/lwip/src/include -I../SDK/esp-idf/components/lwip/port/esp32/include -I../SDK/esp-idf/components/lwip/port/esp32/include/arch -I../SDK/esp-idf/components/soc/include -I../SDK/esp-idf/components/soc/esp32/. -I../SDK/esp-idf/components/soc/esp32/include -I../SDK/esp-idf/components/hal/esp32/include -I../SDK/esp-idf/components/hal/include -I../SDK/esp-idf/components/esp_rom/include -I../SDK/esp-idf/components/esp_rom/esp32 -I../SDK/esp-idf/components/esp_common/include -I../SDK/esp-idf/components/esp_system/include -I../SDK/esp-idf/components/esp32/include -I../SDK/esp-idf/components/driver/include -I../SDK/esp-idf/components/driver/esp32/include -I../SDK/esp-idf/components/esp_ringbuf/include -I../SDK/esp-idf/components/efuse/include -I../SDK/esp-idf/components/efuse/esp32/include -I../SDK/esp-idf/components/xtensa/include -I../SDK/esp-idf/components/xtensa/esp32/include -I../SDK/esp-idf/components/espcoredump/include -I../SDK/esp-idf/components/esp_timer/include -I../SDK/esp-idf/components/esp_ipc/include -I../SDK/esp-idf/components/esp_pm/include -I../SDK/esp-idf/components/vfs/include -I../SDK/esp-idf/components/esp_wifi/include -I../SDK/esp-idf/components/esp_wifi/esp32/include -I../SDK/esp-idf/components/esp_event/include -I../SDK/esp-idf/components/esp_netif/include -I../SDK/esp-idf/components/tcpip_adapter/include -I../SDK/esp-idf/components/app_trace/include -I../components/nlg_os/include -I../components/debug_log/include -I../components/gw_config/include -I../components/wifi_osal/include -I../components/led_service/include -I../components/gpio_osal/include -I../components/board_init/include -I../components/board_init/common_handler -I../components/uart_osal/include -I../components/uart_osal/port/include -I../components/ring_buffer/include -I../main/include -I../main/source/mib_parser/include -I../main/lib/include -I../main/source/devices/include -I../main/include/audio_headers -I../components/routing_service/include -I../components/crc16/include -I../components/cli_service/include -I../components/xmodem/include -I../components/spiffs/spiffs/include -I../components/spiffs/spiffs/spiffs/src -I../components/bt_osal/include -I../SDK/esp-idf/components/bt/include -I../SDK/esp-idf/components/bt/common/osi/include -I../SDK/esp-idf/components/bt/host/bluedroid/api/include/api -I../SDK/esp-idf/components/nvs_flash/include -I../SDK/esp-idf/components/spi_flash/include -I../SDK/esp-idf/components/mbedtls/port/include -I../SDK/esp-idf/components/mbedtls/mbedtls/include -I../SDK/esp-idf/components/mbedtls/esp_crt_bundle/include -I../components/middleware_service/include -I../components/kaa/src -I../components/kaa/src/kaa -I../components/kaa/src/kaa/platform-impl/esp8266/platform -I../components/kaa/src/extensions/bootstrap -I../components/kaa/src/extensions/configuration -I../components/kaa/src/extensions/event -I../components/kaa/src/extensions/logging -I../components/kaa/src/extensions/notification -I../components/kaa/src/extensions/profile -I../components/kaa/tools/kaa_encryption/rsa_key_gen/include -I../components/kaa/src/extensions/user -I../components/nlg_fota/nbl-gw-fota/fota/inc -I../components/nlg_fota/port/app/include -I../components/nlg_fota/port/platform/include -I../components/kgw_fota/include -I../components/rmt/include -I../components/spi_flash_os/include -I../components/event_manager/include -I../components/firmware_update/include -I../components/nbl-mib/nbl-mib-service/includes -I../components/nbl-mib/port/include -I../SDK/esp-idf/components/wpa_supplicant/include -I../SDK/esp-idf/components/wpa_supplicant/port/include -I../SDK/esp-idf/components/wpa_supplicant/include/esp_supplicant -I../components/ping_service/include -I../components/database/include -I../components/rtc_service/include -I../components/system_service/include -I../components/adc/include -I../components/pwm/include -mlongcalls -Wno-frame-address -ffunction-sections -fdata-sections -fstrict-volatile-bitfields -Wall -Werror=all -Wno-error=unused-function -Wno-error=unused-but-set-variable -Wno-error=unused-variable -Wno-error=deprecated-declarations -Wextra -Wno-unused-parameter -Wno-sign-compare -ggdb -Og -std=gnu99 -Wno-old-style-declaration -D_GNU_SOURCE -DIDF_VER=\"v4.3-dev-2568-g59869bf61\" -DESP_PLATFORM -MD -MT esp-idf/i2c_service/CMakeFiles/__idf_i2c_service.dir/src/i2c_expander.c.obj -MF esp-idf\i2c_service\CMakeFiles\__idf_i2c_service.dir\src\i2c_expander.c.obj.d -o esp-idf/i2c_service/CMakeFiles/__idf_i2c_service.dir/src/i2c_expander.c.obj -c ../components/i2c_service/src/i2c_expander.c
In file included from ../SDK/esp-idf/components/freertos/port/xtensa/include/freertos/portmacro.h:46,
from ../SDK/esp-idf/components/freertos/include/freertos/portable.h:52,
from ../SDK/esp-idf/components/freertos/include/freertos/FreeRTOS.h:64,
from ../components/nlg_os/include/nlg_os.h:23,
from ../components/i2c_service/src/i2c_expander.c:4:
../SDK/esp-idf/components/esp_timer/include/esp_timer.h:229:26: error: unknown type name 'FILE'
esp_err_t esp_timer_dump(FILE* stream);
^~~~
../SDK/esp-idf/components/esp_timer/include/esp_timer.h:229:26: note: 'FILE' is defined in header '<stdio.h>'; did you forget to '#include <stdio.h>'?
../SDK/esp-idf/components/esp_timer/include/esp_timer.h:46:1:
+#include <stdio.h>
../SDK/esp-idf/components/esp_timer/include/esp_timer.h:229:26:
esp_err_t esp_timer_dump(FILE* stream);
^~~~
[11/212] Building C object esp-idf/ring_buffer/CMakeFiles/__idf_ring_buffer.dir/src/ringbuf.c.obj
FAILED: esp-idf/ring_buffer/CMakeFiles/__idf_ring_buffer.dir/src/ringbuf.c.obj
ccache C:\Users\.espressif\tools\xtensa-esp32-elf\esp-2020r3-8.4.0\xtensa-esp32-elf\bin\xtensa-esp32-elf-gcc.exe -DMBEDTLS_CONFIG_FILE=\"mbedtls/esp_config.h\" -Iconfig -I../components/ring_buffer/include -I../SDK/esp-idf/components/newlib/platform_include -I../SDK/esp-idf/components/freertos/include -I../SDK/esp-idf/components/freertos/port/xtensa/include -I../SDK/esp-idf/components/esp_hw_support/include -I../SDK/esp-idf/components/esp_hw_support/port/esp32/. -I../SDK/esp-idf/components/heap/include -I../SDK/esp-idf/components/log/include -I../SDK/esp-idf/components/lwip/include/apps -I../SDK/esp-idf/components/lwip/include/apps/sntp -I../SDK/esp-idf/components/lwip/lwip/src/include -I../SDK/esp-idf/components/lwip/port/esp32/include -I../SDK/esp-idf/components/lwip/port/esp32/include/arch -I../SDK/esp-idf/components/soc/include -I../SDK/esp-idf/components/soc/esp32/. -I../SDK/esp-idf/components/soc/esp32/include -I../SDK/esp-idf/components/hal/esp32/include -I../SDK/esp-idf/components/hal/include -I../SDK/esp-idf/components/esp_rom/include -I../SDK/esp-idf/components/esp_rom/esp32 -I../SDK/esp-idf/components/esp_common/include -I../SDK/esp-idf/components/esp_system/include -I../SDK/esp-idf/components/esp32/include -I../SDK/esp-idf/components/driver/include -I../SDK/esp-idf/components/driver/esp32/include -I../SDK/esp-idf/components/esp_ringbuf/include -I../SDK/esp-idf/components/efuse/include -I../SDK/esp-idf/components/efuse/esp32/include -I../SDK/esp-idf/components/xtensa/include -I../SDK/esp-idf/components/xtensa/esp32/include -I../SDK/esp-idf/components/espcoredump/include -I../SDK/esp-idf/components/esp_timer/include -I../SDK/esp-idf/components/esp_ipc/include -I../SDK/esp-idf/components/esp_pm/include -I../SDK/esp-idf/components/vfs/include -I../SDK/esp-idf/components/esp_wifi/include -I../SDK/esp-idf/components/esp_wifi/esp32/include -I../SDK/esp-idf/components/esp_event/include -I../SDK/esp-idf/components/esp_netif/include -I../SDK/esp-idf/components/tcpip_adapter/include -I../SDK/esp-idf/components/app_trace/include -I../components/nlg_os/include -I../components/debug_log/include -I../components/gw_config/include -I../components/wifi_osal/include -I../components/led_service/include -I../components/gpio_osal/include -I../components/i2c_service/include -I../components/board_init/include -I../components/board_init/common_handler -I../components/uart_osal/include -I../components/uart_osal/port/include -I../main/include -I../main/source/mib_parser/include -I../main/lib/include -I../main/source/devices/include -I../main/include/audio_headers -I../components/routing_service/include -I../components/crc16/include -I../components/cli_service/include -I../components/xmodem/include -I../components/spiffs/spiffs/include -I../components/spiffs/spiffs/spiffs/src -I../components/bt_osal/include -I../SDK/esp-idf/components/bt/include -I../SDK/esp-idf/components/bt/common/osi/include -I../SDK/esp-idf/components/bt/host/bluedroid/api/include/api -I../SDK/esp-idf/components/nvs_flash/include -I../SDK/esp-idf/components/spi_flash/include -I../SDK/esp-idf/components/mbedtls/port/include -I../SDK/esp-idf/components/mbedtls/mbedtls/include -I../SDK/esp-idf/components/mbedtls/esp_crt_bundle/include -I../components/middleware_service/include -I../components/kaa/src -I../components/kaa/src/kaa -I../components/kaa/src/kaa/platform-impl/esp8266/platform -I../components/kaa/src/extensions/bootstrap -I../components/kaa/src/extensions/configuration -I../components/kaa/src/extensions/event -I../components/kaa/src/extensions/logging -I../components/kaa/src/extensions/notification -I../components/kaa/src/extensions/profile -I../components/kaa/tools/kaa_encryption/rsa_key_gen/include -I../components/kaa/src/extensions/user -I../components/nlg_fota/nbl-gw-fota/fota/inc -I../components/nlg_fota/port/app/include -I../components/nlg_fota/port/platform/include -I../components/kgw_fota/include -I../components/rmt/include -I../components/spi_flash_os/include -I../components/event_manager/include -I../components/firmware_update/include -I../components/nbl-mib/nbl-mib-service/includes -I../components/nbl-mib/port/include -I../SDK/esp-idf/components/wpa_supplicant/include -I../SDK/esp-idf/components/wpa_supplicant/port/include -I../SDK/esp-idf/components/wpa_supplicant/include/esp_supplicant -I../components/ping_service/include -I../components/database/include -I../components/rtc_service/include -I../components/system_service/include -I../components/adc/include -I../components/pwm/include -mlongcalls -Wno-frame-address -ffunction-sections -fdata-sections -fstrict-volatile-bitfields -Wall -Werror=all -Wno-error=unused-function -Wno-error=unused-but-set-variable -Wno-error=unused-variable -Wno-error=deprecated-declarations -Wextra -Wno-unused-parameter -Wno-sign-compare -ggdb -Og -std=gnu99 -Wno-old-style-declaration -D_GNU_SOURCE -DIDF_VER=\"v4.3-dev-2568-g59869bf61\" -DESP_PLATFORM -MD -MT esp-idf/ring_buffer/CMakeFiles/__idf_ring_buffer.dir/src/ringbuf.c.obj -MF esp-idf\ring_buffer\CMakeFiles\__idf_ring_buffer.dir\src\ringbuf.c.obj.d -o esp-idf/ring_buffer/CMakeFiles/__idf_ring_buffer.dir/src/ringbuf.c.obj -c ../components/ring_buffer/src/ringbuf.c
In file included from ../SDK/esp-idf/components/freertos/port/xtensa/include/freertos/portmacro.h:46,
from ../SDK/esp-idf/components/freertos/include/freertos/portable.h:52,
from ../SDK/esp-idf/components/freertos/include/freertos/FreeRTOS.h:64,
from ../components/nlg_os/include/nlg_os.h:23,
from ../components/ring_buffer/src/ringbuf.c:15:
../SDK/esp-idf/components/esp_timer/include/esp_timer.h:229:26: error: unknown type name 'FILE'
esp_err_t esp_timer_dump(FILE* stream);
^~~~
../SDK/esp-idf/components/esp_timer/include/esp_timer.h:229:26: note: 'FILE' is defined in header '<stdio.h>'; did you forget to '#include <stdio.h>'?
../SDK/esp-idf/components/esp_timer/include/esp_timer.h:46:1:
+#include <stdio.h>
../SDK/esp-idf/components/esp_timer/include/esp_timer.h:229:26:
esp_err_t esp_timer_dump(FILE* stream);
^~~~
[12/212] Building C object esp-idf/gpio_osal/CMakeFiles/__idf_gpio_osal.dir/src/gpio_handler.c.obj
FAILED: esp-idf/gpio_osal/CMakeFiles/__idf_gpio_osal.dir/src/gpio_handler.c.obj
ccache C:\Users\.espressif\tools\xtensa-esp32-elf\esp-2020r3-8.4.0\xtensa-esp32-elf\bin\xtensa-esp32-elf-gcc.exe -DMBEDTLS_CONFIG_FILE=\"mbedtls/esp_config.h\" -Iconfig -I../components/gpio_osal/include -I../SDK/esp-idf/components/newlib/platform_include -I../SDK/esp-idf/components/freertos/include -I../SDK/esp-idf/components/freertos/port/xtensa/include -I../SDK/esp-idf/components/esp_hw_support/include -I../SDK/esp-idf/components/esp_hw_support/port/esp32/. -I../SDK/esp-idf/components/heap/include -I../SDK/esp-idf/components/log/include -I../SDK/esp-idf/components/lwip/include/apps -I../SDK/esp-idf/components/lwip/include/apps/sntp -I../SDK/esp-idf/components/lwip/lwip/src/include -I../SDK/esp-idf/components/lwip/port/esp32/include -I../SDK/esp-idf/components/lwip/port/esp32/include/arch -I../SDK/esp-idf/components/soc/include -I../SDK/esp-idf/components/soc/esp32/. -I../SDK/esp-idf/components/soc/esp32/include -I../SDK/esp-idf/components/hal/esp32/include -I../SDK/esp-idf/components/hal/include -I../SDK/esp-idf/components/esp_rom/include -I../SDK/esp-idf/components/esp_rom/esp32 -I../SDK/esp-idf/components/esp_common/include -I../SDK/esp-idf/components/esp_system/include -I../SDK/esp-idf/components/esp32/include -I../SDK/esp-idf/components/driver/include -I../SDK/esp-idf/components/driver/esp32/include -I../SDK/esp-idf/components/esp_ringbuf/include -I../SDK/esp-idf/components/efuse/include -I../SDK/esp-idf/components/efuse/esp32/include -I../SDK/esp-idf/components/xtensa/include -I../SDK/esp-idf/components/xtensa/esp32/include -I../SDK/esp-idf/components/espcoredump/include -I../SDK/esp-idf/components/esp_timer/include -I../SDK/esp-idf/components/esp_ipc/include -I../SDK/esp-idf/components/esp_pm/include -I../SDK/esp-idf/components/vfs/include -I../SDK/esp-idf/components/esp_wifi/include -I../SDK/esp-idf/components/esp_wifi/esp32/include -I../SDK/esp-idf/components/esp_event/include -I../SDK/esp-idf/components/esp_netif/include -I../SDK/esp-idf/components/tcpip_adapter/include -I../SDK/esp-idf/components/app_trace/include -I../components/nlg_os/include -I../components/debug_log/include -I../components/gw_config/include -I../components/wifi_osal/include -I../components/led_service/include -I../components/i2c_service/include -I../components/board_init/include -I../components/board_init/common_handler -I../components/uart_osal/include -I../components/uart_osal/port/include -I../components/ring_buffer/include -I../main/include -I../main/source/mib_parser/include -I../main/lib/include -I../main/source/devices/include -I../main/include/audio_headers -I../components/routing_service/include -I../components/crc16/include -I../components/cli_service/include -I../components/xmodem/include -I../components/spiffs/spiffs/include -I../components/spiffs/spiffs/spiffs/src -I../components/bt_osal/include -I../SDK/esp-idf/components/bt/include -I../SDK/esp-idf/components/bt/common/osi/include -I../SDK/esp-idf/components/bt/host/bluedroid/api/include/api -I../SDK/esp-idf/components/nvs_flash/include -I../SDK/esp-idf/components/spi_flash/include -I../SDK/esp-idf/components/mbedtls/port/include -I../SDK/esp-idf/components/mbedtls/mbedtls/include -I../SDK/esp-idf/components/mbedtls/esp_crt_bundle/include -I../components/middleware_service/include -I../components/kaa/src -I../components/kaa/src/kaa -I../components/kaa/src/kaa/platform-impl/esp8266/platform -I../components/kaa/src/extensions/bootstrap -I../components/kaa/src/extensions/configuration -I../components/kaa/src/extensions/event -I../components/kaa/src/extensions/logging -I../components/kaa/src/extensions/notification -I../components/kaa/src/extensions/profile -I../components/kaa/tools/kaa_encryption/rsa_key_gen/include -I../components/kaa/src/extensions/user -I../components/nlg_fota/nbl-gw-fota/fota/inc -I../components/nlg_fota/port/app/include -I../components/nlg_fota/port/platform/include -I../components/kgw_fota/include -I../components/rmt/include -I../components/spi_flash_os/include -I../components/event_manager/include -I../components/firmware_update/include -I../components/nbl-mib/nbl-mib-service/includes -I../components/nbl-mib/port/include -I../SDK/esp-idf/components/wpa_supplicant/include -I../SDK/esp-idf/components/wpa_supplicant/port/include -I../SDK/esp-idf/components/wpa_supplicant/include/esp_supplicant -I../components/ping_service/include -I../components/database/include -I../components/rtc_service/include -I../components/system_service/include -I../components/adc/include -I../components/pwm/include -mlongcalls -Wno-frame-address -ffunction-sections -fdata-sections -fstrict-volatile-bitfields -Wall -Werror=all -Wno-error=unused-function -Wno-error=unused-but-set-variable -Wno-error=unused-variable -Wno-error=deprecated-declarations -Wextra -Wno-unused-parameter -Wno-sign-compare -ggdb -Og -std=gnu99 -Wno-old-style-declaration -D_GNU_SOURCE -DIDF_VER=\"v4.3-dev-2568-g59869bf61\" -DESP_PLATFORM -MD -MT esp-idf/gpio_osal/CMakeFiles/__idf_gpio_osal.dir/src/gpio_handler.c.obj -MF esp-idf\gpio_osal\CMakeFiles\__idf_gpio_osal.dir\src\gpio_handler.c.obj.d -o esp-idf/gpio_osal/CMakeFiles/__idf_gpio_osal.dir/src/gpio_handler.c.obj -c ../components/gpio_osal/src/gpio_handler.c
In file included from ../SDK/esp-idf/components/freertos/port/xtensa/include/freertos/portmacro.h:46,
from ../SDK/esp-idf/components/freertos/include/freertos/portable.h:52,
from ../SDK/esp-idf/components/freertos/include/freertos/FreeRTOS.h:64,
from ../components/nlg_os/include/nlg_os.h:23,
from ../components/gpio_osal/src/gpio_handler.c:7:
../SDK/esp-idf/components/esp_timer/include/esp_timer.h:229:26: error: unknown type name 'FILE'
esp_err_t esp_timer_dump(FILE* stream);
^~~~
../SDK/esp-idf/components/esp_timer/include/esp_timer.h:229:26: note: 'FILE' is defined in header '<stdio.h>'; did you forget to '#include <stdio.h>'?
../SDK/esp-idf/components/esp_timer/include/esp_timer.h:46:1:
+#include <stdio.h>
../SDK/esp-idf/components/esp_timer/include/esp_timer.h:229:26:
esp_err_t esp_timer_dump(FILE* stream);
^~~~
[13/212] Building C object esp-idf/xmodem/CMakeFiles/__idf_xmodem.dir/src/xmodem.c.obj
FAILED: esp-idf/xmodem/CMakeFiles/__idf_xmodem.dir/src/xmodem.c.obj
ccache C:\Users\.espressif\tools\xtensa-esp32-elf\esp-2020r3-8.4.0\xtensa-esp32-elf\bin\xtensa-esp32-elf-gcc.exe -DMBEDTLS_CONFIG_FILE=\"mbedtls/esp_config.h\" -Iconfig -I../components/xmodem/include -I../SDK/esp-idf/components/newlib/platform_include -I../SDK/esp-idf/components/freertos/include -I../SDK/esp-idf/components/freertos/port/xtensa/include -I../SDK/esp-idf/components/esp_hw_support/include -I../SDK/esp-idf/components/esp_hw_support/port/esp32/. -I../SDK/esp-idf/components/heap/include -I../SDK/esp-idf/components/log/include -I../SDK/esp-idf/components/lwip/include/apps -I../SDK/esp-idf/components/lwip/include/apps/sntp -I../SDK/esp-idf/components/lwip/lwip/src/include -I../SDK/esp-idf/components/lwip/port/esp32/include -I../SDK/esp-idf/components/lwip/port/esp32/include/arch -I../SDK/esp-idf/components/soc/include -I../SDK/esp-idf/components/soc/esp32/. -I../SDK/esp-idf/components/soc/esp32/include -I../SDK/esp-idf/components/hal/esp32/include -I../SDK/esp-idf/components/hal/include -I../SDK/esp-idf/components/esp_rom/include -I../SDK/esp-idf/components/esp_rom/esp32 -I../SDK/esp-idf/components/esp_common/include -I../SDK/esp-idf/components/esp_system/include -I../SDK/esp-idf/components/esp32/include -I../SDK/esp-idf/components/driver/include -I../SDK/esp-idf/components/driver/esp32/include -I../SDK/esp-idf/components/esp_ringbuf/include -I../SDK/esp-idf/components/efuse/include -I../SDK/esp-idf/components/efuse/esp32/include -I../SDK/esp-idf/components/xtensa/include -I../SDK/esp-idf/components/xtensa/esp32/include -I../SDK/esp-idf/components/espcoredump/include -I../SDK/esp-idf/components/esp_timer/include -I../SDK/esp-idf/components/esp_ipc/include -I../SDK/esp-idf/components/esp_pm/include -I../SDK/esp-idf/components/vfs/include -I../SDK/esp-idf/components/esp_wifi/include -I../SDK/esp-idf/components/esp_wifi/esp32/include -I../SDK/esp-idf/components/esp_event/include -I../SDK/esp-idf/components/esp_netif/include -I../SDK/esp-idf/components/tcpip_adapter/include -I../SDK/esp-idf/components/app_trace/include -I../components/gw_config/include -I../components/debug_log/include -I../components/nlg_os/include -I../components/uart_osal/include -I../components/uart_osal/port/include -I../components/ring_buffer/include -I../main/include -I../main/source/mib_parser/include -I../main/lib/include -I../main/source/devices/include -I../main/include/audio_headers -I../components/routing_service/include -I../components/crc16/include -I../components/cli_service/include -I../components/spiffs/spiffs/include -I../components/spiffs/spiffs/spiffs/src -I../components/bt_osal/include -I../SDK/esp-idf/components/bt/include -I../SDK/esp-idf/components/bt/common/osi/include -I../SDK/esp-idf/components/bt/host/bluedroid/api/include/api -I../SDK/esp-idf/components/nvs_flash/include -I../SDK/esp-idf/components/spi_flash/include -I../SDK/esp-idf/components/mbedtls/port/include -I../SDK/esp-idf/components/mbedtls/mbedtls/include -I../SDK/esp-idf/components/mbedtls/esp_crt_bundle/include -I../components/middleware_service/include -I../components/kaa/src -I../components/kaa/src/kaa -I../components/kaa/src/kaa/platform-impl/esp8266/platform -I../components/kaa/src/extensions/bootstrap -I../components/kaa/src/extensions/configuration -I../components/kaa/src/extensions/event -I../components/kaa/src/extensions/logging -I../components/kaa/src/extensions/notification -I../components/kaa/src/extensions/profile -I../components/kaa/tools/kaa_encryption/rsa_key_gen/include -I../components/kaa/src/extensions/user -I../components/nlg_fota/nbl-gw-fota/fota/inc -I../components/nlg_fota/port/app/include -I../components/nlg_fota/port/platform/include -I../components/kgw_fota/include -I../components/rmt/include -I../components/wifi_osal/include -I../components/led_service/include -I../components/gpio_osal/include -I../components/i2c_service/include -I../components/board_init/include -I../components/board_init/common_handler -I../components/spi_flash_os/include -I../components/event_manager/include -I../components/firmware_update/include -I../components/nbl-mib/nbl-mib-service/includes -I../components/nbl-mib/port/include -I../SDK/esp-idf/components/wpa_supplicant/include -I../SDK/esp-idf/components/wpa_supplicant/port/include -I../SDK/esp-idf/components/wpa_supplicant/include/esp_supplicant -I../components/ping_service/include -I../components/database/include -I../components/rtc_service/include -I../components/system_service/include -I../components/adc/include -I../components/pwm/include -mlongcalls -Wno-frame-address -ffunction-sections -fdata-sections -fstrict-volatile-bitfields -Wall -Werror=all -Wno-error=unused-function -Wno-error=unused-but-set-variable -Wno-error=unused-variable -Wno-error=deprecated-declarations -Wextra -Wno-unused-parameter -Wno-sign-compare -ggdb -Og -std=gnu99 -Wno-old-style-declaration -D_GNU_SOURCE -DIDF_VER=\"v4.3-dev-2568-g59869bf61\" -DESP_PLATFORM -MD -MT esp-idf/xmodem/CMakeFiles/__idf_xmodem.dir/src/xmodem.c.obj -MF esp-idf\xmodem\CMakeFiles\__idf_xmodem.dir\src\xmodem.c.obj.d -o esp-idf/xmodem/CMakeFiles/__idf_xmodem.dir/src/xmodem.c.obj -c ../components/xmodem/src/xmodem.c
In file included from ../SDK/esp-idf/components/freertos/port/xtensa/include/freertos/portmacro.h:46,
from ../SDK/esp-idf/components/freertos/include/freertos/portable.h:52,
from ../SDK/esp-idf/components/freertos/include/freertos/FreeRTOS.h:64,
from ../components/nlg_os/include/nlg_os.h:23,
from ../components/gw_config/include/common_config.h:4,
from ../components/xmodem/src/xmodem.c:30:
../SDK/esp-idf/components/esp_timer/include/esp_timer.h:229:26: error: unknown type name 'FILE'
esp_err_t esp_timer_dump(FILE* stream);
^~~~
../SDK/esp-idf/components/esp_timer/include/esp_timer.h:229:26: note: 'FILE' is defined in header '<stdio.h>'; did you forget to '#include <stdio.h>'?
../SDK/esp-idf/components/esp_timer/include/esp_timer.h:46:1:
+#include <stdio.h>
../SDK/esp-idf/components/esp_timer/include/esp_timer.h:229:26:
esp_err_t esp_timer_dump(FILE* stream);
^~~~
../components/xmodem/src/xmodem.c:61:1: error: unknown type name 'FILE'
FILE *fd_xmodem;
^~~~
../components/xmodem/src/xmodem.c:61:1: note: 'FILE' is defined in header '<stdio.h>'; did you forget to '#include <stdio.h>'?
../components/xmodem/src/xmodem.c:39:1:
+#include <stdio.h>
#endif
../components/xmodem/src/xmodem.c:61:1:
FILE *fd_xmodem;
^~~~
../components/xmodem/src/xmodem.c: In function 'ReceiveXmodem':
../components/xmodem/src/xmodem.c:1061:10: error: implicit declaration of function 'fwrite' [-Werror=implicit-function-declaration]
if(!(fwrite(pX->buf.xbuf.aDataBuf,1,writeLength,fd_xmodem))) {
^~~~~~
../components/xmodem/src/xmodem.c:1061:10: warning: incompatible implicit declaration of built-in function 'fwrite'
../components/xmodem/src/xmodem.c:1061:10: note: include '<stdio.h>' or provide a declaration of 'fwrite'
../components/xmodem/src/xmodem.c: In function 'SendXmodem':
../components/xmodem/src/xmodem.c:1203:3: error: implicit declaration of function 'printf' [-Werror=implicit-function-declaration]
printf("\n fail in file size ....");
^~~~~~
../components/xmodem/src/xmodem.c:1203:3: warning: incompatible implicit declaration of built-in function 'printf'
../components/xmodem/src/xmodem.c:1203:3: note: include '<stdio.h>' or provide a declaration of 'printf'
../components/xmodem/src/xmodem.c:1306:8: error: implicit declaration of function 'fseek'; did you mean 'lseek'? [-Werror=implicit-function-declaration]
if(fseek(fd_xmodem, XMODEM_BUF_SIZE * xmodem_rcv_count,SEEK_SET)) {
^~~~~
lseek
../components/xmodem/src/xmodem.c:1309:8: error: implicit declaration of function 'fread'; did you mean 'read'? [-Werror=implicit-function-declaration]
if(fread(pX->buf.xbuf.aDataBuf,1,sizeof(pX->buf.xbuf.aDataBuf),fd_xmodem)){
^~~~~
read
../components/xmodem/src/xmodem.c: In function 'XReceive':
../components/xmodem/src/xmodem.c:1719:5: error: implicit declaration of function 'snprintf' [-Werror=implicit-function-declaration]
snprintf((char *)filename,sizeof(filename),"/spiffs/%s",szFilename);
^~~~~~~~
../components/xmodem/src/xmodem.c:1719:5: warning: incompatible implicit declaration of built-in function 'snprintf'
../components/xmodem/src/xmodem.c:1719:5: note: include '<stdio.h>' or provide a declaration of 'snprintf'
../components/xmodem/src/xmodem.c:1722:17: error: implicit declaration of function 'fopen' [-Werror=implicit-function-declaration]
fd_xmodem = fopen(((const char *) filename),"a");
^~~~~
../components/xmodem/src/xmodem.c:1722:17: note: 'fopen' is defined in header '<stdio.h>'; did you forget to '#include <stdio.h>'?
../components/xmodem/src/xmodem.c:1722:15: warning: assignment to 'int *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
fd_xmodem = fopen(((const char *) filename),"a");
^
../components/xmodem/src/xmodem.c:1744:5: error: implicit declaration of function 'fclose'; did you mean 'close'? [-Werror=implicit-function-declaration]
fclose(fd_xmodem);
^~~~~~
close
../components/xmodem/src/xmodem.c: In function 'XSend':
../components/xmodem/src/xmodem.c:1807:5: warning: incompatible implicit declaration of built-in function 'snprintf'
snprintf((char *)filename,sizeof(filename),"/spiffs/%s",szFilename);
^~~~~~~~
../components/xmodem/src/xmodem.c:1807:5: note: include '<stdio.h>' or provide a declaration of 'snprintf'
../components/xmodem/src/xmodem.c:1808:15: warning: assignment to 'int *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
fd_xmodem = fopen(((const char *)filename),"r");
^
cc1.exe: some warnings being treated as errors
ninja: build stopped: subcommand failed.
ninja failed with exit code 1