Hello guys, how are u? I hope everyone is doing good =)
I was updating my idf from version 3.3 to 4.0. I had a few problems with new CMake compiler. I had to install python and etc and i problem messed up everything with my idf. I tried to get back to v3.3 and everthing was screwed up already . So i deleted and reinstalled the esp-idf from v4.2 (stable), and when executing script "Install.sh", everything went well until installing python requeriments... I got this message:
"This script was called from a virtual environment, can not create a virtual environment again".
THe script then stops. If i execute . . /export.sh i get this message:
Using Python interpreter in /home/matheus/.espressif/python_env/idf4.0_py2.7_env/bin/python
Checking if Python packages are up to date...
The following Python requirements are not satisfied:
gdbgui==0.13.2.0
pygdbmi<=0.9.0.2
reedsolo>=1.5.3,<=1.5.4
bitstring>=3.1.6
ecdsa>=0.16.0
To install the missing packages, please run "/home/matheus/esp/esp-idf/install.sh"
So.. i guess i kind need a help to undo the **** i made
Any toughts?
Problems with install.sh
Re: Problems with install.sh
Seems like you're calling install.sh when your python is already inside a virtual environment. If you open a fresh terminal and type "which python", does it point to something like "/usr/bin/python"?
-
- Posts: 10
- Joined: Thu Feb 20, 2020 2:44 pm
Re: Problems with install.sh
Hey,
I did 'whereis python" and saw that i had already installed in my .espressif folder. I just deleted the folder and the installation went smooth. The problem i'm having now is to upgrade a project that i used on v3.3 to v4.0. I adapted some differences on bluetooth lib and etc, i did a CMake.txt inside main folder describing my ".c" files, but i get an error of "ESP_LOGX" (i will show on the end of the post) and "cc1: some warnings being treated as errors". I had this errors once when i had IDF V3.3 and i solved by including "CFLAGS += -Wno-format" at component.mk . I tested my idf 4.0 right now and a hello-world example is compiled without any problems.
My CMakeLists.txt (inside main folder) is:
idf_component_register(SRCS "main_project.c" "timer.c" "bal_id.c" "bluetooth.c" "bovineid_ops.c" "conversions.c" "httpJson.c"
"leds.c" "nvs_handler.c" "ota_handler.c" "packageringbuffer.c" "personalbov_packages.c" "rfid_5f.c"
"rfid_antennachafon.c" "rfid_chafonmu904.c" "rfid_model_abstract.c" "spiffshandler.c" "wifi.c" "wifi_vars.c"
INCLUDE_DIRS "")
component.mk is:
#
# Main component makefile.
#
# This Makefile can be left empty. By default, it will take the sources in the
# src/ directory, compile them and link them into lib(subdirectory_name).a
# in the build directory. This behaviour is entirely configurable,
# please read the ESP-IDF documents if you need to do this.
#
CFLAGS += -Wno-format
CMakeLists.txt (project folder) is:
# The following lines of boilerplate have to be in your project's CMakeLists
# in this exact order for cmake to work correctly
cmake_minimum_required(VERSION 3.5)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(bt_spp_acceptor_demo)
Here is the error codes i'm receiving when idf.py build:
../main/personalbov_packages.c: In function 'GetActionRcvFromServer':
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:255:27: error: format '%u' expects argument of type 'unsigned int', but argument 6 has type 'long int' [-Werror=format=]
#define LOG_COLOR(COLOR) "\033[0;" COLOR "m"
^~~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:258:27: note: in expansion of macro 'LOG_COLOR'
#define LOG_COLOR_E LOG_COLOR(LOG_COLOR_RED)
^~~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:272:37: note: in expansion of macro 'LOG_COLOR_E'
#define LOG_FORMAT(letter, format) LOG_COLOR_ ## letter #letter " (%d) %s: " format LOG_RESET_COLOR "\n"
^~~~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:329:86: note: in expansion of macro 'LOG_FORMAT'
if (level==ESP_LOG_ERROR ) { esp_log_write(ESP_LOG_ERROR, tag, LOG_FORMAT(E, format), esp_log_timestamp(), tag, ##__VA_ARGS__); } \
^~~~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:350:41: note: in expansion of macro 'ESP_LOG_LEVEL'
if ( LOG_LOCAL_LEVEL >= level ) ESP_LOG_LEVEL(level, tag, format, ##__VA_ARGS__); \
^~~~~~~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:296:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL'
#define ESP_LOGI( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO, tag, format, ##__VA_ARGS__)
^~~~~~~~~~~~~~~~~~~
../main/personalbov_packages.c:341:8: note: in expansion of macro 'ESP_LOGI'
ESP_LOGI("TaskSendServer", "MPRcv: %u MZRcv: %u Peso Rcv: %d", mpRcv, mzRcv, pesoCalibRcv);
^~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:255:27: error: format '%u' expects argument of type 'unsigned int', but argument 7 has type 'long int' [-Werror=format=]
#define LOG_COLOR(COLOR) "\033[0;" COLOR "m"
^~~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:258:27: note: in expansion of macro 'LOG_COLOR'
#define LOG_COLOR_E LOG_COLOR(LOG_COLOR_RED)
^~~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:272:37: note: in expansion of macro 'LOG_COLOR_E'
#define LOG_FORMAT(letter, format) LOG_COLOR_ ## letter #letter " (%d) %s: " format LOG_RESET_COLOR "\n"
^~~~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:329:86: note: in expansion of macro 'LOG_FORMAT'
if (level==ESP_LOG_ERROR ) { esp_log_write(ESP_LOG_ERROR, tag, LOG_FORMAT(E, format), esp_log_timestamp(), tag, ##__VA_ARGS__); } \
^~~~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:350:41: note: in expansion of macro 'ESP_LOG_LEVEL'
if ( LOG_LOCAL_LEVEL >= level ) ESP_LOG_LEVEL(level, tag, format, ##__VA_ARGS__); \
^~~~~~~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:296:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL'
#define ESP_LOGI( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO, tag, format, ##__VA_ARGS__)
^~~~~~~~~~~~~~~~~~~
../main/personalbov_packages.c:341:8: note: in expansion of macro 'ESP_LOGI'
ESP_LOGI("TaskSendServer", "MPRcv: %u MZRcv: %u Peso Rcv: %d", mpRcv, mzRcv, pesoCalibRcv);
^~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:255:27: error: format '%u' expects argument of type 'unsigned int', but argument 6 has type 'long int' [-Werror=format=]
#define LOG_COLOR(COLOR) "\033[0;" COLOR "m"
^~~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:259:27: note: in expansion of macro 'LOG_COLOR'
#define LOG_COLOR_W LOG_COLOR(LOG_COLOR_BROWN)
^~~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:272:37: note: in expansion of macro 'LOG_COLOR_W'
#define LOG_FORMAT(letter, format) LOG_COLOR_ ## letter #letter " (%d) %s: " format LOG_RESET_COLOR "\n"
^~~~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:330:86: note: in expansion of macro 'LOG_FORMAT'
else if (level==ESP_LOG_WARN ) { esp_log_write(ESP_LOG_WARN, tag, LOG_FORMAT(W, format), esp_log_timestamp(), tag, ##__VA_ARGS__); } \
^~~~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:350:41: note: in expansion of macro 'ESP_LOG_LEVEL'
if ( LOG_LOCAL_LEVEL >= level ) ESP_LOG_LEVEL(level, tag, format, ##__VA_ARGS__); \
^~~~~~~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:296:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL'
#define ESP_LOGI( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO, tag, format, ##__VA_ARGS__)
^~~~~~~~~~~~~~~~~~~
../main/personalbov_packages.c:341:8: note: in expansion of macro 'ESP_LOGI'
ESP_LOGI("TaskSendServer", "MPRcv: %u MZRcv: %u Peso Rcv: %d", mpRcv, mzRcv, pesoCalibRcv);
^~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:255:27: error: format '%u' expects argument of type 'unsigned int', but argument 7 has type 'long int' [-Werror=format=]
#define LOG_COLOR(COLOR) "\033[0;" COLOR "m"
^~~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:259:27: note: in expansion of macro 'LOG_COLOR'
#define LOG_COLOR_W LOG_COLOR(LOG_COLOR_BROWN)
^~~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:272:37: note: in expansion of macro 'LOG_COLOR_W'
#define LOG_FORMAT(letter, format) LOG_COLOR_ ## letter #letter " (%d) %s: " format LOG_RESET_COLOR "\n"
^~~~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:330:86: note: in expansion of macro 'LOG_FORMAT'
else if (level==ESP_LOG_WARN ) { esp_log_write(ESP_LOG_WARN, tag, LOG_FORMAT(W, format), esp_log_timestamp(), tag, ##__VA_ARGS__); } \
^~~~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:350:41: note: in expansion of macro 'ESP_LOG_LEVEL'
if ( LOG_LOCAL_LEVEL >= level ) ESP_LOG_LEVEL(level, tag, format, ##__VA_ARGS__); \
^~~~~~~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:296:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL'
#define ESP_LOGI( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO, tag, format, ##__VA_ARGS__)
^~~~~~~~~~~~~~~~~~~
../main/personalbov_packages.c:341:8: note: in expansion of macro 'ESP_LOGI'
ESP_LOGI("TaskSendServer", "MPRcv: %u MZRcv: %u Peso Rcv: %d", mpRcv, mzRcv, pesoCalibRcv);
^~~~~~~~
../main/personalbov_packages.c:341:1: error: format '%u' expects argument of type 'unsigned int', but argument 6 has type 'long int' [-Werror=format=]
ESP_LOGI("TaskSendServer", "MPRcv: %u MZRcv: %u Peso Rcv: %d", mpRcv, mzRcv, pesoCalibRcv);
^ ~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:272:59: note: in definition of macro 'LOG_FORMAT'
#define LOG_FORMAT(letter, format) LOG_COLOR_ ## letter #letter " (%d) %s: " format LOG_RESET_COLOR "\n"
^~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:350:41: note: in expansion of macro 'ESP_LOG_LEVEL'
if ( LOG_LOCAL_LEVEL >= level ) ESP_LOG_LEVEL(level, tag, format, ##__VA_ARGS__); \
^~~~~~~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:296:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL'
#define ESP_LOGI( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO, tag, format, ##__VA_ARGS__)
^~~~~~~~~~~~~~~~~~~
../main/personalbov_packages.c:341:8: note: in expansion of macro 'ESP_LOGI'
ESP_LOGI("TaskSendServer", "MPRcv: %u MZRcv: %u Peso Rcv: %d", mpRcv, mzRcv, pesoCalibRcv);
^~~~~~~~
../main/personalbov_packages.c:341:1: error: format '%u' expects argument of type 'unsigned int', but argument 7 has type 'long int' [-Werror=format=]
ESP_LOGI("TaskSendServer", "MPRcv: %u MZRcv: %u Peso Rcv: %d", mpRcv, mzRcv, pesoCalibRcv);
^ ~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:272:59: note: in definition of macro 'LOG_FORMAT'
#define LOG_FORMAT(letter, format) LOG_COLOR_ ## letter #letter " (%d) %s: " format LOG_RESET_COLOR "\n"
^~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:350:41: note: in expansion of macro 'ESP_LOG_LEVEL'
if ( LOG_LOCAL_LEVEL >= level ) ESP_LOG_LEVEL(level, tag, format, ##__VA_ARGS__); \
^~~~~~~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:296:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL'
#define ESP_LOGI( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO, tag, format, ##__VA_ARGS__)
^~~~~~~~~~~~~~~~~~~
../main/personalbov_packages.c:341:8: note: in expansion of macro 'ESP_LOGI'
ESP_LOGI("TaskSendServer", "MPRcv: %u MZRcv: %u Peso Rcv: %d", mpRcv, mzRcv, pesoCalibRcv);
^~~~~~~~
../main/personalbov_packages.c:341:1: error: format '%u' expects argument of type 'unsigned int', but argument 6 has type 'long int' [-Werror=format=]
ESP_LOGI("TaskSendServer", "MPRcv: %u MZRcv: %u Peso Rcv: %d", mpRcv, mzRcv, pesoCalibRcv);
^ ~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:272:59: note: in definition of macro 'LOG_FORMAT'
#define LOG_FORMAT(letter, format) LOG_COLOR_ ## letter #letter " (%d) %s: " format LOG_RESET_COLOR "\n"
^~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:350:41: note: in expansion of macro 'ESP_LOG_LEVEL'
if ( LOG_LOCAL_LEVEL >= level ) ESP_LOG_LEVEL(level, tag, format, ##__VA_ARGS__); \
^~~~~~~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:296:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL'
#define ESP_LOGI( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO, tag, format, ##__VA_ARGS__)
^~~~~~~~~~~~~~~~~~~
../main/personalbov_packages.c:341:8: note: in expansion of macro 'ESP_LOGI'
ESP_LOGI("TaskSendServer", "MPRcv: %u MZRcv: %u Peso Rcv: %d", mpRcv, mzRcv, pesoCalibRcv);
^~~~~~~~
../main/personalbov_packages.c:341:1: error: format '%u' expects argument of type 'unsigned int', but argument 7 has type 'long int' [-Werror=format=]
ESP_LOGI("TaskSendServer", "MPRcv: %u MZRcv: %u Peso Rcv: %d", mpRcv, mzRcv, pesoCalibRcv);
^ ~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:272:59: note: in definition of macro 'LOG_FORMAT'
#define LOG_FORMAT(letter, format) LOG_COLOR_ ## letter #letter " (%d) %s: " format LOG_RESET_COLOR "\n"
^~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:350:41: note: in expansion of macro 'ESP_LOG_LEVEL'
if ( LOG_LOCAL_LEVEL >= level ) ESP_LOG_LEVEL(level, tag, format, ##__VA_ARGS__); \
^~~~~~~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:296:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL'
#define ESP_LOGI( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO, tag, format, ##__VA_ARGS__)
^~~~~~~~~~~~~~~~~~~
../main/personalbov_packages.c:341:8: note: in expansion of macro 'ESP_LOGI'
ESP_LOGI("TaskSendServer", "MPRcv: %u MZRcv: %u Peso Rcv: %d", mpRcv, mzRcv, pesoCalibRcv);
^~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:255:27: error: format '%u' expects argument of type 'unsigned int', but argument 6 has type 'long int' [-Werror=format=]
#define LOG_COLOR(COLOR) "\033[0;" COLOR "m"
^~~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:260:27: note: in expansion of macro 'LOG_COLOR'
#define LOG_COLOR_I LOG_COLOR(LOG_COLOR_GREEN)
^~~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:272:37: note: in expansion of macro 'LOG_COLOR_I'
#define LOG_FORMAT(letter, format) LOG_COLOR_ ## letter #letter " (%d) %s: " format LOG_RESET_COLOR "\n"
^~~~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:333:86: note: in expansion of macro 'LOG_FORMAT'
else { esp_log_write(ESP_LOG_INFO, tag, LOG_FORMAT(I, format), esp_log_timestamp(), tag, ##__VA_ARGS__); } \
^~~~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:350:41: note: in expansion of macro 'ESP_LOG_LEVEL'
if ( LOG_LOCAL_LEVEL >= level ) ESP_LOG_LEVEL(level, tag, format, ##__VA_ARGS__); \
^~~~~~~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:296:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL'
#define ESP_LOGI( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO, tag, format, ##__VA_ARGS__)
^~~~~~~~~~~~~~~~~~~
../main/personalbov_packages.c:341:8: note: in expansion of macro 'ESP_LOGI'
ESP_LOGI("TaskSendServer", "MPRcv: %u MZRcv: %u Peso Rcv: %d", mpRcv, mzRcv, pesoCalibRcv);
^~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:255:27: error: format '%u' expects argument of type 'unsigned int', but argument 7 has type 'long int' [-Werror=format=]
#define LOG_COLOR(COLOR) "\033[0;" COLOR "m"
^~~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:260:27: note: in expansion of macro 'LOG_COLOR'
#define LOG_COLOR_I LOG_COLOR(LOG_COLOR_GREEN)
^~~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:272:37: note: in expansion of macro 'LOG_COLOR_I'
#define LOG_FORMAT(letter, format) LOG_COLOR_ ## letter #letter " (%d) %s: " format LOG_RESET_COLOR "\n"
^~~~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:333:86: note: in expansion of macro 'LOG_FORMAT'
else { esp_log_write(ESP_LOG_INFO, tag, LOG_FORMAT(I, format), esp_log_timestamp(), tag, ##__VA_ARGS__); } \
^~~~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:350:41: note: in expansion of macro 'ESP_LOG_LEVEL'
if ( LOG_LOCAL_LEVEL >= level ) ESP_LOG_LEVEL(level, tag, format, ##__VA_ARGS__); \
^~~~~~~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:296:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL'
#define ESP_LOGI( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO, tag, format, ##__VA_ARGS__)
^~~~~~~~~~~~~~~~~~~
../main/personalbov_packages.c:341:8: note: in expansion of macro 'ESP_LOGI'
ESP_LOGI("TaskSendServer", "MPRcv: %u MZRcv: %u Peso Rcv: %d", mpRcv, mzRcv, pesoCalibRcv);
^~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:255:27: error: format '%u' expects argument of type 'unsigned int', but argument 6 has type 'long int' [-Werror=format=]
#define LOG_COLOR(COLOR) "\033[0;" COLOR "m"
^~~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:258:27: note: in expansion of macro 'LOG_COLOR'
#define LOG_COLOR_E LOG_COLOR(LOG_COLOR_RED)
^~~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:272:37: note: in expansion of macro 'LOG_COLOR_E'
#define LOG_FORMAT(letter, format) LOG_COLOR_ ## letter #letter " (%d) %s: " format LOG_RESET_COLOR "\n"
^~~~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:329:86: note: in expansion of macro 'LOG_FORMAT'
if (level==ESP_LOG_ERROR ) { esp_log_write(ESP_LOG_ERROR, tag, LOG_FORMAT(E, format), esp_log_timestamp(), tag, ##__VA_ARGS__); } \
^~~~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:350:41: note: in expansion of macro 'ESP_LOG_LEVEL'
if ( LOG_LOCAL_LEVEL >= level ) ESP_LOG_LEVEL(level, tag, format, ##__VA_ARGS__); \
^~~~~~~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:296:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL'
#define ESP_LOGI( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO, tag, format, ##__VA_ARGS__)
^~~~~~~~~~~~~~~~~~~
../main/personalbov_packages.c:359:7: note: in expansion of macro 'ESP_LOGI'
ESP_LOGI("TaskSendServer", "refMinRcv: %u refMaxRcv: %u", refMinRcv, refMaxRcv);
^~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:255:27: error: format '%u' expects argument of type 'unsigned int', but argument 7 has type 'long int' [-Werror=format=]
#define LOG_COLOR(COLOR) "\033[0;" COLOR "m"
^~~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:258:27: note: in expansion of macro 'LOG_COLOR'
#define LOG_COLOR_E LOG_COLOR(LOG_COLOR_RED)
^~~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:272:37: note: in expansion of macro 'LOG_COLOR_E'
#define LOG_FORMAT(letter, format) LOG_COLOR_ ## letter #letter " (%d) %s: " format LOG_RESET_COLOR "\n"
^~~~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:329:86: note: in expansion of macro 'LOG_FORMAT'
if (level==ESP_LOG_ERROR ) { esp_log_write(ESP_LOG_ERROR, tag, LOG_FORMAT(E, format), esp_log_timestamp(), tag, ##__VA_ARGS__); } \
^~~~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:350:41: note: in expansion of macro 'ESP_LOG_LEVEL'
if ( LOG_LOCAL_LEVEL >= level ) ESP_LOG_LEVEL(level, tag, format, ##__VA_ARGS__); \
^~~~~~~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:296:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL'
#define ESP_LOGI( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO, tag, format, ##__VA_ARGS__)
^~~~~~~~~~~~~~~~~~~
../main/personalbov_packages.c:359:7: note: in expansion of macro 'ESP_LOGI'
ESP_LOGI("TaskSendServer", "refMinRcv: %u refMaxRcv: %u", refMinRcv, refMaxRcv);
^~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:255:27: error: format '%u' expects argument of type 'unsigned int', but argument 6 has type 'long int' [-Werror=format=]
#define LOG_COLOR(COLOR) "\033[0;" COLOR "m"
^~~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:259:27: note: in expansion of macro 'LOG_COLOR'
#define LOG_COLOR_W LOG_COLOR(LOG_COLOR_BROWN)
^~~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:272:37: note: in expansion of macro 'LOG_COLOR_W'
#define LOG_FORMAT(letter, format) LOG_COLOR_ ## letter #letter " (%d) %s: " format LOG_RESET_COLOR "\n"
^~~~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:330:86: note: in expansion of macro 'LOG_FORMAT'
else if (level==ESP_LOG_WARN ) { esp_log_write(ESP_LOG_WARN, tag, LOG_FORMAT(W, format), esp_log_timestamp(), tag, ##__VA_ARGS__); } \
^~~~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:350:41: note: in expansion of macro 'ESP_LOG_LEVEL'
if ( LOG_LOCAL_LEVEL >= level ) ESP_LOG_LEVEL(level, tag, format, ##__VA_ARGS__); \
^~~~~~~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:296:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL'
#define ESP_LOGI( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO, tag, format, ##__VA_ARGS__)
^~~~~~~~~~~~~~~~~~~
../main/personalbov_packages.c:359:7: note: in expansion of macro 'ESP_LOGI'
ESP_LOGI("TaskSendServer", "refMinRcv: %u refMaxRcv: %u", refMinRcv, refMaxRcv);
^~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:255:27: error: format '%u' expects argument of type 'unsigned int', but argument 7 has type 'long int' [-Werror=format=]
#define LOG_COLOR(COLOR) "\033[0;" COLOR "m"
^~~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:259:27: note: in expansion of macro 'LOG_COLOR'
#define LOG_COLOR_W LOG_COLOR(LOG_COLOR_BROWN)
^~~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:272:37: note: in expansion of macro 'LOG_COLOR_W'
#define LOG_FORMAT(letter, format) LOG_COLOR_ ## letter #letter " (%d) %s: " format LOG_RESET_COLOR "\n"
^~~~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:330:86: note: in expansion of macro 'LOG_FORMAT'
else if (level==ESP_LOG_WARN ) { esp_log_write(ESP_LOG_WARN, tag, LOG_FORMAT(W, format), esp_log_timestamp(), tag, ##__VA_ARGS__); } \
^~~~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:350:41: note: in expansion of macro 'ESP_LOG_LEVEL'
if ( LOG_LOCAL_LEVEL >= level ) ESP_LOG_LEVEL(level, tag, format, ##__VA_ARGS__); \
^~~~~~~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:296:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL'
#define ESP_LOGI( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO, tag, format, ##__VA_ARGS__)
^~~~~~~~~~~~~~~~~~~
../main/personalbov_packages.c:359:7: note: in expansion of macro 'ESP_LOGI'
ESP_LOGI("TaskSendServer", "refMinRcv: %u refMaxRcv: %u", refMinRcv, refMaxRcv);
^~~~~~~~
../main/personalbov_packages.c:359:1: error: format '%u' expects argument of type 'unsigned int', but argument 6 has type 'long int' [-Werror=format=]
ESP_LOGI("TaskSendServer", "refMinRcv: %u refMaxRcv: %u", refMinRcv, refMaxRcv);
^ ~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:272:59: note: in definition of macro 'LOG_FORMAT'
#define LOG_FORMAT(letter, format) LOG_COLOR_ ## letter #letter " (%d) %s: " format LOG_RESET_COLOR "\n"
^~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:350:41: note: in expansion of macro 'ESP_LOG_LEVEL'
if ( LOG_LOCAL_LEVEL >= level ) ESP_LOG_LEVEL(level, tag, format, ##__VA_ARGS__); \
^~~~~~~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:296:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL'
#define ESP_LOGI( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO, tag, format, ##__VA_ARGS__)
^~~~~~~~~~~~~~~~~~~
../main/personalbov_packages.c:359:7: note: in expansion of macro 'ESP_LOGI'
ESP_LOGI("TaskSendServer", "refMinRcv: %u refMaxRcv: %u", refMinRcv, refMaxRcv);
^~~~~~~~
../main/personalbov_packages.c:359:1: error: format '%u' expects argument of type 'unsigned int', but argument 7 has type 'long int' [-Werror=format=]
ESP_LOGI("TaskSendServer", "refMinRcv: %u refMaxRcv: %u", refMinRcv, refMaxRcv);
^ ~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:272:59: note: in definition of macro 'LOG_FORMAT'
#define LOG_FORMAT(letter, format) LOG_COLOR_ ## letter #letter " (%d) %s: " format LOG_RESET_COLOR "\n"
^~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:350:41: note: in expansion of macro 'ESP_LOG_LEVEL'
if ( LOG_LOCAL_LEVEL >= level ) ESP_LOG_LEVEL(level, tag, format, ##__VA_ARGS__); \
^~~~~~~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:296:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL'
#define ESP_LOGI( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO, tag, format, ##__VA_ARGS__)
^~~~~~~~~~~~~~~~~~~
../main/personalbov_packages.c:359:7: note: in expansion of macro 'ESP_LOGI'
ESP_LOGI("TaskSendServer", "refMinRcv: %u refMaxRcv: %u", refMinRcv, refMaxRcv);
^~~~~~~~
../main/personalbov_packages.c:359:1: error: format '%u' expects argument of type 'unsigned int', but argument 6 has type 'long int' [-Werror=format=]
ESP_LOGI("TaskSendServer", "refMinRcv: %u refMaxRcv: %u", refMinRcv, refMaxRcv);
^ ~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:272:59: note: in definition of macro 'LOG_FORMAT'
#define LOG_FORMAT(letter, format) LOG_COLOR_ ## letter #letter " (%d) %s: " format LOG_RESET_COLOR "\n"
^~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:350:41: note: in expansion of macro 'ESP_LOG_LEVEL'
if ( LOG_LOCAL_LEVEL >= level ) ESP_LOG_LEVEL(level, tag, format, ##__VA_ARGS__); \
^~~~~~~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:296:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL'
#define ESP_LOGI( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO, tag, format, ##__VA_ARGS__)
^~~~~~~~~~~~~~~~~~~
../main/personalbov_packages.c:359:7: note: in expansion of macro 'ESP_LOGI'
ESP_LOGI("TaskSendServer", "refMinRcv: %u refMaxRcv: %u", refMinRcv, refMaxRcv);
^~~~~~~~
../main/personalbov_packages.c:359:1: error: format '%u' expects argument of type 'unsigned int', but argument 7 has type 'long int' [-Werror=format=]
ESP_LOGI("TaskSendServer", "refMinRcv: %u refMaxRcv: %u", refMinRcv, refMaxRcv);
^ ~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:272:59: note: in definition of macro 'LOG_FORMAT'
#define LOG_FORMAT(letter, format) LOG_COLOR_ ## letter #letter " (%d) %s: " format LOG_RESET_COLOR "\n"
^~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:350:41: note: in expansion of macro 'ESP_LOG_LEVEL'
if ( LOG_LOCAL_LEVEL >= level ) ESP_LOG_LEVEL(level, tag, format, ##__VA_ARGS__); \
^~~~~~~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:296:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL'
#define ESP_LOGI( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO, tag, format, ##__VA_ARGS__)
^~~~~~~~~~~~~~~~~~~
../main/personalbov_packages.c:359:7: note: in expansion of macro 'ESP_LOGI'
ESP_LOGI("TaskSendServer", "refMinRcv: %u refMaxRcv: %u", refMinRcv, refMaxRcv);
^~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:255:27: error: format '%u' expects argument of type 'unsigned int', but argument 6 has type 'long int' [-Werror=format=]
#define LOG_COLOR(COLOR) "\033[0;" COLOR "m"
^~~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:260:27: note: in expansion of macro 'LOG_COLOR'
#define LOG_COLOR_I LOG_COLOR(LOG_COLOR_GREEN)
^~~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:272:37: note: in expansion of macro 'LOG_COLOR_I'
#define LOG_FORMAT(letter, format) LOG_COLOR_ ## letter #letter " (%d) %s: " format LOG_RESET_COLOR "\n"
^~~~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:333:86: note: in expansion of macro 'LOG_FORMAT'
else { esp_log_write(ESP_LOG_INFO, tag, LOG_FORMAT(I, format), esp_log_timestamp(), tag, ##__VA_ARGS__); } \
^~~~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:350:41: note: in expansion of macro 'ESP_LOG_LEVEL'
if ( LOG_LOCAL_LEVEL >= level ) ESP_LOG_LEVEL(level, tag, format, ##__VA_ARGS__); \
^~~~~~~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:296:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL'
#define ESP_LOGI( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO, tag, format, ##__VA_ARGS__)
^~~~~~~~~~~~~~~~~~~
../main/personalbov_packages.c:359:7: note: in expansion of macro 'ESP_LOGI'
ESP_LOGI("TaskSendServer", "refMinRcv: %u refMaxRcv: %u", refMinRcv, refMaxRcv);
^~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:255:27: error: format '%u' expects argument of type 'unsigned int', but argument 7 has type 'long int' [-Werror=format=]
#define LOG_COLOR(COLOR) "\033[0;" COLOR "m"
^~~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:260:27: note: in expansion of macro 'LOG_COLOR'
#define LOG_COLOR_I LOG_COLOR(LOG_COLOR_GREEN)
^~~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:272:37: note: in expansion of macro 'LOG_COLOR_I'
#define LOG_FORMAT(letter, format) LOG_COLOR_ ## letter #letter " (%d) %s: " format LOG_RESET_COLOR "\n"
^~~~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:333:86: note: in expansion of macro 'LOG_FORMAT'
else { esp_log_write(ESP_LOG_INFO, tag, LOG_FORMAT(I, format), esp_log_timestamp(), tag, ##__VA_ARGS__); } \
^~~~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:350:41: note: in expansion of macro 'ESP_LOG_LEVEL'
if ( LOG_LOCAL_LEVEL >= level ) ESP_LOG_LEVEL(level, tag, format, ##__VA_ARGS__); \
^~~~~~~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:296:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL'
#define ESP_LOGI( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO, tag, format, ##__VA_ARGS__)
^~~~~~~~~~~~~~~~~~~
../main/personalbov_packages.c:359:7: note: in expansion of macro 'ESP_LOGI'
ESP_LOGI("TaskSendServer", "refMinRcv: %u refMaxRcv: %u", refMinRcv, refMaxRcv);
^~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:255:27: error: format '%d' expects argument of type 'int', but argument 6 has type 'long int' [-Werror=format=]
#define LOG_COLOR(COLOR) "\033[0;" COLOR "m"
^~~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:258:27: note: in expansion of macro 'LOG_COLOR'
#define LOG_COLOR_E LOG_COLOR(LOG_COLOR_RED)
^~~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:272:37: note: in expansion of macro 'LOG_COLOR_E'
#define LOG_FORMAT(letter, format) LOG_COLOR_ ## letter #letter " (%d) %s: " format LOG_RESET_COLOR "\n"
^~~~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:329:86: note: in expansion of macro 'LOG_FORMAT'
if (level==ESP_LOG_ERROR ) { esp_log_write(ESP_LOG_ERROR, tag, LOG_FORMAT(E, format), esp_log_timestamp(), tag, ##__VA_ARGS__); } \
^~~~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:350:41: note: in expansion of macro 'ESP_LOG_LEVEL'
if ( LOG_LOCAL_LEVEL >= level ) ESP_LOG_LEVEL(level, tag, format, ##__VA_ARGS__); \
^~~~~~~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:296:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL'
#define ESP_LOGI( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO, tag, format, ##__VA_ARGS__)
^~~~~~~~~~~~~~~~~~~
../main/personalbov_packages.c:457:6: note: in expansion of macro 'ESP_LOGI'
ESP_LOGI("TaskSendServer", "numeroPacoteRcv: %d", numeroPacoteRcv);
^~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:255:27: error: format '%d' expects argument of type 'int', but argument 6 has type 'long int' [-Werror=format=]
#define LOG_COLOR(COLOR) "\033[0;" COLOR "m"
^~~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:259:27: note: in expansion of macro 'LOG_COLOR'
#define LOG_COLOR_W LOG_COLOR(LOG_COLOR_BROWN)
^~~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:272:37: note: in expansion of macro 'LOG_COLOR_W'
#define LOG_FORMAT(letter, format) LOG_COLOR_ ## letter #letter " (%d) %s: " format LOG_RESET_COLOR "\n"
^~~~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:330:86: note: in expansion of macro 'LOG_FORMAT'
else if (level==ESP_LOG_WARN ) { esp_log_write(ESP_LOG_WARN, tag, LOG_FORMAT(W, format), esp_log_timestamp(), tag, ##__VA_ARGS__); } \
^~~~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:350:41: note: in expansion of macro 'ESP_LOG_LEVEL'
if ( LOG_LOCAL_LEVEL >= level ) ESP_LOG_LEVEL(level, tag, format, ##__VA_ARGS__); \
^~~~~~~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:296:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL'
#define ESP_LOGI( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO, tag, format, ##__VA_ARGS__)
^~~~~~~~~~~~~~~~~~~
../main/personalbov_packages.c:457:6: note: in expansion of macro 'ESP_LOGI'
ESP_LOGI("TaskSendServer", "numeroPacoteRcv: %d", numeroPacoteRcv);
^~~~~~~~
../main/personalbov_packages.c:457:1: error: format '%d' expects argument of type 'int', but argument 6 has type 'long int' [-Werror=format=]
ESP_LOGI("TaskSendServer", "numeroPacoteRcv: %d", numeroPacoteRcv);
^ ~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:272:59: note: in definition of macro 'LOG_FORMAT'
#define LOG_FORMAT(letter, format) LOG_COLOR_ ## letter #letter " (%d) %s: " format LOG_RESET_COLOR "\n"
^~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:350:41: note: in expansion of macro 'ESP_LOG_LEVEL'
if ( LOG_LOCAL_LEVEL >= level ) ESP_LOG_LEVEL(level, tag, format, ##__VA_ARGS__); \
^~~~~~~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:296:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL'
#define ESP_LOGI( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO, tag, format, ##__VA_ARGS__)
^~~~~~~~~~~~~~~~~~~
../main/personalbov_packages.c:457:6: note: in expansion of macro 'ESP_LOGI'
ESP_LOGI("TaskSendServer", "numeroPacoteRcv: %d", numeroPacoteRcv);
^~~~~~~~
../main/personalbov_packages.c:457:1: error: format '%d' expects argument of type 'int', but argument 6 has type 'long int' [-Werror=format=]
ESP_LOGI("TaskSendServer", "numeroPacoteRcv: %d", numeroPacoteRcv);
^ ~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:272:59: note: in definition of macro 'LOG_FORMAT'
#define LOG_FORMAT(letter, format) LOG_COLOR_ ## letter #letter " (%d) %s: " format LOG_RESET_COLOR "\n"
^~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:350:41: note: in expansion of macro 'ESP_LOG_LEVEL'
if ( LOG_LOCAL_LEVEL >= level ) ESP_LOG_LEVEL(level, tag, format, ##__VA_ARGS__); \
^~~~~~~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:296:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL'
#define ESP_LOGI( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO, tag, format, ##__VA_ARGS__)
^~~~~~~~~~~~~~~~~~~
../main/personalbov_packages.c:457:6: note: in expansion of macro 'ESP_LOGI'
ESP_LOGI("TaskSendServer", "numeroPacoteRcv: %d", numeroPacoteRcv);
^~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:255:27: error: format '%d' expects argument of type 'int', but argument 6 has type 'long int' [-Werror=format=]
#define LOG_COLOR(COLOR) "\033[0;" COLOR "m"
^~~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:260:27: note: in expansion of macro 'LOG_COLOR'
#define LOG_COLOR_I LOG_COLOR(LOG_COLOR_GREEN)
^~~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:272:37: note: in expansion of macro 'LOG_COLOR_I'
#define LOG_FORMAT(letter, format) LOG_COLOR_ ## letter #letter " (%d) %s: " format LOG_RESET_COLOR "\n"
^~~~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:333:86: note: in expansion of macro 'LOG_FORMAT'
else { esp_log_write(ESP_LOG_INFO, tag, LOG_FORMAT(I, format), esp_log_timestamp(), tag, ##__VA_ARGS__); } \
^~~~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:350:41: note: in expansion of macro 'ESP_LOG_LEVEL'
if ( LOG_LOCAL_LEVEL >= level ) ESP_LOG_LEVEL(level, tag, format, ##__VA_ARGS__); \
^~~~~~~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:296:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL'
#define ESP_LOGI( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO, tag, format, ##__VA_ARGS__)
^~~~~~~~~~~~~~~~~~~
../main/personalbov_packages.c:457:6: note: in expansion of macro 'ESP_LOGI'
ESP_LOGI("TaskSendServer", "numeroPacoteRcv: %d", numeroPacoteRcv);
^~~~~~~~
cc1: some warnings being treated as errors
ninja: build stopped: subcommand failed.
ninja failed with exit code 1
I did 'whereis python" and saw that i had already installed in my .espressif folder. I just deleted the folder and the installation went smooth. The problem i'm having now is to upgrade a project that i used on v3.3 to v4.0. I adapted some differences on bluetooth lib and etc, i did a CMake.txt inside main folder describing my ".c" files, but i get an error of "ESP_LOGX" (i will show on the end of the post) and "cc1: some warnings being treated as errors". I had this errors once when i had IDF V3.3 and i solved by including "CFLAGS += -Wno-format" at component.mk . I tested my idf 4.0 right now and a hello-world example is compiled without any problems.
My CMakeLists.txt (inside main folder) is:
idf_component_register(SRCS "main_project.c" "timer.c" "bal_id.c" "bluetooth.c" "bovineid_ops.c" "conversions.c" "httpJson.c"
"leds.c" "nvs_handler.c" "ota_handler.c" "packageringbuffer.c" "personalbov_packages.c" "rfid_5f.c"
"rfid_antennachafon.c" "rfid_chafonmu904.c" "rfid_model_abstract.c" "spiffshandler.c" "wifi.c" "wifi_vars.c"
INCLUDE_DIRS "")
component.mk is:
#
# Main component makefile.
#
# This Makefile can be left empty. By default, it will take the sources in the
# src/ directory, compile them and link them into lib(subdirectory_name).a
# in the build directory. This behaviour is entirely configurable,
# please read the ESP-IDF documents if you need to do this.
#
CFLAGS += -Wno-format
CMakeLists.txt (project folder) is:
# The following lines of boilerplate have to be in your project's CMakeLists
# in this exact order for cmake to work correctly
cmake_minimum_required(VERSION 3.5)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(bt_spp_acceptor_demo)
Here is the error codes i'm receiving when idf.py build:
../main/personalbov_packages.c: In function 'GetActionRcvFromServer':
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:255:27: error: format '%u' expects argument of type 'unsigned int', but argument 6 has type 'long int' [-Werror=format=]
#define LOG_COLOR(COLOR) "\033[0;" COLOR "m"
^~~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:258:27: note: in expansion of macro 'LOG_COLOR'
#define LOG_COLOR_E LOG_COLOR(LOG_COLOR_RED)
^~~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:272:37: note: in expansion of macro 'LOG_COLOR_E'
#define LOG_FORMAT(letter, format) LOG_COLOR_ ## letter #letter " (%d) %s: " format LOG_RESET_COLOR "\n"
^~~~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:329:86: note: in expansion of macro 'LOG_FORMAT'
if (level==ESP_LOG_ERROR ) { esp_log_write(ESP_LOG_ERROR, tag, LOG_FORMAT(E, format), esp_log_timestamp(), tag, ##__VA_ARGS__); } \
^~~~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:350:41: note: in expansion of macro 'ESP_LOG_LEVEL'
if ( LOG_LOCAL_LEVEL >= level ) ESP_LOG_LEVEL(level, tag, format, ##__VA_ARGS__); \
^~~~~~~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:296:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL'
#define ESP_LOGI( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO, tag, format, ##__VA_ARGS__)
^~~~~~~~~~~~~~~~~~~
../main/personalbov_packages.c:341:8: note: in expansion of macro 'ESP_LOGI'
ESP_LOGI("TaskSendServer", "MPRcv: %u MZRcv: %u Peso Rcv: %d", mpRcv, mzRcv, pesoCalibRcv);
^~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:255:27: error: format '%u' expects argument of type 'unsigned int', but argument 7 has type 'long int' [-Werror=format=]
#define LOG_COLOR(COLOR) "\033[0;" COLOR "m"
^~~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:258:27: note: in expansion of macro 'LOG_COLOR'
#define LOG_COLOR_E LOG_COLOR(LOG_COLOR_RED)
^~~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:272:37: note: in expansion of macro 'LOG_COLOR_E'
#define LOG_FORMAT(letter, format) LOG_COLOR_ ## letter #letter " (%d) %s: " format LOG_RESET_COLOR "\n"
^~~~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:329:86: note: in expansion of macro 'LOG_FORMAT'
if (level==ESP_LOG_ERROR ) { esp_log_write(ESP_LOG_ERROR, tag, LOG_FORMAT(E, format), esp_log_timestamp(), tag, ##__VA_ARGS__); } \
^~~~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:350:41: note: in expansion of macro 'ESP_LOG_LEVEL'
if ( LOG_LOCAL_LEVEL >= level ) ESP_LOG_LEVEL(level, tag, format, ##__VA_ARGS__); \
^~~~~~~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:296:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL'
#define ESP_LOGI( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO, tag, format, ##__VA_ARGS__)
^~~~~~~~~~~~~~~~~~~
../main/personalbov_packages.c:341:8: note: in expansion of macro 'ESP_LOGI'
ESP_LOGI("TaskSendServer", "MPRcv: %u MZRcv: %u Peso Rcv: %d", mpRcv, mzRcv, pesoCalibRcv);
^~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:255:27: error: format '%u' expects argument of type 'unsigned int', but argument 6 has type 'long int' [-Werror=format=]
#define LOG_COLOR(COLOR) "\033[0;" COLOR "m"
^~~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:259:27: note: in expansion of macro 'LOG_COLOR'
#define LOG_COLOR_W LOG_COLOR(LOG_COLOR_BROWN)
^~~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:272:37: note: in expansion of macro 'LOG_COLOR_W'
#define LOG_FORMAT(letter, format) LOG_COLOR_ ## letter #letter " (%d) %s: " format LOG_RESET_COLOR "\n"
^~~~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:330:86: note: in expansion of macro 'LOG_FORMAT'
else if (level==ESP_LOG_WARN ) { esp_log_write(ESP_LOG_WARN, tag, LOG_FORMAT(W, format), esp_log_timestamp(), tag, ##__VA_ARGS__); } \
^~~~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:350:41: note: in expansion of macro 'ESP_LOG_LEVEL'
if ( LOG_LOCAL_LEVEL >= level ) ESP_LOG_LEVEL(level, tag, format, ##__VA_ARGS__); \
^~~~~~~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:296:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL'
#define ESP_LOGI( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO, tag, format, ##__VA_ARGS__)
^~~~~~~~~~~~~~~~~~~
../main/personalbov_packages.c:341:8: note: in expansion of macro 'ESP_LOGI'
ESP_LOGI("TaskSendServer", "MPRcv: %u MZRcv: %u Peso Rcv: %d", mpRcv, mzRcv, pesoCalibRcv);
^~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:255:27: error: format '%u' expects argument of type 'unsigned int', but argument 7 has type 'long int' [-Werror=format=]
#define LOG_COLOR(COLOR) "\033[0;" COLOR "m"
^~~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:259:27: note: in expansion of macro 'LOG_COLOR'
#define LOG_COLOR_W LOG_COLOR(LOG_COLOR_BROWN)
^~~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:272:37: note: in expansion of macro 'LOG_COLOR_W'
#define LOG_FORMAT(letter, format) LOG_COLOR_ ## letter #letter " (%d) %s: " format LOG_RESET_COLOR "\n"
^~~~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:330:86: note: in expansion of macro 'LOG_FORMAT'
else if (level==ESP_LOG_WARN ) { esp_log_write(ESP_LOG_WARN, tag, LOG_FORMAT(W, format), esp_log_timestamp(), tag, ##__VA_ARGS__); } \
^~~~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:350:41: note: in expansion of macro 'ESP_LOG_LEVEL'
if ( LOG_LOCAL_LEVEL >= level ) ESP_LOG_LEVEL(level, tag, format, ##__VA_ARGS__); \
^~~~~~~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:296:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL'
#define ESP_LOGI( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO, tag, format, ##__VA_ARGS__)
^~~~~~~~~~~~~~~~~~~
../main/personalbov_packages.c:341:8: note: in expansion of macro 'ESP_LOGI'
ESP_LOGI("TaskSendServer", "MPRcv: %u MZRcv: %u Peso Rcv: %d", mpRcv, mzRcv, pesoCalibRcv);
^~~~~~~~
../main/personalbov_packages.c:341:1: error: format '%u' expects argument of type 'unsigned int', but argument 6 has type 'long int' [-Werror=format=]
ESP_LOGI("TaskSendServer", "MPRcv: %u MZRcv: %u Peso Rcv: %d", mpRcv, mzRcv, pesoCalibRcv);
^ ~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:272:59: note: in definition of macro 'LOG_FORMAT'
#define LOG_FORMAT(letter, format) LOG_COLOR_ ## letter #letter " (%d) %s: " format LOG_RESET_COLOR "\n"
^~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:350:41: note: in expansion of macro 'ESP_LOG_LEVEL'
if ( LOG_LOCAL_LEVEL >= level ) ESP_LOG_LEVEL(level, tag, format, ##__VA_ARGS__); \
^~~~~~~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:296:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL'
#define ESP_LOGI( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO, tag, format, ##__VA_ARGS__)
^~~~~~~~~~~~~~~~~~~
../main/personalbov_packages.c:341:8: note: in expansion of macro 'ESP_LOGI'
ESP_LOGI("TaskSendServer", "MPRcv: %u MZRcv: %u Peso Rcv: %d", mpRcv, mzRcv, pesoCalibRcv);
^~~~~~~~
../main/personalbov_packages.c:341:1: error: format '%u' expects argument of type 'unsigned int', but argument 7 has type 'long int' [-Werror=format=]
ESP_LOGI("TaskSendServer", "MPRcv: %u MZRcv: %u Peso Rcv: %d", mpRcv, mzRcv, pesoCalibRcv);
^ ~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:272:59: note: in definition of macro 'LOG_FORMAT'
#define LOG_FORMAT(letter, format) LOG_COLOR_ ## letter #letter " (%d) %s: " format LOG_RESET_COLOR "\n"
^~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:350:41: note: in expansion of macro 'ESP_LOG_LEVEL'
if ( LOG_LOCAL_LEVEL >= level ) ESP_LOG_LEVEL(level, tag, format, ##__VA_ARGS__); \
^~~~~~~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:296:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL'
#define ESP_LOGI( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO, tag, format, ##__VA_ARGS__)
^~~~~~~~~~~~~~~~~~~
../main/personalbov_packages.c:341:8: note: in expansion of macro 'ESP_LOGI'
ESP_LOGI("TaskSendServer", "MPRcv: %u MZRcv: %u Peso Rcv: %d", mpRcv, mzRcv, pesoCalibRcv);
^~~~~~~~
../main/personalbov_packages.c:341:1: error: format '%u' expects argument of type 'unsigned int', but argument 6 has type 'long int' [-Werror=format=]
ESP_LOGI("TaskSendServer", "MPRcv: %u MZRcv: %u Peso Rcv: %d", mpRcv, mzRcv, pesoCalibRcv);
^ ~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:272:59: note: in definition of macro 'LOG_FORMAT'
#define LOG_FORMAT(letter, format) LOG_COLOR_ ## letter #letter " (%d) %s: " format LOG_RESET_COLOR "\n"
^~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:350:41: note: in expansion of macro 'ESP_LOG_LEVEL'
if ( LOG_LOCAL_LEVEL >= level ) ESP_LOG_LEVEL(level, tag, format, ##__VA_ARGS__); \
^~~~~~~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:296:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL'
#define ESP_LOGI( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO, tag, format, ##__VA_ARGS__)
^~~~~~~~~~~~~~~~~~~
../main/personalbov_packages.c:341:8: note: in expansion of macro 'ESP_LOGI'
ESP_LOGI("TaskSendServer", "MPRcv: %u MZRcv: %u Peso Rcv: %d", mpRcv, mzRcv, pesoCalibRcv);
^~~~~~~~
../main/personalbov_packages.c:341:1: error: format '%u' expects argument of type 'unsigned int', but argument 7 has type 'long int' [-Werror=format=]
ESP_LOGI("TaskSendServer", "MPRcv: %u MZRcv: %u Peso Rcv: %d", mpRcv, mzRcv, pesoCalibRcv);
^ ~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:272:59: note: in definition of macro 'LOG_FORMAT'
#define LOG_FORMAT(letter, format) LOG_COLOR_ ## letter #letter " (%d) %s: " format LOG_RESET_COLOR "\n"
^~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:350:41: note: in expansion of macro 'ESP_LOG_LEVEL'
if ( LOG_LOCAL_LEVEL >= level ) ESP_LOG_LEVEL(level, tag, format, ##__VA_ARGS__); \
^~~~~~~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:296:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL'
#define ESP_LOGI( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO, tag, format, ##__VA_ARGS__)
^~~~~~~~~~~~~~~~~~~
../main/personalbov_packages.c:341:8: note: in expansion of macro 'ESP_LOGI'
ESP_LOGI("TaskSendServer", "MPRcv: %u MZRcv: %u Peso Rcv: %d", mpRcv, mzRcv, pesoCalibRcv);
^~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:255:27: error: format '%u' expects argument of type 'unsigned int', but argument 6 has type 'long int' [-Werror=format=]
#define LOG_COLOR(COLOR) "\033[0;" COLOR "m"
^~~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:260:27: note: in expansion of macro 'LOG_COLOR'
#define LOG_COLOR_I LOG_COLOR(LOG_COLOR_GREEN)
^~~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:272:37: note: in expansion of macro 'LOG_COLOR_I'
#define LOG_FORMAT(letter, format) LOG_COLOR_ ## letter #letter " (%d) %s: " format LOG_RESET_COLOR "\n"
^~~~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:333:86: note: in expansion of macro 'LOG_FORMAT'
else { esp_log_write(ESP_LOG_INFO, tag, LOG_FORMAT(I, format), esp_log_timestamp(), tag, ##__VA_ARGS__); } \
^~~~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:350:41: note: in expansion of macro 'ESP_LOG_LEVEL'
if ( LOG_LOCAL_LEVEL >= level ) ESP_LOG_LEVEL(level, tag, format, ##__VA_ARGS__); \
^~~~~~~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:296:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL'
#define ESP_LOGI( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO, tag, format, ##__VA_ARGS__)
^~~~~~~~~~~~~~~~~~~
../main/personalbov_packages.c:341:8: note: in expansion of macro 'ESP_LOGI'
ESP_LOGI("TaskSendServer", "MPRcv: %u MZRcv: %u Peso Rcv: %d", mpRcv, mzRcv, pesoCalibRcv);
^~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:255:27: error: format '%u' expects argument of type 'unsigned int', but argument 7 has type 'long int' [-Werror=format=]
#define LOG_COLOR(COLOR) "\033[0;" COLOR "m"
^~~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:260:27: note: in expansion of macro 'LOG_COLOR'
#define LOG_COLOR_I LOG_COLOR(LOG_COLOR_GREEN)
^~~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:272:37: note: in expansion of macro 'LOG_COLOR_I'
#define LOG_FORMAT(letter, format) LOG_COLOR_ ## letter #letter " (%d) %s: " format LOG_RESET_COLOR "\n"
^~~~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:333:86: note: in expansion of macro 'LOG_FORMAT'
else { esp_log_write(ESP_LOG_INFO, tag, LOG_FORMAT(I, format), esp_log_timestamp(), tag, ##__VA_ARGS__); } \
^~~~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:350:41: note: in expansion of macro 'ESP_LOG_LEVEL'
if ( LOG_LOCAL_LEVEL >= level ) ESP_LOG_LEVEL(level, tag, format, ##__VA_ARGS__); \
^~~~~~~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:296:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL'
#define ESP_LOGI( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO, tag, format, ##__VA_ARGS__)
^~~~~~~~~~~~~~~~~~~
../main/personalbov_packages.c:341:8: note: in expansion of macro 'ESP_LOGI'
ESP_LOGI("TaskSendServer", "MPRcv: %u MZRcv: %u Peso Rcv: %d", mpRcv, mzRcv, pesoCalibRcv);
^~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:255:27: error: format '%u' expects argument of type 'unsigned int', but argument 6 has type 'long int' [-Werror=format=]
#define LOG_COLOR(COLOR) "\033[0;" COLOR "m"
^~~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:258:27: note: in expansion of macro 'LOG_COLOR'
#define LOG_COLOR_E LOG_COLOR(LOG_COLOR_RED)
^~~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:272:37: note: in expansion of macro 'LOG_COLOR_E'
#define LOG_FORMAT(letter, format) LOG_COLOR_ ## letter #letter " (%d) %s: " format LOG_RESET_COLOR "\n"
^~~~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:329:86: note: in expansion of macro 'LOG_FORMAT'
if (level==ESP_LOG_ERROR ) { esp_log_write(ESP_LOG_ERROR, tag, LOG_FORMAT(E, format), esp_log_timestamp(), tag, ##__VA_ARGS__); } \
^~~~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:350:41: note: in expansion of macro 'ESP_LOG_LEVEL'
if ( LOG_LOCAL_LEVEL >= level ) ESP_LOG_LEVEL(level, tag, format, ##__VA_ARGS__); \
^~~~~~~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:296:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL'
#define ESP_LOGI( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO, tag, format, ##__VA_ARGS__)
^~~~~~~~~~~~~~~~~~~
../main/personalbov_packages.c:359:7: note: in expansion of macro 'ESP_LOGI'
ESP_LOGI("TaskSendServer", "refMinRcv: %u refMaxRcv: %u", refMinRcv, refMaxRcv);
^~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:255:27: error: format '%u' expects argument of type 'unsigned int', but argument 7 has type 'long int' [-Werror=format=]
#define LOG_COLOR(COLOR) "\033[0;" COLOR "m"
^~~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:258:27: note: in expansion of macro 'LOG_COLOR'
#define LOG_COLOR_E LOG_COLOR(LOG_COLOR_RED)
^~~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:272:37: note: in expansion of macro 'LOG_COLOR_E'
#define LOG_FORMAT(letter, format) LOG_COLOR_ ## letter #letter " (%d) %s: " format LOG_RESET_COLOR "\n"
^~~~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:329:86: note: in expansion of macro 'LOG_FORMAT'
if (level==ESP_LOG_ERROR ) { esp_log_write(ESP_LOG_ERROR, tag, LOG_FORMAT(E, format), esp_log_timestamp(), tag, ##__VA_ARGS__); } \
^~~~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:350:41: note: in expansion of macro 'ESP_LOG_LEVEL'
if ( LOG_LOCAL_LEVEL >= level ) ESP_LOG_LEVEL(level, tag, format, ##__VA_ARGS__); \
^~~~~~~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:296:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL'
#define ESP_LOGI( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO, tag, format, ##__VA_ARGS__)
^~~~~~~~~~~~~~~~~~~
../main/personalbov_packages.c:359:7: note: in expansion of macro 'ESP_LOGI'
ESP_LOGI("TaskSendServer", "refMinRcv: %u refMaxRcv: %u", refMinRcv, refMaxRcv);
^~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:255:27: error: format '%u' expects argument of type 'unsigned int', but argument 6 has type 'long int' [-Werror=format=]
#define LOG_COLOR(COLOR) "\033[0;" COLOR "m"
^~~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:259:27: note: in expansion of macro 'LOG_COLOR'
#define LOG_COLOR_W LOG_COLOR(LOG_COLOR_BROWN)
^~~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:272:37: note: in expansion of macro 'LOG_COLOR_W'
#define LOG_FORMAT(letter, format) LOG_COLOR_ ## letter #letter " (%d) %s: " format LOG_RESET_COLOR "\n"
^~~~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:330:86: note: in expansion of macro 'LOG_FORMAT'
else if (level==ESP_LOG_WARN ) { esp_log_write(ESP_LOG_WARN, tag, LOG_FORMAT(W, format), esp_log_timestamp(), tag, ##__VA_ARGS__); } \
^~~~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:350:41: note: in expansion of macro 'ESP_LOG_LEVEL'
if ( LOG_LOCAL_LEVEL >= level ) ESP_LOG_LEVEL(level, tag, format, ##__VA_ARGS__); \
^~~~~~~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:296:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL'
#define ESP_LOGI( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO, tag, format, ##__VA_ARGS__)
^~~~~~~~~~~~~~~~~~~
../main/personalbov_packages.c:359:7: note: in expansion of macro 'ESP_LOGI'
ESP_LOGI("TaskSendServer", "refMinRcv: %u refMaxRcv: %u", refMinRcv, refMaxRcv);
^~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:255:27: error: format '%u' expects argument of type 'unsigned int', but argument 7 has type 'long int' [-Werror=format=]
#define LOG_COLOR(COLOR) "\033[0;" COLOR "m"
^~~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:259:27: note: in expansion of macro 'LOG_COLOR'
#define LOG_COLOR_W LOG_COLOR(LOG_COLOR_BROWN)
^~~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:272:37: note: in expansion of macro 'LOG_COLOR_W'
#define LOG_FORMAT(letter, format) LOG_COLOR_ ## letter #letter " (%d) %s: " format LOG_RESET_COLOR "\n"
^~~~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:330:86: note: in expansion of macro 'LOG_FORMAT'
else if (level==ESP_LOG_WARN ) { esp_log_write(ESP_LOG_WARN, tag, LOG_FORMAT(W, format), esp_log_timestamp(), tag, ##__VA_ARGS__); } \
^~~~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:350:41: note: in expansion of macro 'ESP_LOG_LEVEL'
if ( LOG_LOCAL_LEVEL >= level ) ESP_LOG_LEVEL(level, tag, format, ##__VA_ARGS__); \
^~~~~~~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:296:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL'
#define ESP_LOGI( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO, tag, format, ##__VA_ARGS__)
^~~~~~~~~~~~~~~~~~~
../main/personalbov_packages.c:359:7: note: in expansion of macro 'ESP_LOGI'
ESP_LOGI("TaskSendServer", "refMinRcv: %u refMaxRcv: %u", refMinRcv, refMaxRcv);
^~~~~~~~
../main/personalbov_packages.c:359:1: error: format '%u' expects argument of type 'unsigned int', but argument 6 has type 'long int' [-Werror=format=]
ESP_LOGI("TaskSendServer", "refMinRcv: %u refMaxRcv: %u", refMinRcv, refMaxRcv);
^ ~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:272:59: note: in definition of macro 'LOG_FORMAT'
#define LOG_FORMAT(letter, format) LOG_COLOR_ ## letter #letter " (%d) %s: " format LOG_RESET_COLOR "\n"
^~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:350:41: note: in expansion of macro 'ESP_LOG_LEVEL'
if ( LOG_LOCAL_LEVEL >= level ) ESP_LOG_LEVEL(level, tag, format, ##__VA_ARGS__); \
^~~~~~~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:296:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL'
#define ESP_LOGI( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO, tag, format, ##__VA_ARGS__)
^~~~~~~~~~~~~~~~~~~
../main/personalbov_packages.c:359:7: note: in expansion of macro 'ESP_LOGI'
ESP_LOGI("TaskSendServer", "refMinRcv: %u refMaxRcv: %u", refMinRcv, refMaxRcv);
^~~~~~~~
../main/personalbov_packages.c:359:1: error: format '%u' expects argument of type 'unsigned int', but argument 7 has type 'long int' [-Werror=format=]
ESP_LOGI("TaskSendServer", "refMinRcv: %u refMaxRcv: %u", refMinRcv, refMaxRcv);
^ ~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:272:59: note: in definition of macro 'LOG_FORMAT'
#define LOG_FORMAT(letter, format) LOG_COLOR_ ## letter #letter " (%d) %s: " format LOG_RESET_COLOR "\n"
^~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:350:41: note: in expansion of macro 'ESP_LOG_LEVEL'
if ( LOG_LOCAL_LEVEL >= level ) ESP_LOG_LEVEL(level, tag, format, ##__VA_ARGS__); \
^~~~~~~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:296:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL'
#define ESP_LOGI( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO, tag, format, ##__VA_ARGS__)
^~~~~~~~~~~~~~~~~~~
../main/personalbov_packages.c:359:7: note: in expansion of macro 'ESP_LOGI'
ESP_LOGI("TaskSendServer", "refMinRcv: %u refMaxRcv: %u", refMinRcv, refMaxRcv);
^~~~~~~~
../main/personalbov_packages.c:359:1: error: format '%u' expects argument of type 'unsigned int', but argument 6 has type 'long int' [-Werror=format=]
ESP_LOGI("TaskSendServer", "refMinRcv: %u refMaxRcv: %u", refMinRcv, refMaxRcv);
^ ~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:272:59: note: in definition of macro 'LOG_FORMAT'
#define LOG_FORMAT(letter, format) LOG_COLOR_ ## letter #letter " (%d) %s: " format LOG_RESET_COLOR "\n"
^~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:350:41: note: in expansion of macro 'ESP_LOG_LEVEL'
if ( LOG_LOCAL_LEVEL >= level ) ESP_LOG_LEVEL(level, tag, format, ##__VA_ARGS__); \
^~~~~~~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:296:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL'
#define ESP_LOGI( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO, tag, format, ##__VA_ARGS__)
^~~~~~~~~~~~~~~~~~~
../main/personalbov_packages.c:359:7: note: in expansion of macro 'ESP_LOGI'
ESP_LOGI("TaskSendServer", "refMinRcv: %u refMaxRcv: %u", refMinRcv, refMaxRcv);
^~~~~~~~
../main/personalbov_packages.c:359:1: error: format '%u' expects argument of type 'unsigned int', but argument 7 has type 'long int' [-Werror=format=]
ESP_LOGI("TaskSendServer", "refMinRcv: %u refMaxRcv: %u", refMinRcv, refMaxRcv);
^ ~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:272:59: note: in definition of macro 'LOG_FORMAT'
#define LOG_FORMAT(letter, format) LOG_COLOR_ ## letter #letter " (%d) %s: " format LOG_RESET_COLOR "\n"
^~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:350:41: note: in expansion of macro 'ESP_LOG_LEVEL'
if ( LOG_LOCAL_LEVEL >= level ) ESP_LOG_LEVEL(level, tag, format, ##__VA_ARGS__); \
^~~~~~~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:296:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL'
#define ESP_LOGI( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO, tag, format, ##__VA_ARGS__)
^~~~~~~~~~~~~~~~~~~
../main/personalbov_packages.c:359:7: note: in expansion of macro 'ESP_LOGI'
ESP_LOGI("TaskSendServer", "refMinRcv: %u refMaxRcv: %u", refMinRcv, refMaxRcv);
^~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:255:27: error: format '%u' expects argument of type 'unsigned int', but argument 6 has type 'long int' [-Werror=format=]
#define LOG_COLOR(COLOR) "\033[0;" COLOR "m"
^~~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:260:27: note: in expansion of macro 'LOG_COLOR'
#define LOG_COLOR_I LOG_COLOR(LOG_COLOR_GREEN)
^~~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:272:37: note: in expansion of macro 'LOG_COLOR_I'
#define LOG_FORMAT(letter, format) LOG_COLOR_ ## letter #letter " (%d) %s: " format LOG_RESET_COLOR "\n"
^~~~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:333:86: note: in expansion of macro 'LOG_FORMAT'
else { esp_log_write(ESP_LOG_INFO, tag, LOG_FORMAT(I, format), esp_log_timestamp(), tag, ##__VA_ARGS__); } \
^~~~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:350:41: note: in expansion of macro 'ESP_LOG_LEVEL'
if ( LOG_LOCAL_LEVEL >= level ) ESP_LOG_LEVEL(level, tag, format, ##__VA_ARGS__); \
^~~~~~~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:296:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL'
#define ESP_LOGI( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO, tag, format, ##__VA_ARGS__)
^~~~~~~~~~~~~~~~~~~
../main/personalbov_packages.c:359:7: note: in expansion of macro 'ESP_LOGI'
ESP_LOGI("TaskSendServer", "refMinRcv: %u refMaxRcv: %u", refMinRcv, refMaxRcv);
^~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:255:27: error: format '%u' expects argument of type 'unsigned int', but argument 7 has type 'long int' [-Werror=format=]
#define LOG_COLOR(COLOR) "\033[0;" COLOR "m"
^~~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:260:27: note: in expansion of macro 'LOG_COLOR'
#define LOG_COLOR_I LOG_COLOR(LOG_COLOR_GREEN)
^~~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:272:37: note: in expansion of macro 'LOG_COLOR_I'
#define LOG_FORMAT(letter, format) LOG_COLOR_ ## letter #letter " (%d) %s: " format LOG_RESET_COLOR "\n"
^~~~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:333:86: note: in expansion of macro 'LOG_FORMAT'
else { esp_log_write(ESP_LOG_INFO, tag, LOG_FORMAT(I, format), esp_log_timestamp(), tag, ##__VA_ARGS__); } \
^~~~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:350:41: note: in expansion of macro 'ESP_LOG_LEVEL'
if ( LOG_LOCAL_LEVEL >= level ) ESP_LOG_LEVEL(level, tag, format, ##__VA_ARGS__); \
^~~~~~~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:296:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL'
#define ESP_LOGI( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO, tag, format, ##__VA_ARGS__)
^~~~~~~~~~~~~~~~~~~
../main/personalbov_packages.c:359:7: note: in expansion of macro 'ESP_LOGI'
ESP_LOGI("TaskSendServer", "refMinRcv: %u refMaxRcv: %u", refMinRcv, refMaxRcv);
^~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:255:27: error: format '%d' expects argument of type 'int', but argument 6 has type 'long int' [-Werror=format=]
#define LOG_COLOR(COLOR) "\033[0;" COLOR "m"
^~~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:258:27: note: in expansion of macro 'LOG_COLOR'
#define LOG_COLOR_E LOG_COLOR(LOG_COLOR_RED)
^~~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:272:37: note: in expansion of macro 'LOG_COLOR_E'
#define LOG_FORMAT(letter, format) LOG_COLOR_ ## letter #letter " (%d) %s: " format LOG_RESET_COLOR "\n"
^~~~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:329:86: note: in expansion of macro 'LOG_FORMAT'
if (level==ESP_LOG_ERROR ) { esp_log_write(ESP_LOG_ERROR, tag, LOG_FORMAT(E, format), esp_log_timestamp(), tag, ##__VA_ARGS__); } \
^~~~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:350:41: note: in expansion of macro 'ESP_LOG_LEVEL'
if ( LOG_LOCAL_LEVEL >= level ) ESP_LOG_LEVEL(level, tag, format, ##__VA_ARGS__); \
^~~~~~~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:296:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL'
#define ESP_LOGI( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO, tag, format, ##__VA_ARGS__)
^~~~~~~~~~~~~~~~~~~
../main/personalbov_packages.c:457:6: note: in expansion of macro 'ESP_LOGI'
ESP_LOGI("TaskSendServer", "numeroPacoteRcv: %d", numeroPacoteRcv);
^~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:255:27: error: format '%d' expects argument of type 'int', but argument 6 has type 'long int' [-Werror=format=]
#define LOG_COLOR(COLOR) "\033[0;" COLOR "m"
^~~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:259:27: note: in expansion of macro 'LOG_COLOR'
#define LOG_COLOR_W LOG_COLOR(LOG_COLOR_BROWN)
^~~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:272:37: note: in expansion of macro 'LOG_COLOR_W'
#define LOG_FORMAT(letter, format) LOG_COLOR_ ## letter #letter " (%d) %s: " format LOG_RESET_COLOR "\n"
^~~~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:330:86: note: in expansion of macro 'LOG_FORMAT'
else if (level==ESP_LOG_WARN ) { esp_log_write(ESP_LOG_WARN, tag, LOG_FORMAT(W, format), esp_log_timestamp(), tag, ##__VA_ARGS__); } \
^~~~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:350:41: note: in expansion of macro 'ESP_LOG_LEVEL'
if ( LOG_LOCAL_LEVEL >= level ) ESP_LOG_LEVEL(level, tag, format, ##__VA_ARGS__); \
^~~~~~~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:296:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL'
#define ESP_LOGI( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO, tag, format, ##__VA_ARGS__)
^~~~~~~~~~~~~~~~~~~
../main/personalbov_packages.c:457:6: note: in expansion of macro 'ESP_LOGI'
ESP_LOGI("TaskSendServer", "numeroPacoteRcv: %d", numeroPacoteRcv);
^~~~~~~~
../main/personalbov_packages.c:457:1: error: format '%d' expects argument of type 'int', but argument 6 has type 'long int' [-Werror=format=]
ESP_LOGI("TaskSendServer", "numeroPacoteRcv: %d", numeroPacoteRcv);
^ ~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:272:59: note: in definition of macro 'LOG_FORMAT'
#define LOG_FORMAT(letter, format) LOG_COLOR_ ## letter #letter " (%d) %s: " format LOG_RESET_COLOR "\n"
^~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:350:41: note: in expansion of macro 'ESP_LOG_LEVEL'
if ( LOG_LOCAL_LEVEL >= level ) ESP_LOG_LEVEL(level, tag, format, ##__VA_ARGS__); \
^~~~~~~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:296:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL'
#define ESP_LOGI( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO, tag, format, ##__VA_ARGS__)
^~~~~~~~~~~~~~~~~~~
../main/personalbov_packages.c:457:6: note: in expansion of macro 'ESP_LOGI'
ESP_LOGI("TaskSendServer", "numeroPacoteRcv: %d", numeroPacoteRcv);
^~~~~~~~
../main/personalbov_packages.c:457:1: error: format '%d' expects argument of type 'int', but argument 6 has type 'long int' [-Werror=format=]
ESP_LOGI("TaskSendServer", "numeroPacoteRcv: %d", numeroPacoteRcv);
^ ~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:272:59: note: in definition of macro 'LOG_FORMAT'
#define LOG_FORMAT(letter, format) LOG_COLOR_ ## letter #letter " (%d) %s: " format LOG_RESET_COLOR "\n"
^~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:350:41: note: in expansion of macro 'ESP_LOG_LEVEL'
if ( LOG_LOCAL_LEVEL >= level ) ESP_LOG_LEVEL(level, tag, format, ##__VA_ARGS__); \
^~~~~~~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:296:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL'
#define ESP_LOGI( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO, tag, format, ##__VA_ARGS__)
^~~~~~~~~~~~~~~~~~~
../main/personalbov_packages.c:457:6: note: in expansion of macro 'ESP_LOGI'
ESP_LOGI("TaskSendServer", "numeroPacoteRcv: %d", numeroPacoteRcv);
^~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:255:27: error: format '%d' expects argument of type 'int', but argument 6 has type 'long int' [-Werror=format=]
#define LOG_COLOR(COLOR) "\033[0;" COLOR "m"
^~~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:260:27: note: in expansion of macro 'LOG_COLOR'
#define LOG_COLOR_I LOG_COLOR(LOG_COLOR_GREEN)
^~~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:272:37: note: in expansion of macro 'LOG_COLOR_I'
#define LOG_FORMAT(letter, format) LOG_COLOR_ ## letter #letter " (%d) %s: " format LOG_RESET_COLOR "\n"
^~~~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:333:86: note: in expansion of macro 'LOG_FORMAT'
else { esp_log_write(ESP_LOG_INFO, tag, LOG_FORMAT(I, format), esp_log_timestamp(), tag, ##__VA_ARGS__); } \
^~~~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:350:41: note: in expansion of macro 'ESP_LOG_LEVEL'
if ( LOG_LOCAL_LEVEL >= level ) ESP_LOG_LEVEL(level, tag, format, ##__VA_ARGS__); \
^~~~~~~~~~~~~
/home/matheus/esp/esp-idf/components/log/include/esp_log.h:296:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL'
#define ESP_LOGI( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO, tag, format, ##__VA_ARGS__)
^~~~~~~~~~~~~~~~~~~
../main/personalbov_packages.c:457:6: note: in expansion of macro 'ESP_LOGI'
ESP_LOGI("TaskSendServer", "numeroPacoteRcv: %d", numeroPacoteRcv);
^~~~~~~~
cc1: some warnings being treated as errors
ninja: build stopped: subcommand failed.
ninja failed with exit code 1
-
- Posts: 9769
- Joined: Thu Nov 26, 2015 4:08 am
Re: Problems with install.sh
Note that component.mk is only used when you use 'make' to build your program; idf.py uses cmake and a such CMakeLists.txt. The equivalent for CMake, if I interpret the docs correctly, would be
Put that after the idf_component_register line in your CMakeLists.txt and it should all work again.
Code: Select all
target_compile_options(${COMPONENT_LIB} PRIVATE -Wno-format)
-
- Posts: 10
- Joined: Thu Feb 20, 2020 2:44 pm
Re: Problems with install.sh
It solved!!
Thank you so so much!! This problem was haunting me for a few days!
Thank you so so much!! This problem was haunting me for a few days!
Re: Problems with install.sh
hi im have same problem with you
can you tell hao to solve this ?
home/aiyaname/esp32/esp-idf/components/log/include/esp_log.h:265:27: error: format '%d' expects argument of type 'int', but argument 6 has type 'uint32_t' {aka 'long unsigned int'} [-Werror=format=]
265 | #define LOG_COLOR(COLOR) "\033[0;" COLOR "m"
| ^~~~~~~~~
can you tell hao to solve this ?
home/aiyaname/esp32/esp-idf/components/log/include/esp_log.h:265:27: error: format '%d' expects argument of type 'int', but argument 6 has type 'uint32_t' {aka 'long unsigned int'} [-Werror=format=]
265 | #define LOG_COLOR(COLOR) "\033[0;" COLOR "m"
| ^~~~~~~~~
Re: Problems with install.sh
This is not the same erroor. Check this one:aiya122 wrote: ↑Fri Sep 16, 2022 8:56 amhi im have same problem with you
can you tell hao to solve this ?
home/aiyaname/esp32/esp-idf/components/log/include/esp_log.h:265:27: error: format '%d' expects argument of type 'int', but argument 6 has type 'uint32_t' {aka 'long unsigned int'} [-Werror=format=]
265 | #define LOG_COLOR(COLOR) "\033[0;" COLOR "m"
| ^~~~~~~~~
https://github.com/espressif/esp-idf/issues/9511
Re: Problems with install.sh
its ok now very thank you
Who is online
Users browsing this forum: Bing [Bot] and 71 guests