Open hassanaansari opened 2 months ago
What version of IDF are you using? There have been some changes to IDF that may be related to this issue. I don't have the time today to try compiling with a newer IDF than what was used when this was created but will try to get to it tonight.
I see you're using IDF V5. Missed seeing that earlier. I'll try tonight using V5. I have some production code that has been upgraded to V5 and remember having some things to change to get it compiled .
Didn't intend to close. Clicked the wrong thing.
Yes I am using the github esp idf repo V5.3.2, please if you can conviniently update your repo that is fine, or may be you can guide me which repository was your code compiled on?
This code was developed using IDF 4.3 and make instead of cmake. I just compiled the code with IDF 4.3 and it successfully created the binary. I'll continue working on getting it working on IDF 5.3.2 and have the same errors as you're observing. IDF 5 doesn't support make thus the project needs to be converted to cmnake.
Actually I had converted it to Cmake thus either make or cmake will work on IDF 4.3. Guess my age is catching up with me.
[965/988] Building C object esp-idf/main/CMakeFiles/idf_main.dir/mqttOta.c.obj FAILED: esp-idf/main/CMakeFiles/idf_main.dir/mqttOta.c.obj /home/hassanahmedansari/.espressif/tools/xtensa-esp-elf/esp-13.2.0_20240530/xtensa-esp-elf/bin/xtensa-esp32-elf-gcc -DESP_PLATFORM -DIDF_VER=\"v5.4-dev-2744-g59e1838270\" -DMBEDTLS_CONFIG_FILE=\"mbedtls/esp_config.h\" -DSOC_MMU_PAGE_SIZE=CONFIG_MMU_PAGE_SIZE -DSOC_XTAL_FREQ_MHZ=CONFIG_XTAL_FREQ -DUNITY_INCLUDE_CONFIG_H -D_GLIBCXX_HAVE_POSIX_SEMAPHORE -D_GLIBCXX_USE_POSIX_SEMAPHORE -D_GNU_SOURCE -D_POSIX_READER_WRITER_LOCKS -I/home/hassanahmedansari/esp/Thingsboard-ESP32-MQTT-OTA/mqttOta/build/config -I/home/hassanahmedansari/esp/Thingsboard-ESP32-MQTT-OTA/mqttOta/main -I/home/hassanahmedansari/esp/esp-idf/components/newlib/platform_include -I/home/hassanahmedansari/esp/esp-idf/components/freertos/config/include -I/home/hassanahmedansari/esp/esp-idf/components/freertos/config/include/freertos -I/home/hassanahmedansari/esp/esp-idf/components/freertos/config/xtensa/include -I/home/hassanahmedansari/esp/esp-idf/components/freertos/FreeRTOS-Kernel/include -I/home/hassanahmedansari/esp/esp-idf/components/freertos/FreeRTOS-Kernel/portable/xtensa/include -I/home/hassanahmedansari/esp/esp-idf/components/freertos/FreeRTOS-Kernel/portable/xtensa/include/freertos -I/home/hassanahmedansari/esp/esp-idf/components/freertos/esp_additions/include -I/home/hassanahmedansari/esp/esp-idf/components/esp_hw_support/include -I/home/hassanahmedansari/esp/esp-idf/components/esp_hw_support/include/soc -I/home/hassanahmedansari/esp/esp-idf/components/esp_hw_support/include/soc/esp32 -I/home/hassanahmedansari/esp/esp-idf/components/esp_hw_support/dma/include -I/home/hassanahmedansari/esp/esp-idf/components/esp_hw_support/ldo/include -I/home/hassanahmedansari/esp/esp-idf/components/esp_hw_support/debug_probe/include -I/home/hassanahmedansari/esp/esp-idf/components/esp_hw_support/port/esp32/. -I/home/hassanahmedansari/esp/esp-idf/components/esp_hw_support/port/esp32/include -I/home/hassanahmedansari/esp/esp-idf/components/heap/include -I/home/hassanahmedansari/esp/esp-idf/components/log/include -I/home/hassanahmedansari/esp/esp-idf/components/soc/include -I/home/hassanahmedansari/esp/esp-idf/components/soc/esp32 -I/home/hassanahmedansari/esp/esp-idf/components/soc/esp32/include -I/home/hassanahmedansari/esp/esp-idf/components/hal/platform_port/include -I/home/hassanahmedansari/esp/esp-idf/components/hal/esp32/include -I/home/hassanahmedansari/esp/esp-idf/components/hal/include -I/home/hassanahmedansari/esp/esp-idf/components/esp_rom/include -I/home/hassanahmedansari/esp/esp-idf/components/esp_rom/esp32/include -I/home/hassanahmedansari/esp/esp-idf/components/esp_rom/esp32/include/esp32 -I/home/hassanahmedansari/esp/esp-idf/components/esp_rom/esp32 -I/home/hassanahmedansari/esp/esp-idf/components/esp_common/include -I/home/hassanahmedansari/esp/esp-idf/components/esp_system/include -I/home/hassanahmedansari/esp/esp-idf/components/esp_system/port/soc -I/home/hassanahmedansari/esp/esp-idf/components/esp_system/port/include/private -I/home/hassanahmedansari/esp/esp-idf/components/xtensa/esp32/include -I/home/hassanahmedansari/esp/esp-idf/components/xtensa/include -I/home/hassanahmedansari/esp/esp-idf/components/xtensa/deprecated_include -I/home/hassanahmedansari/esp/esp-idf/components/lwip/include -I/home/hassanahmedansari/esp/esp-idf/components/lwip/include/apps -I/home/hassanahmedansari/esp/esp-idf/components/lwip/include/apps/sntp -I/home/hassanahmedansari/esp/esp-idf/components/lwip/lwip/src/include -I/home/hassanahmedansari/esp/esp-idf/components/lwip/port/include -I/home/hassanahmedansari/esp/esp-idf/components/lwip/port/freertos/include -I/home/hassanahmedansari/esp/esp-idf/components/lwip/port/esp32xx/include -I/home/hassanahmedansari/esp/esp-idf/components/lwip/port/esp32xx/include/arch -I/home/hassanahmedansari/esp/esp-idf/components/lwip/port/esp32xx/include/sys -I/home/hassanahmedansari/esp/esp-idf/components/esp_driver_gpio/include -I/home/hassanahmedansari/esp/esp-idf/components/esp_pm/include -I/home/hassanahmedansari/esp/esp-idf/components/mbedtls/port/include -I/home/hassanahmedansari/esp/esp-idf/components/mbedtls/mbedtls/include -I/home/hassanahmedansari/esp/esp-idf/components/mbedtls/mbedtls/library -I/home/hassanahmedansari/esp/esp-idf/components/mbedtls/esp_crt_bundle/include -I/home/hassanahmedansari/esp/esp-idf/components/mbedtls/mbedtls/3rdparty/everest/include -I/home/hassanahmedansari/esp/esp-idf/components/mbedtls/mbedtls/3rdparty/p256-m -I/home/hassanahmedansari/esp/esp-idf/components/mbedtls/mbedtls/3rdparty/p256-m/p256-m -I/home/hassanahmedansari/esp/esp-idf/components/esp_app_format/include -I/home/hassanahmedansari/esp/esp-idf/components/esp_bootloader_format/include -I/home/hassanahmedansari/esp/esp-idf/components/app_update/include -I/home/hassanahmedansari/esp/esp-idf/components/bootloader_support/include -I/home/hassanahmedansari/esp/esp-idf/components/bootloader_support/bootloader_flash/include -I/home/hassanahmedansari/esp/esp-idf/components/esp_partition/include -I/home/hassanahmedansari/esp/esp-idf/components/efuse/include -I/home/hassanahmedansari/esp/esp-idf/components/efuse/esp32/include -I/home/hassanahmedansari/esp/esp-idf/components/esp_mm/include -I/home/hassanahmedansari/esp/esp-idf/components/spi_flash/include -I/home/hassanahmedansari/esp/esp-idf/components/esp_security/include -I/home/hassanahmedansari/esp/esp-idf/components/pthread/include -I/home/hassanahmedansari/esp/esp-idf/components/esp_timer/include -I/home/hassanahmedansari/esp/esp-idf/components/esp_driver_gptimer/include -I/home/hassanahmedansari/esp/esp-idf/components/esp_ringbuf/include -I/home/hassanahmedansari/esp/esp-idf/components/esp_driver_uart/include -I/home/hassanahmedansari/esp/esp-idf/components/vfs/include -I/home/hassanahmedansari/esp/esp-idf/components/app_trace/include -I/home/hassanahmedansari/esp/esp-idf/components/esp_event/include -I/home/hassanahmedansari/esp/esp-idf/components/nvs_flash/include -I/home/hassanahmedansari/esp/esp-idf/components/esp_driver_pcnt/include -I/home/hassanahmedansari/esp/esp-idf/components/esp_driver_spi/include -I/home/hassanahmedansari/esp/esp-idf/components/esp_driver_mcpwm/include -I/home/hassanahmedansari/esp/esp-idf/components/esp_driver_ana_cmpr/include -I/home/hassanahmedansari/esp/esp-idf/components/esp_driver_i2s/include -I/home/hassanahmedansari/esp/esp-idf/components/sdmmc/include -I/home/hassanahmedansari/esp/esp-idf/components/esp_driver_sdmmc/include -I/home/hassanahmedansari/esp/esp-idf/components/esp_driver_sdspi/include -I/home/hassanahmedansari/esp/esp-idf/components/esp_driver_sdio/include -I/home/hassanahmedansari/esp/esp-idf/components/esp_driver_dac/include -I/home/hassanahmedansari/esp/esp-idf/components/esp_driver_rmt/include -I/home/hassanahmedansari/esp/esp-idf/components/esp_driver_tsens/include -I/home/hassanahmedansari/esp/esp-idf/components/esp_driver_sdm/include -I/home/hassanahmedansari/esp/esp-idf/components/esp_driver_i2c/include -I/home/hassanahmedansari/esp/esp-idf/components/esp_driver_ledc/include -I/home/hassanahmedansari/esp/esp-idf/components/esp_driver_parlio/include -I/home/hassanahmedansari/esp/esp-idf/components/esp_driver_usb_serial_jtag/include -I/home/hassanahmedansari/esp/esp-idf/components/driver/deprecated -I/home/hassanahmedansari/esp/esp-idf/components/driver/i2c/include -I/home/hassanahmedansari/esp/esp-idf/components/driver/touch_sensor/include -I/home/hassanahmedansari/esp/esp-idf/components/driver/twai/include -I/home/hassanahmedansari/esp/esp-idf/components/driver/touch_sensor/esp32/include -I/home/hassanahmedansari/esp/esp-idf/components/esp_phy/include -I/home/hassanahmedansari/esp/esp-idf/components/esp_phy/esp32/include -I/home/hassanahmedansari/esp/esp-idf/components/esp_vfs_console/include -I/home/hassanahmedansari/esp/esp-idf/components/esp_netif/include -I/home/hassanahmedansari/esp/esp-idf/components/wpa_supplicant/include -I/home/hassanahmedansari/esp/esp-idf/components/wpa_supplicant/port/include -I/home/hassanahmedansari/esp/esp-idf/components/wpa_supplicant/esp_supplicant/include -I/home/hassanahmedansari/esp/esp-idf/components/esp_coex/include -I/home/hassanahmedansari/esp/esp-idf/components/esp_wifi/include -I/home/hassanahmedansari/esp/esp-idf/components/esp_wifi/wifi_apps/include -I/home/hassanahmedansari/esp/esp-idf/components/esp_wifi/wifi_apps/nan_app/include -I/home/hassanahmedansari/esp/esp-idf/components/esp_wifi/include/local -I/home/hassanahmedansari/esp/esp-idf/components/unity/include -I/home/hassanahmedansari/esp/esp-idf/components/unity/unity/src -I/home/hassanahmedansari/esp/esp-idf/components/cmock/CMock/src -I/home/hassanahmedansari/esp/esp-idf/components/console -I/home/hassanahmedansari/esp/esp-idf/components/http_parser -I/home/hassanahmedansari/esp/esp-idf/components/esp-tls -I/home/hassanahmedansari/esp/esp-idf/components/esp-tls/esp-tls-crypto -I/home/hassanahmedansari/esp/esp-idf/components/esp_adc/include -I/home/hassanahmedansari/esp/esp-idf/components/esp_adc/interface -I/home/hassanahmedansari/esp/esp-idf/components/esp_adc/esp32/include -I/home/hassanahmedansari/esp/esp-idf/components/esp_adc/deprecated/include -I/home/hassanahmedansari/esp/esp-idf/components/esp_driver_isp/include -I/home/hassanahmedansari/esp/esp-idf/components/esp_driver_cam/include -I/home/hassanahmedansari/esp/esp-idf/components/esp_driver_cam/interface -I/home/hassanahmedansari/esp/esp-idf/components/esp_driver_jpeg/include -I/home/hassanahmedansari/esp/esp-idf/components/esp_driver_ppa/include -I/home/hassanahmedansari/esp/esp-idf/components/esp_eth/include -I/home/hassanahmedansari/esp/esp-idf/components/esp_gdbstub/include -I/home/hassanahmedansari/esp/esp-idf/components/esp_hid/include -I/home/hassanahmedansari/esp/esp-idf/components/tcp_transport/include -I/home/hassanahmedansari/esp/esp-idf/components/esp_http_client/include -I/home/hassanahmedansari/esp/esp-idf/components/esp_http_server/include -I/home/hassanahmedansari/esp/esp-idf/components/esp_https_ota/include -I/home/hassanahmedansari/esp/esp-idf/components/esp_https_server/include -I/home/hassanahmedansari/esp/esp-idf/components/esp_psram/include -I/home/hassanahmedansari/esp/esp-idf/components/esp_lcd/include -I/home/hassanahmedansari/esp/esp-idf/components/esp_lcd/interface -I/home/hassanahmedansari/esp/esp-idf/components/protobuf-c/protobuf-c -I/home/hassanahmedansari/esp/esp-idf/components/protocomm/include/common -I/home/hassanahmedansari/esp/esp-idf/components/protocomm/include/security -I/home/hassanahmedansari/esp/esp-idf/components/protocomm/include/transports -I/home/hassanahmedansari/esp/esp-idf/components/protocomm/include/crypto/srp6a -I/home/hassanahmedansari/esp/esp-idf/components/protocomm/proto-c -I/home/hassanahmedansari/esp/esp-idf/components/esp_local_ctrl/include -I/home/hassanahmedansari/esp/esp-idf/components/espcoredump/include -I/home/hassanahmedansari/esp/esp-idf/components/espcoredump/include/port/xtensa -I/home/hassanahmedansari/esp/esp-idf/components/wear_levelling/include -I/home/hassanahmedansari/esp/esp-idf/components/fatfs/diskio -I/home/hassanahmedansari/esp/esp-idf/components/fatfs/src -I/home/hassanahmedansari/esp/esp-idf/components/fatfs/vfs -I/home/hassanahmedansari/esp/esp-idf/components/idf_test/include -I/home/hassanahmedansari/esp/esp-idf/components/idf_test/include/esp32 -I/home/hassanahmedansari/esp/esp-idf/components/ieee802154/include -I/home/hassanahmedansari/esp/esp-idf/components/json/cJSON -I/home/hassanahmedansari/esp/esp-idf/components/mqtt/esp-mqtt/include -I/home/hassanahmedansari/esp/esp-idf/components/nvs_sec_provider/include -I/home/hassanahmedansari/esp/esp-idf/components/perfmon/include -I/home/hassanahmedansari/esp/esp-idf/components/rt/include -I/home/hassanahmedansari/esp/esp-idf/components/spiffs/include -I/home/hassanahmedansari/esp/esp-idf/components/wifi_provisioning/include -mlongcalls -Wno-frame-address -fno-builtin-memcpy -fno-builtin-memset -fno-builtin-bzero -fno-builtin-stpcpy -fno-builtin-strncpy -ffunction-sections -fdata-sections -Wall -Werror=all -Wno-error=unused-function -Wno-error=unused-variable -Wno-error=unused-but-set-variable -Wno-error=deprecated-declarations -Wextra -Wno-error=extra -Wno-unused-parameter -Wno-sign-compare -Wno-enum-conversion -gdwarf-4 -ggdb -Og -fno-shrink-wrap -fmacro-prefix-map=/home/hassanahmedansari/esp/Thingsboard-ESP32-MQTT-OTA/mqttOta=. -fmacro-prefix-map=/home/hassanahmedansari/esp/esp-idf=/IDF -fstrict-volatile-bitfields -fno-jump-tables -fno-tree-switch-conversion -std=gnu17 -Wno-old-style-declaration -MD -MT esp-idf/main/CMakeFiles/idf_main.dir/mqttOta.c.obj -MF esp-idf/main/CMakeFiles/idf_main.dir/mqttOta.c.obj.d -o esp-idf/main/CMakeFiles/idf_main.dir/mqttOta.c.obj -c /home/hassanahmedansari/esp/Thingsboard-ESP32-MQTT-OTA/mqttOta/main/mqttOta.c In file included from /home/hassanahmedansari/esp/Thingsboard-ESP32-MQTT-OTA/mqttOta/main/wifi.h:8, from /home/hassanahmedansari/esp/Thingsboard-ESP32-MQTT-OTA/mqttOta/main/mqttOta.c:21: /home/hassanahmedansari/esp/esp-idf/components/esp_event/include/esp_event_loop.h:9:2: warning: #warning "esp_event_loop.h is deprecated, please include esp_event.h instead" [-Wcpp] 9 | #warning "esp_event_loop.h is deprecated, please include esp_event.h instead" | ^ header file).
ninja failed with exit code 1, output of the command is in the /home/hassanahmedansari/esp/Thingsboard-ESP32-MQTT-OTA/mqttOta/build/log/idf_py_stderr_output_25967 and /home/hassanahmedansari/esp/Thingsboard-ESP32-MQTT-OTA/mqttOta/build/log/idf_py_stdout_output_25967
~~ /home/hassanahmedansari/esp/Thingsboard-ESP32-MQTT-OTA/mqttOta/main/mqttOta.c: In function 'addChunk': /home/hassanahmedansari/esp/Thingsboard-ESP32-MQTT-OTA/mqttOta/main/mqttOta.c:161:22: warning: passing argument 1 of 'free' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 161 | free(rcvdChunk); | ^~~~~ In file included from /home/hassanahmedansari/esp/esp-idf/components/newlib/platform_include/assert.h:12, from /home/hassanahmedansari/.espressif/tools/xtensa-esp-elf/esp-13.2.0_20240530/xtensa-esp-elf/xtensa-esp-elf/include/sys/reent.h:458, from /home/hassanahmedansari/esp/esp-idf/components/newlib/platform_include/sys/reent.h:13, from /home/hassanahmedansari/.espressif/tools/xtensa-esp-elf/esp-13.2.0_20240530/xtensa-esp-elf/xtensa-esp-elf/include/string.h:11, from /home/hassanahmedansari/esp/Thingsboard-ESP32-MQTT-OTA/mqttOta/main/mqttOta.c:5: /home/hassanahmedansari/.espressif/tools/xtensa-esp-elf/esp-13.2.0_20240530/xtensa-esp-elf/xtensa-esp-elf/include/stdlib.h:94:15: note: expected 'void ' but argument is of type 'const char ' 94 | void free (void ) _NOTHROW; | ^~/home/hassanahmedansari/esp/Thingsboard-ESP32-MQTT-OTA/mqttOta/main/mqttOta.c:260:22: warning: passing argument 1 of 'free' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 260 | free(rcvdChunk); | ^~~~~ /home/hassanahmedansari/.espressif/tools/xtensa-esp-elf/esp-13.2.0_20240530/xtensa-esp-elf/xtensa-esp-elf/include/stdlib.h:94:15: note: expected 'void ' but argument is of type 'const char ' 94 | void free (void ) _NOTHROW; | ^~/home/hassanahmedansari/esp/Thingsboard-ESP32-MQTT-OTA/mqttOta/main/mqttOta.c: In function 'mqtt_event_handler': /home/hassanahmedansari/esp/Thingsboard-ESP32-MQTT-OTA/mqttOta/main/mqttOta.c:442:20: warning: passing argument 1 of 'memcpy' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 442 | memcpy(rcvdChunk, event->data, event->data_len); | ^~~~~ /home/hassanahmedansari/.espressif/tools/xtensa-esp-elf/esp-13.2.0_20240530/xtensa-esp-elf/xtensa-esp-elf/include/string.h:31:18: note: expected 'void restrict' but argument is of type 'const char ' 31 | void memcpy (void restrict, const void *restrict, size_t); | ^ /home/hassanahmedansari/esp/Thingsboard-ESP32-MQTT-OTA/mqttOta/main/mqttOta.c:353:10: warning: unused variable 'ddata' [-Wunused-variable] 353 | char ddata[100]; | ^~~~~ In file included from /home/hassanahmedansari/esp/esp-idf/components/log/include/esp_log.h:15, from /home/hassanahmedansari/esp/Thingsboard-ESP32-MQTT-OTA/mqttOta/main/mqttOta.c:11: /home/hassanahmedansari/esp/Thingsboard-ESP32-MQTT-OTA/mqttOta/main/mqttOta.c: In function 'get_mqtt_port': /home/hassanahmedansari/esp/esp-idf/components/log/include/esp_log_color.h:43:69: error: format '%d' expects argument of type 'int', but argument 6 has type 'uint32_t' {aka 'long unsigned int'} [-Werror=format=] 43 | #define LOG_ANSI_COLOR(TEXT_COLOR) "\033[" TEXT_COLOR "m" | ^~~ /home/hassanahmedansari/esp/esp-idf/components/log/include/esp_log_color.h:47:69: note: in expansion of macro 'LOG_ANSI_COLOR' 47 | #define LOG_ANSI_COLOR_REGULAR(COLOR) LOG_ANSI_COLOR(LOG_ANSI_COLOR_STYLE_RESET ";" COLOR) | ^~~~~~ /home/hassanahmedansari/esp/esp-idf/components/log/include/esp_log_color.h:91:31: note: in expansion of macro 'LOG_ANSI_COLOR_REGULAR' 91 | #define LOG_COLOR_E LOG_ANSI_COLOR_REGULAR(LOG_COLOR_RED) | ^~~~~~ /home/hassanahmedansari/esp/esp-idf/components/log/include/esp_log.h:62:37: note: in expansion of macro 'LOG_COLOR_E' 62 | #define LOG_FORMAT(letter, format) LOGCOLOR ## letter #letter " (%" PRIu32 ") %s: " format LOG_RESET_COLOR "\n" | ^~~~~~ /home/hassanahmedansari/esp/esp-idf/components/log/include/esp_log.h:182:86: note: in expansion of macro 'LOG_FORMAT' 182 | if (level==ESP_LOG_ERROR ) { esp_log_write(ESP_LOG_ERROR, tag, LOG_FORMAT(E, format), esp_log_timestamp(), tag, ##__VA_ARGS); } \ | ^~~~~~ /home/hassanahmedansari/esp/esp-idf/components/log/include/esp_log.h:205:38: note: in expansion of macro 'ESP_LOG_LEVEL' 205 | if (_ESP_LOG_ENABLED(level)) ESP_LOG_LEVEL(level, tag, format, ##VA_ARGS); \ | ^~~~~ /home/hassanahmedansari/esp/esp-idf/components/log/include/esp_log.h:114:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL' 114 | #define ESP_LOGI( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO, tag, format, ##VA_ARGS) | ^~~~~~~ /home/hassanahmedansari/esp/Thingsboard-ESP32-MQTT-OTA/mqttOta/main/mqttOta.c:567:9: note: in expansion of macro 'ESP_LOGI' 567 | ESP_LOGI(TAG, "MQTT port from flash memory: %d", mqtt_port); | ^~~~ /home/hassanahmedansari/esp/esp-idf/components/log/include/esp_log_color.h:43:69: error: format '%d' expects argument of type 'int', but argument 6 has type 'uint32_t' {aka 'long unsigned int'} [-Werror=format=] 43 | #define LOG_ANSI_COLOR(TEXT_COLOR) "\033[" TEXT_COLOR "m" | ^~~ /home/hassanahmedansari/esp/esp-idf/components/log/include/esp_log_color.h:47:69: note: in expansion of macro 'LOG_ANSI_COLOR' 47 | #define LOG_ANSI_COLOR_REGULAR(COLOR) LOG_ANSI_COLOR(LOG_ANSI_COLOR_STYLE_RESET ";" COLOR) | ^~~~~~ /home/hassanahmedansari/esp/esp-idf/components/log/include/esp_log_color.h:92:31: note: in expansion of macro 'LOG_ANSI_COLOR_REGULAR' 92 | #define LOG_COLOR_W LOG_ANSI_COLOR_REGULAR(LOG_COLOR_YELLOW) | ^~~~~~ /home/hassanahmedansari/esp/esp-idf/components/log/include/esp_log.h:62:37: note: in expansion of macro 'LOG_COLOR_W' 62 | #define LOG_FORMAT(letter, format) LOGCOLOR ## letter #letter " (%" PRIu32 ") %s: " format LOG_RESET_COLOR "\n" | ^~~~~~ /home/hassanahmedansari/esp/esp-idf/components/log/include/esp_log.h:183:86: note: in expansion of macro 'LOG_FORMAT' 183 | else if (level==ESP_LOG_WARN ) { esp_log_write(ESP_LOG_WARN, tag, LOG_FORMAT(W, format), esp_log_timestamp(), tag, ##VA_ARGS); } \ | ^~~~~~ /home/hassanahmedansari/esp/esp-idf/components/log/include/esp_log.h:205:38: note: in expansion of macro 'ESP_LOG_LEVEL' 205 | if (_ESP_LOG_ENABLED(level)) ESP_LOG_LEVEL(level, tag, format, ##VA_ARGS); \ | ^~~~~ /home/hassanahmedansari/esp/esp-idf/components/log/include/esp_log.h:114:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL' 114 | #define ESP_LOGI( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO, tag, format, ##VA_ARGS__) | ^~~~~~~ /home/hassanahmedansari/esp/Thingsboard-ESP32-MQTT-OTA/mqttOta/main/mqttOta.c:567:9: note: in expansion of macro 'ESP_LOGI' 567 | ESP_LOGI(TAG, "MQTT port from flash memory: %d", mqtt_port); | ^~~~ /home/hassanahmedansari/esp/esp-idf/components/log/include/esp_log_color.h:94:31: error: format '%d' expects argument of type 'int', but argument 6 has type 'uint32_t' {aka 'long unsigned int'} [-Werror=format=] 94 | #define LOG_COLOR_D "" | ^~ /home/hassanahmedansari/esp/esp-idf/components/log/include/esp_log.h:62:37: note: in expansion of macro 'LOG_COLOR_D' 62 | #define LOG_FORMAT(letter, format) LOGCOLOR ## letter #letter " (%" PRIu32 ") %s: " format LOG_RESET_COLOR "\n" | ^~~~~~ /home/hassanahmedansari/esp/esp-idf/components/log/include/esp_log.h:184:86: note: in expansion of macro 'LOG_FORMAT' 184 | else if (level==ESP_LOG_DEBUG ) { esp_log_write(ESP_LOG_DEBUG, tag, LOG_FORMAT(D, format), esp_log_timestamp(), tag, ##VA_ARGS); } \ | ^~~~~~ /home/hassanahmedansari/esp/esp-idf/components/log/include/esp_log.h:205:38: note: in expansion of macro 'ESP_LOG_LEVEL' 205 | if (_ESP_LOG_ENABLED(level)) ESP_LOG_LEVEL(level, tag, format, ##VA_ARGS); \ | ^~~~~ /home/hassanahmedansari/esp/esp-idf/components/log/include/esp_log.h:114:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL' 114 | #define ESP_LOGI( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO, tag, format, ##VA_ARGS) | ^~~~~~~ /home/hassanahmedansari/esp/Thingsboard-ESP32-MQTT-OTA/mqttOta/main/mqttOta.c:567:9: note: in expansion of macro 'ESP_LOGI' 567 | ESP_LOGI(TAG, "MQTT port from flash memory: %d", mqtt_port); | ^~~~ /home/hassanahmedansari/esp/esp-idf/components/log/include/esp_log_color.h:95:31: error: format '%d' expects argument of type 'int', but argument 6 has type 'uint32_t' {aka 'long unsigned int'} [-Werror=format=] 95 | #define LOG_COLOR_V "" | ^~ /home/hassanahmedansari/esp/esp-idf/components/log/include/esp_log.h:62:37: note: in expansion of macro 'LOG_COLOR_V' 62 | #define LOG_FORMAT(letter, format) LOGCOLOR ## letter #letter " (%" PRIu32 ") %s: " format LOG_RESET_COLOR "\n" | ^~~~~~ /home/hassanahmedansari/esp/esp-idf/components/log/include/esp_log.h:185:86: note: in expansion of macro 'LOG_FORMAT' 185 | else if (level==ESP_LOG_VERBOSE ) { esp_log_write(ESP_LOG_VERBOSE, tag, LOG_FORMAT(V, format), esp_log_timestamp(), tag, ##__VA_ARGS); } \ | ^~~~~~ /home/hassanahmedansari/esp/esp-idf/components/log/include/esp_log.h:205:38: note: in expansion of macro 'ESP_LOG_LEVEL' 205 | if (_ESP_LOG_ENABLED(level)) ESP_LOG_LEVEL(level, tag, format, ##VA_ARGS); \ | ^~~~~ /home/hassanahmedansari/esp/esp-idf/components/log/include/esp_log.h:114:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL' 114 | #define ESP_LOGI( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO, tag, format, ##VA_ARGS) | ^~~~~~~ /home/hassanahmedansari/esp/Thingsboard-ESP32-MQTT-OTA/mqttOta/main/mqttOta.c:567:9: note: in expansion of macro 'ESP_LOGI' 567 | ESP_LOGI(TAG, "MQTT port from flash memory: %d", mqtt_port); | ^~~~ /home/hassanahmedansari/esp/esp-idf/components/log/include/esp_log_color.h:43:69: error: format '%d' expects argument of type 'int', but argument 6 has type 'uint32_t' {aka 'long unsigned int'} [-Werror=format=] 43 | #define LOG_ANSI_COLOR(TEXT_COLOR) "\033[" TEXT_COLOR "m" | ^~~ /home/hassanahmedansari/esp/esp-idf/components/log/include/esp_log_color.h:47:69: note: in expansion of macro 'LOG_ANSI_COLOR' 47 | #define LOG_ANSI_COLOR_REGULAR(COLOR) LOG_ANSI_COLOR(LOG_ANSI_COLOR_STYLE_RESET ";" COLOR) | ^~~~~~ /home/hassanahmedansari/esp/esp-idf/components/log/include/esp_log_color.h:93:31: note: in expansion of macro 'LOG_ANSI_COLOR_REGULAR' 93 | #define LOG_COLOR_I LOG_ANSI_COLOR_REGULAR(LOG_COLOR_GREEN) | ^~~~~~ /home/hassanahmedansari/esp/esp-idf/components/log/include/esp_log.h:62:37: note: in expansion of macro 'LOG_COLOR_I' 62 | #define LOG_FORMAT(letter, format) LOGCOLOR ## letter #letter " (%" PRIu32 ") %s: " format LOG_RESET_COLOR "\n" | ^~~~~~ /home/hassanahmedansari/esp/esp-idf/components/log/include/esp_log.h:186:86: note: in expansion of macro 'LOG_FORMAT' 186 | else { esp_log_write(ESP_LOG_INFO, tag, LOG_FORMAT(I, format), esp_log_timestamp(), tag, ##VA_ARGS); } \ | ^~~~~~ /home/hassanahmedansari/esp/esp-idf/components/log/include/esp_log.h:205:38: note: in expansion of macro 'ESP_LOG_LEVEL' 205 | if (_ESP_LOG_ENABLED(level)) ESP_LOG_LEVEL(level, tag, format, ##VA_ARGS); \ | ^~~~~ /home/hassanahmedansari/esp/esp-idf/components/log/include/esp_log.h:114:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL' 114 | #define ESP_LOGI( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO, tag, format, ##VA_ARGS) | ^~~~~~~ /home/hassanahmedansari/esp/Thingsboard-ESP32-MQTT-OTA/mqttOta/main/mqttOta.c:567:9: note: in expansion of macro 'ESP_LOGI' 567 | ESP_LOGI(TAG, "MQTT port from flash memory: %d", mqtt_port); | ^~~~ /home/hassanahmedansari/esp/Thingsboard-ESP32-MQTT-OTA/mqttOta/main/mqttOta.c: In function 'mqtt_app_start': /home/hassanahmedansari/esp/Thingsboard-ESP32-MQTT-OTA/mqttOta/main/mqttOta.c:635:24: error: 'esp_mqtt_client_config_t' has no member named 'uri' 635 | { .uri = mqtt_url, .event_handle = mqtt_event_handler, .port = mqtt_port, .buffer_size = CHUNK_SIZE + 100, .username = | ^~~ /home/hassanahmedansari/esp/Thingsboard-ESP32-MQTT-OTA/mqttOta/main/mqttOta.c:635:41: error: 'esp_mqtt_client_config_t' has no member named 'event_handle' 635 | { .uri = mqtt_url, .event_handle = mqtt_event_handler, .port = mqtt_port, .buffer_size = CHUNK_SIZE + 100, .username = | ^~~~ /home/hassanahmedansari/esp/Thingsboard-ESP32-MQTT-OTA/mqttOta/main/mqttOta.c:635:56: warning: initialization of 'const char ' from incompatible pointer type 'esp_err_t ()(esp_mqtt_event_t )' {aka 'int ()(esp_mqtt_event_t )'} [-Wincompatible-pointer-types] 635 | { .uri = mqtt_url, .event_handle = mqtt_event_handler, .port = mqtt_port, .buffer_size = CHUNK_SIZE + 100, .username = | ^~~~~~ /home/hassanahmedansari/esp/Thingsboard-ESP32-MQTT-OTA/mqttOta/main/mqttOta.c:635:56: note: (near initialization for 'mqtt_cfg.credentials.username') /home/hassanahmedansari/esp/Thingsboard-ESP32-MQTT-OTA/mqttOta/main/mqttOta.c:635:77: error: 'esp_mqtt_client_config_t' has no member named 'port' 635 | { .uri = mqtt_url, .event_handle = mqtt_event_handler, .port = mqtt_port, .buffer_size = CHUNK_SIZE + 100, .username = | ^~~~ /home/hassanahmedansari/esp/Thingsboard-ESP32-MQTT-OTA/mqttOta/main/mqttOta.c:635:84: warning: initialization of 'const char ' from 'uint32_t' {aka 'long unsigned int'} makes pointer from integer without a cast [-Wint-conversion] 635 | { .uri = mqtt_url, .event_handle = mqtt_event_handler, .port = mqtt_port, .buffer_size = CHUNK_SIZE + 100, .username = | ^~~~~ /home/hassanahmedansari/esp/Thingsboard-ESP32-MQTT-OTA/mqttOta/main/mqttOta.c:635:84: note: (near initialization for 'mqtt_cfg.session.last_will.topic') /home/hassanahmedansari/esp/Thingsboard-ESP32-MQTT-OTA/mqttOta/main/mqttOta.c:635:96: error: 'esp_mqtt_client_config_t' has no member named 'buffer_size' 635 | { .uri = mqtt_url, .event_handle = mqtt_event_handler, .port = mqtt_port, .buffer_size = CHUNK_SIZE + 100, .username = | ^~~/home/hassanahmedansari/esp/Thingsboard-ESP32-MQTT-OTA/mqttOta/main/mqttOta.c:635:129: error: 'esp_mqtt_client_config_t' has no member named 'username' 635 | { .uri = mqtt_url, .event_handle = mqtt_event_handler, .port = mqtt_port, .buffer_size = CHUNK_SIZE + 100, .username = | ^~~~ /home/hassanahmedansari/esp/Thingsboard-ESP32-MQTT-OTA/mqttOta/main/mqttOta.c:636:37: warning: initialization of 'int' from 'const char *' makes integer from pointer without a cast [-Wint-conversion] 636 | mqtt_access_token }; | ^~~~~ /home/hassanahmedansari/esp/Thingsboard-ESP32-MQTT-OTA/mqttOta/main/mqttOta.c:636:37: note: (near initialization for 'mqtt_cfg.task.priority') /home/hassanahmedansari/esp/Thingsboard-ESP32-MQTT-OTA/mqttOta/main/mqttOta.c:635:21: error: missing braces around initializer [-Werror=missing-braces] 635 | { .uri = mqtt_url, .event_handle = mqtt_event_handler, .port = mqtt_port, .buffer_size = CHUNK_SIZE + 100, .username = | ^ /home/hassanahmedansari/esp/Thingsboard-ESP32-MQTT-OTA/mqttOta/main/mqttOta.c: In function 'start_ota': /home/hassanahmedansari/esp/esp-idf/components/log/include/esp_log_color.h:43:69: error: format '%x' expects argument of type 'unsigned int', but argument 7 has type 'uint32_t' {aka 'long unsigned int'} [-Werror=format=] 43 | #define LOG_ANSI_COLOR(TEXT_COLOR) "\033[" TEXT_COLOR "m" | ^~~ /home/hassanahmedansari/esp/esp-idf/components/log/include/esp_log_color.h:47:69: note: in expansion of macro 'LOG_ANSI_COLOR' 47 | #define LOG_ANSI_COLOR_REGULAR(COLOR) LOG_ANSI_COLOR(LOG_ANSI_COLOR_STYLE_RESET ";" COLOR) | ^~~~~~ /home/hassanahmedansari/esp/esp-idf/components/log/include/esp_log_color.h:91:31: note: in expansion of macro 'LOG_ANSI_COLOR_REGULAR' 91 | #define LOG_COLOR_E LOG_ANSI_COLOR_REGULAR(LOG_COLOR_RED) | ^~~~~~ /home/hassanahmedansari/esp/esp-idf/components/log/include/esp_log.h:62:37: note: in expansion of macro 'LOG_COLOR_E' 62 | #define LOG_FORMAT(letter, format) LOGCOLOR ## letter #letter " (%" PRIu32 ") %s: " format LOG_RESET_COLOR "\n" | ^~~~~~ /home/hassanahmedansari/esp/esp-idf/components/log/include/esp_log.h:182:86: note: in expansion of macro 'LOG_FORMAT' 182 | if (level==ESP_LOG_ERROR ) { esp_log_write(ESP_LOG_ERROR, tag, LOG_FORMAT(E, format), esp_log_timestamp(), tag, ##VA_ARGS); } \ | ^~~~~~ /home/hassanahmedansari/esp/esp-idf/components/log/include/esp_log.h:205:38: note: in expansion of macro 'ESP_LOG_LEVEL' 205 | if (_ESP_LOG_ENABLED(level)) ESP_LOG_LEVEL(level, tag, format, ##VA_ARGS); \ | ^~~~~ /home/hassanahmedansari/esp/esp-idf/components/log/include/esp_log.h:114:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL' 114 | #define ESP_LOGI( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO, tag, format, ##VA_ARGS) | ^~~~~~~ /home/hassanahmedansari/esp/Thingsboard-ESP32-MQTT-OTA/mqttOta/main/mqttOta.c:681:9: note: in expansion of macro 'ESP_LOGI' 681 | ESP_LOGI(TAG, "Writing to partition subtype %d at offset 0x%x", update_partition->subtype, update_partition->address); | ^~~~ /home/hassanahmedansari/esp/esp-idf/components/log/include/esp_log_color.h:43:69: error: format '%x' expects argument of type 'unsigned int', but argument 7 has type 'uint32_t' {aka 'long unsigned int'} [-Werror=format=] 43 | #define LOG_ANSI_COLOR(TEXT_COLOR) "\033[" TEXT_COLOR "m" | ^~~ /home/hassanahmedansari/esp/esp-idf/components/log/include/esp_log_color.h:47:69: note: in expansion of macro 'LOG_ANSI_COLOR' 47 | #define LOG_ANSI_COLOR_REGULAR(COLOR) LOG_ANSI_COLOR(LOG_ANSI_COLOR_STYLE_RESET ";" COLOR) | ^~~~~~ /home/hassanahmedansari/esp/esp-idf/components/log/include/esp_log_color.h:92:31: note: in expansion of macro 'LOG_ANSI_COLOR_REGULAR' 92 | #define LOG_COLOR_W LOG_ANSI_COLOR_REGULAR(LOG_COLOR_YELLOW) | ^~~~~~ /home/hassanahmedansari/esp/esp-idf/components/log/include/esp_log.h:62:37: note: in expansion of macro 'LOG_COLOR_W' 62 | #define LOG_FORMAT(letter, format) LOGCOLOR ## letter #letter " (%" PRIu32 ") %s: " format LOG_RESET_COLOR "\n" | ^~~~~~ /home/hassanahmedansari/esp/esp-idf/components/log/include/esp_log.h:183:86: note: in expansion of macro 'LOG_FORMAT' 183 | else if (level==ESP_LOG_WARN ) { esp_log_write(ESP_LOG_WARN, tag, LOG_FORMAT(W, format), esp_log_timestamp(), tag, ##VA_ARGS); } \ | ^~~~~~ /home/hassanahmedansari/esp/esp-idf/components/log/include/esp_log.h:205:38: note: in expansion of macro 'ESP_LOG_LEVEL' 205 | if (_ESP_LOG_ENABLED(level)) ESP_LOG_LEVEL(level, tag, format, ##VA_ARGS); \ | ^~~~~ /home/hassanahmedansari/esp/esp-idf/components/log/include/esp_log.h:114:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL' 114 | #define ESP_LOGI( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO, tag, format, ##VA_ARGS) | ^~~~~~~ /home/hassanahmedansari/esp/Thingsboard-ESP32-MQTT-OTA/mqttOta/main/mqttOta.c:681:9: note: in expansion of macro 'ESP_LOGI' 681 | ESP_LOGI(TAG, "Writing to partition subtype %d at offset 0x%x", update_partition->subtype, update_partition->address); | ^~~~ /home/hassanahmedansari/esp/esp-idf/components/log/include/esp_log_color.h:94:31: error: format '%x' expects argument of type 'unsigned int', but argument 7 has type 'uint32_t' {aka 'long unsigned int'} [-Werror=format=] 94 | #define LOG_COLOR_D "" | ^~ /home/hassanahmedansari/esp/esp-idf/components/log/include/esp_log.h:62:37: note: in expansion of macro 'LOG_COLOR_D' 62 | #define LOG_FORMAT(letter, format) LOGCOLOR ## letter #letter " (%" PRIu32 ") %s: " format LOG_RESET_COLOR "\n" | ^~~~~~ /home/hassanahmedansari/esp/esp-idf/components/log/include/esp_log.h:184:86: note: in expansion of macro 'LOG_FORMAT' 184 | else if (level==ESP_LOG_DEBUG ) { esp_log_write(ESP_LOG_DEBUG, tag, LOG_FORMAT(D, format), esp_log_timestamp(), tag, ##VA_ARGS); } \ | ^~~~~~ /home/hassanahmedansari/esp/esp-idf/components/log/include/esp_log.h:205:38: note: in expansion of macro 'ESP_LOG_LEVEL' 205 | if (_ESP_LOG_ENABLED(level)) ESP_LOG_LEVEL(level, tag, format, ##VA_ARGS); \ | ^~~~~ /home/hassanahmedansari/esp/esp-idf/components/log/include/esp_log.h:114:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL' 114 | #define ESP_LOGI( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO, tag, format, ##VA_ARGS) | ^~~~~~~ /home/hassanahmedansari/esp/Thingsboard-ESP32-MQTT-OTA/mqttOta/main/mqttOta.c:681:9: note: in expansion of macro 'ESP_LOGI' 681 | ESP_LOGI(TAG, "Writing to partition subtype %d at offset 0x%x", update_partition->subtype, update_partition->address); | ^~~~ /home/hassanahmedansari/esp/esp-idf/components/log/include/esp_log_color.h:95:31: error: format '%x' expects argument of type 'unsigned int', but argument 7 has type 'uint32_t' {aka 'long unsigned int'} [-Werror=format=] 95 | #define LOG_COLOR_V "" | ^~ /home/hassanahmedansari/esp/esp-idf/components/log/include/esp_log.h:62:37: note: in expansion of macro 'LOG_COLOR_V' 62 | #define LOG_FORMAT(letter, format) LOGCOLOR ## letter #letter " (%" PRIu32 ") %s: " format LOG_RESET_COLOR "\n" | ^~~~~~ /home/hassanahmedansari/esp/esp-idf/components/log/include/esp_log.h:185:86: note: in expansion of macro 'LOG_FORMAT' 185 | else if (level==ESP_LOG_VERBOSE ) { esp_log_write(ESP_LOG_VERBOSE, tag, LOG_FORMAT(V, format), esp_log_timestamp(), tag, ##VA_ARGS); } \ | ^~~~~~ /home/hassanahmedansari/esp/esp-idf/components/log/include/esp_log.h:205:38: note: in expansion of macro 'ESP_LOG_LEVEL' 205 | if (_ESP_LOG_ENABLED(level)) ESP_LOG_LEVEL(level, tag, format, ##VA_ARGS); \ | ^~~~~ /home/hassanahmedansari/esp/esp-idf/components/log/include/esp_log.h:114:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL' 114 | #define ESP_LOGI( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO, tag, format, ##VA_ARGS__) | ^~~~~~~ /home/hassanahmedansari/esp/Thingsboard-ESP32-MQTT-OTA/mqttOta/main/mqttOta.c:681:9: note: in expansion of macro 'ESP_LOGI' 681 | ESP_LOGI(TAG, "Writing to partition subtype %d at offset 0x%x", update_partition->subtype, update_partition->address); | ^~~~ /home/hassanahmedansari/esp/esp-idf/components/log/include/esp_log_color.h:43:69: error: format '%x' expects argument of type 'unsigned int', but argument 7 has type 'uint32_t' {aka 'long unsigned int'} [-Werror=format=] 43 | #define LOG_ANSI_COLOR(TEXT_COLOR) "\033[" TEXT_COLOR "m" | ^~~ /home/hassanahmedansari/esp/esp-idf/components/log/include/esp_log_color.h:47:69: note: in expansion of macro 'LOG_ANSI_COLOR' 47 | #define LOG_ANSI_COLOR_REGULAR(COLOR) LOG_ANSI_COLOR(LOG_ANSI_COLOR_STYLE_RESET ";" COLOR) | ^~~~~~ /home/hassanahmedansari/esp/esp-idf/components/log/include/esp_log_color.h:93:31: note: in expansion of macro 'LOG_ANSI_COLOR_REGULAR' 93 | #define LOG_COLOR_I LOG_ANSI_COLOR_REGULAR(LOG_COLOR_GREEN) | ^~~~~~ /home/hassanahmedansari/esp/esp-idf/components/log/include/esp_log.h:62:37: note: in expansion of macro 'LOG_COLOR_I' 62 | #define LOG_FORMAT(letter, format) LOGCOLOR ## letter #letter " (%" PRIu32 ") %s: " format LOG_RESET_COLOR "\n" | ^~~~~~ /home/hassanahmedansari/esp/esp-idf/components/log/include/esp_log.h:186:86: note: in expansion of macro 'LOG_FORMAT' 186 | else { esp_log_write(ESP_LOG_INFO, tag, LOG_FORMAT(I, format), esp_log_timestamp(), tag, ##VA_ARGS); } \ | ^~~~~~ /home/hassanahmedansari/esp/esp-idf/components/log/include/esp_log.h:205:38: note: in expansion of macro 'ESP_LOG_LEVEL' 205 | if (_ESP_LOG_ENABLED(level)) ESP_LOG_LEVEL(level, tag, format, ##VA_ARGS); \ | ^~~~~ /home/hassanahmedansari/esp/esp-idf/components/log/include/esp_log.h:114:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL' 114 | #define ESP_LOGI( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO, tag, format, ##VA_ARGS__) | ^~~~~~~ /home/hassanahmedansari/esp/Thingsboard-ESP32-MQTT-OTA/mqttOta/main/mqttOta.c:681:9: note: in expansion of macro 'ESP_LOGI' 681 | ESP_LOGI(TAG, "Writing to partition subtype %d at offset 0x%x", update_partition->subtype, update_partition->address); | ^~~~ /home/hassanahmedansari/esp/Thingsboard-ESP32-MQTT-OTA/mqttOta/main/mqttOta.c: At top level: /home/hassanahmedansari/esp/Thingsboard-ESP32-MQTT-OTA/mqttOta/main/mqttOta.c:655:13: warning: 'ota_params_are_specified' defined but not used [-Wunused-function] 655 | static bool ota_params_are_specified(struct shared_keys ota_config) | ^~~~~~~~ /home/hassanahmedansari/esp/Thingsboard-ESP32-MQTT-OTA/mqttOta/main/mqttOta.c:644:13: warning: 'fw_versions_are_equal' defined but not used [-Wunused-function] 644 | static bool fw_versions_are_equal(const char current_ver, const char target_ver) | ^~~~~cc1: some warnings being treated as errors [974/988] Building C object esp-idf/wifi_provisioning/CMakeFiles/__idf_wifi_provisioning.dir/src/manager.c.obj ninja: build stopped: subcommand failed. HINT: The issue is better to resolve by replacing format specifiers to 'PRI'-family macros (include