编译错误

Moderator: ESP_Bob

mcx_bob
Posts: 1
Joined: Tue May 16, 2023 2:53 am

编译错误

Postby mcx_bob » Tue May 16, 2023 2:57 am

In file included from /home/mcx/esp/esp-idf/components/driver/deprecated/driver/i2s.h:23,
from /home/mcx/esp/esp-iot-solution/components/bus/include/i2s_lcd_driver.h:17,
from /home/mcx/esp/esp-iot-solution/components/display/screen/interface_driver/scr_interface_driver.h:23,
from /home/mcx/esp/esp-iot-solution/components/display/screen/screen_driver.h:18,
from /home/mcx/esp/esp-iot-solution/components/display/touch_panel/calibration/touch_calibration.c:18:
/home/mcx/esp/esp-idf/components/driver/deprecated/driver/adc.h:19:2: warning: #warning "legacy adc driver is deprecated, please migrate to use esp_adc/adc_oneshot.h and esp_adc/adc_continuous.h for oneshot mode and continuous mode drivers respectively" [-Wcpp]
19 | #warning "legacy adc driver is deprecated, please migrate to use esp_adc/adc_oneshot.h and esp_adc/adc_continuous.h for oneshot mode and continuous mode drivers respectively"
| ^~~~~~~
In file included from /home/mcx/esp/esp-iot-solution/components/bus/include/i2s_lcd_driver.h:17,
from /home/mcx/esp/esp-iot-solution/components/display/screen/interface_driver/scr_interface_driver.h:23,
from /home/mcx/esp/esp-iot-solution/components/display/screen/screen_driver.h:18,
from /home/mcx/esp/esp-iot-solution/components/display/touch_panel/calibration/touch_calibration.c:18:
/home/mcx/esp/esp-idf/components/driver/deprecated/driver/i2s.h:27:2: warning: #warning "This set of I2S APIs has been deprecated, please include 'driver/i2s_std.h', 'driver/i2s_pdm.h' or 'driver/i2s_tdm.h' instead. if you want to keep using the old APIs and ignore this warning, you can enable 'Suppress leagcy driver deprecated warning' option under 'I2S Configuration' menu in Kconfig" [-Wcpp]
27 | #warning "This set of I2S APIs has been deprecated, \
| ^~~~~~~
In file included from /home/mcx/esp/esp-iot-solution/components/display/touch_panel/calibration/touch_calibration.c:14:
/home/mcx/esp/esp-iot-solution/components/display/touch_panel/calibration/touch_calibration.c: In function '_get_point':
/home/mcx/esp/esp-idf/components/log/include/esp_log.h:265:27: error: format '%d' expects argument of type 'int', but argument 7 has type 'int32_t' {aka 'long int'} [-Werror=format=]
265 | #define LOG_COLOR(COLOR) "\033[0;" COLOR "m"
| ^~~~~~~~~
/home/mcx/esp/esp-idf/components/log/include/esp_log.h:268:27: note: in expansion of macro 'LOG_COLOR'
268 | #define LOG_COLOR_E LOG_COLOR(LOG_COLOR_RED)
| ^~~~~~~~~
/home/mcx/esp/esp-idf/components/log/include/esp_log.h:282:37: note: in expansion of macro 'LOG_COLOR_E'
282 | #define LOG_FORMAT(letter, format) LOG_COLOR_ ## letter #letter " (%" PRIu32 ") %s: " format LOG_RESET_COLOR "\n"
| ^~~~~~~~~~
/home/mcx/esp/esp-idf/components/log/include/esp_log.h:410:86: note: in expansion of macro 'LOG_FORMAT'
410 | if (level==ESP_LOG_ERROR ) { esp_log_write(ESP_LOG_ERROR, tag, LOG_FORMAT(E, format), esp_log_timestamp(), tag, ##__VA_ARGS__); } \
| ^~~~~~~~~~
/home/mcx/esp/esp-idf/components/log/include/esp_log.h:432:41: note: in expansion of macro 'ESP_LOG_LEVEL'
432 | if ( LOG_LOCAL_LEVEL >= level ) ESP_LOG_LEVEL(level, tag, format, ##__VA_ARGS__); \
| ^~~~~~~~~~~~~
/home/mcx/esp/esp-idf/components/log/include/esp_log.h:342:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL'
342 | #define ESP_LOGI( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO, tag, format, ##__VA_ARGS__)
| ^~~~~~~~~~~~~~~~~~~
/home/mcx/esp/esp-iot-solution/components/display/touch_panel/calibration/touch_calibration.c:103:5: note: in expansion of macro 'ESP_LOGI'
103 | ESP_LOGI(TAG, "[%d] X:%d Y:%d", index, point->x, point->y);
| ^~~~~~~~
/home/mcx/esp/esp-idf/components/log/include/esp_log.h:265:27: error: format '%d' expects argument of type 'int', but argument 8 has type 'int32_t' {aka 'long int'} [-Werror=format=]
265 | #define LOG_COLOR(COLOR) "\033[0;" COLOR "m"
| ^~~~~~~~~
/home/mcx/esp/esp-idf/components/log/include/esp_log.h:268:27: note: in expansion of macro 'LOG_COLOR'
268 | #define LOG_COLOR_E LOG_COLOR(LOG_COLOR_RED)
| ^~~~~~~~~
/home/mcx/esp/esp-idf/components/log/include/esp_log.h:282:37: note: in expansion of macro 'LOG_COLOR_E'
282 | #define LOG_FORMAT(letter, format) LOG_COLOR_ ## letter #letter " (%" PRIu32 ") %s: " format LOG_RESET_COLOR "\n"
| ^~~~~~~~~~
/home/mcx/esp/esp-idf/components/log/include/esp_log.h:410:86: note: in expansion of macro 'LOG_FORMAT'
410 | if (level==ESP_LOG_ERROR ) { esp_log_write(ESP_LOG_ERROR, tag, LOG_FORMAT(E, format), esp_log_timestamp(), tag, ##__VA_ARGS__); } \
| ^~~~~~~~~~
/home/mcx/esp/esp-idf/components/log/include/esp_log.h:432:41: note: in expansion of macro 'ESP_LOG_LEVEL'
432 | if ( LOG_LOCAL_LEVEL >= level ) ESP_LOG_LEVEL(level, tag, format, ##__VA_ARGS__); \
| ^~~~~~~~~~~~~
/home/mcx/esp/esp-idf/components/log/include/esp_log.h:342:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL'
342 | #define ESP_LOGI( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO, tag, format, ##__VA_ARGS__)
| ^~~~~~~~~~~~~~~~~~~
/home/mcx/esp/esp-iot-solution/components/display/touch_panel/calibration/touch_calibration.c:103:5: note: in expansion of macro 'ESP_LOGI'
103 | ESP_LOGI(TAG, "[%d] X:%d Y:%d", index, point->x, point->y);
| ^~~~~~~~
/home/mcx/esp/esp-idf/components/log/include/esp_log.h:265:27: error: format '%d' expects argument of type 'int', but argument 7 has type 'int32_t' {aka 'long int'} [-Werror=format=]
265 | #define LOG_COLOR(COLOR) "\033[0;" COLOR "m"
| ^~~~~~~~~
/home/mcx/esp/esp-idf/components/log/include/esp_log.h:269:27: note: in expansion of macro 'LOG_COLOR'
269 | #define LOG_COLOR_W LOG_COLOR(LOG_COLOR_BROWN)
| ^~~~~~~~~
/home/mcx/esp/esp-idf/components/log/include/esp_log.h:282:37: note: in expansion of macro 'LOG_COLOR_W'
282 | #define LOG_FORMAT(letter, format) LOG_COLOR_ ## letter #letter " (%" PRIu32 ") %s: " format LOG_RESET_COLOR "\n"
| ^~~~~~~~~~
/home/mcx/esp/esp-idf/components/log/include/esp_log.h:411:86: note: in expansion of macro 'LOG_FORMAT'
411 | else if (level==ESP_LOG_WARN ) { esp_log_write(ESP_LOG_WARN, tag, LOG_FORMAT(W, format), esp_log_timestamp(), tag, ##__VA_ARGS__); } \
| ^~~~~~~~~~
/home/mcx/esp/esp-idf/components/log/include/esp_log.h:432:41: note: in expansion of macro 'ESP_LOG_LEVEL'
432 | if ( LOG_LOCAL_LEVEL >= level ) ESP_LOG_LEVEL(level, tag, format, ##__VA_ARGS__); \
| ^~~~~~~~~~~~~
/home/mcx/esp/esp-idf/components/log/include/esp_log.h:342:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL'
342 | #define ESP_LOGI( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO, tag, format, ##__VA_ARGS__)
| ^~~~~~~~~~~~~~~~~~~
/home/mcx/esp/esp-iot-solution/components/display/touch_panel/calibration/touch_calibration.c:103:5: note: in expansion of macro 'ESP_LOGI'
103 | ESP_LOGI(TAG, "[%d] X:%d Y:%d", index, point->x, point->y);
| ^~~~~~~~
/home/mcx/esp/esp-idf/components/log/include/esp_log.h:265:27: error: format '%d' expects argument of type 'int', but argument 8 has type 'int32_t' {aka 'long int'} [-Werror=format=]
265 | #define LOG_COLOR(COLOR) "\033[0;" COLOR "m"
| ^~~~~~~~~
/home/mcx/esp/esp-idf/components/log/include/esp_log.h:269:27: note: in expansion of macro 'LOG_COLOR'
269 | #define LOG_COLOR_W LOG_COLOR(LOG_COLOR_BROWN)
| ^~~~~~~~~
/home/mcx/esp/esp-idf/components/log/include/esp_log.h:282:37: note: in expansion of macro 'LOG_COLOR_W'
282 | #define LOG_FORMAT(letter, format) LOG_COLOR_ ## letter #letter " (%" PRIu32 ") %s: " format LOG_RESET_COLOR "\n"
| ^~~~~~~~~~
/home/mcx/esp/esp-idf/components/log/include/esp_log.h:411:86: note: in expansion of macro 'LOG_FORMAT'
411 | else if (level==ESP_LOG_WARN ) { esp_log_write(ESP_LOG_WARN, tag, LOG_FORMAT(W, format), esp_log_timestamp(), tag, ##__VA_ARGS__); } \
| ^~~~~~~~~~
/home/mcx/esp/esp-idf/components/log/include/esp_log.h:432:41: note: in expansion of macro 'ESP_LOG_LEVEL'
432 | if ( LOG_LOCAL_LEVEL >= level ) ESP_LOG_LEVEL(level, tag, format, ##__VA_ARGS__); \
| ^~~~~~~~~~~~~
/home/mcx/esp/esp-idf/components/log/include/esp_log.h:342:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL'
342 | #define ESP_LOGI( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO, tag, format, ##__VA_ARGS__)
| ^~~~~~~~~~~~~~~~~~~
/home/mcx/esp/esp-iot-solution/components/display/touch_panel/calibration/touch_calibration.c:103:5: note: in expansion of macro 'ESP_LOGI'
103 | ESP_LOGI(TAG, "[%d] X:%d Y:%d", index, point->x, point->y);
| ^~~~~~~~
/home/mcx/esp/esp-iot-solution/components/display/touch_panel/calibration/touch_calibration.c:103:1: error: format '%d' expects argument of type 'int', but argument 7 has type 'int32_t' {aka 'long int'} [-Werror=format=]
103 | ESP_LOGI(TAG, "[%d] X:%d Y:%d", index, point->x, point->y);
| ^ ~~~~~~~
/home/mcx/esp/esp-idf/components/log/include/esp_log.h:282:59: note: in definition of macro 'LOG_FORMAT'
282 | #define LOG_FORMAT(letter, format) LOG_COLOR_ ## letter #letter " (%" PRIu32 ") %s: " format LOG_RESET_COLOR "\n"
| ^~~~~~
/home/mcx/esp/esp-idf/components/log/include/esp_log.h:432:41: note: in expansion of macro 'ESP_LOG_LEVEL'
432 | if ( LOG_LOCAL_LEVEL >= level ) ESP_LOG_LEVEL(level, tag, format, ##__VA_ARGS__); \
| ^~~~~~~~~~~~~
/home/mcx/esp/esp-idf/components/log/include/esp_log.h:342:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL'
342 | #define ESP_LOGI( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO, tag, format, ##__VA_ARGS__)
| ^~~~~~~~~~~~~~~~~~~
/home/mcx/esp/esp-iot-solution/components/display/touch_panel/calibration/touch_calibration.c:103:5: note: in expansion of macro 'ESP_LOGI'
103 | ESP_LOGI(TAG, "[%d] X:%d Y:%d", index, point->x, point->y);
| ^~~~~~~~
/home/mcx/esp/esp-iot-solution/components/display/touch_panel/calibration/touch_calibration.c:103:1: error: format '%d' expects argument of type 'int', but argument 8 has type 'int32_t' {aka 'long int'} [-Werror=format=]
103 | ESP_LOGI(TAG, "[%d] X:%d Y:%d", index, point->x, point->y);
| ^ ~~~~~~~
/home/mcx/esp/esp-idf/components/log/include/esp_log.h:282:59: note: in definition of macro 'LOG_FORMAT'
282 | #define LOG_FORMAT(letter, format) LOG_COLOR_ ## letter #letter " (%" PRIu32 ") %s: " format LOG_RESET_COLOR "\n"
| ^~~~~~
/home/mcx/esp/esp-idf/components/log/include/esp_log.h:432:41: note: in expansion of macro 'ESP_LOG_LEVEL'
432 | if ( LOG_LOCAL_LEVEL >= level ) ESP_LOG_LEVEL(level, tag, format, ##__VA_ARGS__); \
| ^~~~~~~~~~~~~
/home/mcx/esp/esp-idf/components/log/include/esp_log.h:342:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL'
342 | #define ESP_LOGI( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO, tag, format, ##__VA_ARGS__)
| ^~~~~~~~~~~~~~~~~~~
/home/mcx/esp/esp-iot-solution/components/display/touch_panel/calibration/touch_calibration.c:103:5: note: in expansion of macro 'ESP_LOGI'
103 | ESP_LOGI(TAG, "[%d] X:%d Y:%d", index, point->x, point->y);
| ^~~~~~~~
/home/mcx/esp/esp-iot-solution/components/display/touch_panel/calibration/touch_calibration.c:103:1: error: format '%d' expects argument of type 'int', but argument 7 has type 'int32_t' {aka 'long int'} [-Werror=format=]
103 | ESP_LOGI(TAG, "[%d] X:%d Y:%d", index, point->x, point->y);
| ^ ~~~~~~~
/home/mcx/esp/esp-idf/components/log/include/esp_log.h:282:59: note: in definition of macro 'LOG_FORMAT'
282 | #define LOG_FORMAT(letter, format) LOG_COLOR_ ## letter #letter " (%" PRIu32 ") %s: " format LOG_RESET_COLOR "\n"
| ^~~~~~
/home/mcx/esp/esp-idf/components/log/include/esp_log.h:432:41: note: in expansion of macro 'ESP_LOG_LEVEL'
432 | if ( LOG_LOCAL_LEVEL >= level ) ESP_LOG_LEVEL(level, tag, format, ##__VA_ARGS__); \
| ^~~~~~~~~~~~~
/home/mcx/esp/esp-idf/components/log/include/esp_log.h:342:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL'
342 | #define ESP_LOGI( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO, tag, format, ##__VA_ARGS__)
| ^~~~~~~~~~~~~~~~~~~
/home/mcx/esp/esp-iot-solution/components/display/touch_panel/calibration/touch_calibration.c:103:5: note: in expansion of macro 'ESP_LOGI'
103 | ESP_LOGI(TAG, "[%d] X:%d Y:%d", index, point->x, point->y);
| ^~~~~~~~
/home/mcx/esp/esp-iot-solution/components/display/touch_panel/calibration/touch_calibration.c:103:1: error: format '%d' expects argument of type 'int', but argument 8 has type 'int32_t' {aka 'long int'} [-Werror=format=]
103 | ESP_LOGI(TAG, "[%d] X:%d Y:%d", index, point->x, point->y);
| ^ ~~~~~~~
/home/mcx/esp/esp-idf/components/log/include/esp_log.h:282:59: note: in definition of macro 'LOG_FORMAT'
282 | #define LOG_FORMAT(letter, format) LOG_COLOR_ ## letter #letter " (%" PRIu32 ") %s: " format LOG_RESET_COLOR "\n"
| ^~~~~~
/home/mcx/esp/esp-idf/components/log/include/esp_log.h:432:41: note: in expansion of macro 'ESP_LOG_LEVEL'
432 | if ( LOG_LOCAL_LEVEL >= level ) ESP_LOG_LEVEL(level, tag, format, ##__VA_ARGS__); \
| ^~~~~~~~~~~~~
/home/mcx/esp/esp-idf/components/log/include/esp_log.h:342:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL'
342 | #define ESP_LOGI( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO, tag, format, ##__VA_ARGS__)
| ^~~~~~~~~~~~~~~~~~~
/home/mcx/esp/esp-iot-solution/components/display/touch_panel/calibration/touch_calibration.c:103:5: note: in expansion of macro 'ESP_LOGI'
103 | ESP_LOGI(TAG, "[%d] X:%d Y:%d", index, point->x, point->y);
| ^~~~~~~~
/home/mcx/esp/esp-idf/components/log/include/esp_log.h:265:27: error: format '%d' expects argument of type 'int', but argument 7 has type 'int32_t' {aka 'long int'} [-Werror=format=]
265 | #define LOG_COLOR(COLOR) "\033[0;" COLOR "m"
| ^~~~~~~~~
/home/mcx/esp/esp-idf/components/log/include/esp_log.h:270:27: note: in expansion of macro 'LOG_COLOR'
270 | #define LOG_COLOR_I LOG_COLOR(LOG_COLOR_GREEN)
| ^~~~~~~~~
/home/mcx/esp/esp-idf/components/log/include/esp_log.h:282:37: note: in expansion of macro 'LOG_COLOR_I'
282 | #define LOG_FORMAT(letter, format) LOG_COLOR_ ## letter #letter " (%" PRIu32 ") %s: " format LOG_RESET_COLOR "\n"
| ^~~~~~~~~~
/home/mcx/esp/esp-idf/components/log/include/esp_log.h:414:86: note: in expansion of macro 'LOG_FORMAT'
414 | else { esp_log_write(ESP_LOG_INFO, tag, LOG_FORMAT(I, format), esp_log_timestamp(), tag, ##__VA_ARGS__); } \
| ^~~~~~~~~~
/home/mcx/esp/esp-idf/components/log/include/esp_log.h:432:41: note: in expansion of macro 'ESP_LOG_LEVEL'
432 | if ( LOG_LOCAL_LEVEL >= level ) ESP_LOG_LEVEL(level, tag, format, ##__VA_ARGS__); \
| ^~~~~~~~~~~~~
/home/mcx/esp/esp-idf/components/log/include/esp_log.h:342:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL'
342 | #define ESP_LOGI( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO, tag, format, ##__VA_ARGS__)
| ^~~~~~~~~~~~~~~~~~~
/home/mcx/esp/esp-iot-solution/components/display/touch_panel/calibration/touch_calibration.c:103:5: note: in expansion of macro 'ESP_LOGI'
103 | ESP_LOGI(TAG, "[%d] X:%d Y:%d", index, point->x, point->y);
| ^~~~~~~~
/home/mcx/esp/esp-idf/components/log/include/esp_log.h:265:27: error: format '%d' expects argument of type 'int', but argument 8 has type 'int32_t' {aka 'long int'} [-Werror=format=]
265 | #define LOG_COLOR(COLOR) "\033[0;" COLOR "m"
| ^~~~~~~~~
/home/mcx/esp/esp-idf/components/log/include/esp_log.h:270:27: note: in expansion of macro 'LOG_COLOR'
270 | #define LOG_COLOR_I LOG_COLOR(LOG_COLOR_GREEN)
| ^~~~~~~~~
/home/mcx/esp/esp-idf/components/log/include/esp_log.h:282:37: note: in expansion of macro 'LOG_COLOR_I'
282 | #define LOG_FORMAT(letter, format) LOG_COLOR_ ## letter #letter " (%" PRIu32 ") %s: " format LOG_RESET_COLOR "\n"
| ^~~~~~~~~~
/home/mcx/esp/esp-idf/components/log/include/esp_log.h:414:86: note: in expansion of macro 'LOG_FORMAT'
414 | else { esp_log_write(ESP_LOG_INFO, tag, LOG_FORMAT(I, format), esp_log_timestamp(), tag, ##__VA_ARGS__); } \
| ^~~~~~~~~~
/home/mcx/esp/esp-idf/components/log/include/esp_log.h:432:41: note: in expansion of macro 'ESP_LOG_LEVEL'
432 | if ( LOG_LOCAL_LEVEL >= level ) ESP_LOG_LEVEL(level, tag, format, ##__VA_ARGS__); \
| ^~~~~~~~~~~~~
/home/mcx/esp/esp-idf/components/log/include/esp_log.h:342:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL'
342 | #define ESP_LOGI( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO, tag, format, ##__VA_ARGS__)
| ^~~~~~~~~~~~~~~~~~~
/home/mcx/esp/esp-iot-solution/components/display/touch_panel/calibration/touch_calibration.c:103:5: note: in expansion of macro 'ESP_LOGI'
103 | ESP_LOGI(TAG, "[%d] X:%d Y:%d", index, point->x, point->y);
| ^~~~~~~~
/home/mcx/esp/esp-iot-solution/components/display/touch_panel/calibration/touch_calibration.c: In function 'touch_calibration_run':
/home/mcx/esp/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"
| ^~~~~~~~~
/home/mcx/esp/esp-idf/components/log/include/esp_log.h:268:27: note: in expansion of macro 'LOG_COLOR'
268 | #define LOG_COLOR_E LOG_COLOR(LOG_COLOR_RED)
| ^~~~~~~~~
/home/mcx/esp/esp-idf/components/log/include/esp_log.h:282:37: note: in expansion of macro 'LOG_COLOR_E'
282 | #define LOG_FORMAT(letter, format) LOG_COLOR_ ## letter #letter " (%" PRIu32 ") %s: " format LOG_RESET_COLOR "\n"
| ^~~~~~~~~~
/home/mcx/esp/esp-idf/components/log/include/esp_log.h:410:86: note: in expansion of macro 'LOG_FORMAT'
410 | if (level==ESP_LOG_ERROR ) { esp_log_write(ESP_LOG_ERROR, tag, LOG_FORMAT(E, format), esp_log_timestamp(), tag, ##__VA_ARGS__); } \
| ^~~~~~~~~~
/home/mcx/esp/esp-idf/components/log/include/esp_log.h:432:41: note: in expansion of macro 'ESP_LOG_LEVEL'
432 | if ( LOG_LOCAL_LEVEL >= level ) ESP_LOG_LEVEL(level, tag, format, ##__VA_ARGS__); \
| ^~~~~~~~~~~~~
/home/mcx/esp/esp-idf/components/log/include/esp_log.h:341:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL'
341 | #define ESP_LOGW( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_WARN, tag, format, ##__VA_ARGS__)
| ^~~~~~~~~~~~~~~~~~~
/home/mcx/esp/esp-iot-solution/components/display/touch_panel/calibration/touch_calibration.c:280:13: note: in expansion of macro 'ESP_LOGW'
280 | ESP_LOGW(TAG, "Touch Calibration failed! Error=%d", calibrate_error);
| ^~~~~~~~
/home/mcx/esp/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"
| ^~~~~~~~~
/home/mcx/esp/esp-idf/components/log/include/esp_log.h:269:27: note: in expansion of macro 'LOG_COLOR'
269 | #define LOG_COLOR_W LOG_COLOR(LOG_COLOR_BROWN)
| ^~~~~~~~~
/home/mcx/esp/esp-idf/components/log/include/esp_log.h:282:37: note: in expansion of macro 'LOG_COLOR_W'
282 | #define LOG_FORMAT(letter, format) LOG_COLOR_ ## letter #letter " (%" PRIu32 ") %s: " format LOG_RESET_COLOR "\n"
| ^~~~~~~~~~
/home/mcx/esp/esp-idf/components/log/include/esp_log.h:411:86: note: in expansion of macro 'LOG_FORMAT'
411 | else if (level==ESP_LOG_WARN ) { esp_log_write(ESP_LOG_WARN, tag, LOG_FORMAT(W, format), esp_log_timestamp(), tag, ##__VA_ARGS__); } \
| ^~~~~~~~~~
/home/mcx/esp/esp-idf/components/log/include/esp_log.h:432:41: note: in expansion of macro 'ESP_LOG_LEVEL'
432 | if ( LOG_LOCAL_LEVEL >= level ) ESP_LOG_LEVEL(level, tag, format, ##__VA_ARGS__); \
| ^~~~~~~~~~~~~
/home/mcx/esp/esp-idf/components/log/include/esp_log.h:341:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL'
341 | #define ESP_LOGW( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_WARN, tag, format, ##__VA_ARGS__)
| ^~~~~~~~~~~~~~~~~~~
/home/mcx/esp/esp-iot-solution/components/display/touch_panel/calibration/touch_calibration.c:280:13: note: in expansion of macro 'ESP_LOGW'
280 | ESP_LOGW(TAG, "Touch Calibration failed! Error=%d", calibrate_error);
| ^~~~~~~~
/home/mcx/esp/esp-iot-solution/components/display/touch_panel/calibration/touch_calibration.c:280:1: error: format '%d' expects argument of type 'int', but argument 6 has type 'uint32_t' {aka 'long unsigned int'} [-Werror=format=]
280 | ESP_LOGW(TAG, "Touch Calibration failed! Error=%d", calibrate_error);
| ^
/home/mcx/esp/esp-idf/components/log/include/esp_log.h:282:59: note: in definition of macro 'LOG_FORMAT'
282 | #define LOG_FORMAT(letter, format) LOG_COLOR_ ## letter #letter " (%" PRIu32 ") %s: " format LOG_RESET_COLOR "\n"
| ^~~~~~
/home/mcx/esp/esp-idf/components/log/include/esp_log.h:432:41: note: in expansion of macro 'ESP_LOG_LEVEL'
432 | if ( LOG_LOCAL_LEVEL >= level ) ESP_LOG_LEVEL(level, tag, format, ##__VA_ARGS__); \
| ^~~~~~~~~~~~~
/home/mcx/esp/esp-idf/components/log/include/esp_log.h:341:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL'
341 | #define ESP_LOGW( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_WARN, tag, format, ##__VA_ARGS__)
| ^~~~~~~~~~~~~~~~~~~
/home/mcx/esp/esp-iot-solution/components/display/touch_panel/calibration/touch_calibration.c:280:13: note: in expansion of macro 'ESP_LOGW'
280 | ESP_LOGW(TAG, "Touch Calibration failed! Error=%d", calibrate_error);
| ^~~~~~~~
/home/mcx/esp/esp-iot-solution/components/display/touch_panel/calibration/touch_calibration.c:280:1: error: format '%d' expects argument of type 'int', but argument 6 has type 'uint32_t' {aka 'long unsigned int'} [-Werror=format=]
280 | ESP_LOGW(TAG, "Touch Calibration failed! Error=%d", calibrate_error);
| ^
/home/mcx/esp/esp-idf/components/log/include/esp_log.h:282:59: note: in definition of macro 'LOG_FORMAT'
282 | #define LOG_FORMAT(letter, format) LOG_COLOR_ ## letter #letter " (%" PRIu32 ") %s: " format LOG_RESET_COLOR "\n"
| ^~~~~~
/home/mcx/esp/esp-idf/components/log/include/esp_log.h:432:41: note: in expansion of macro 'ESP_LOG_LEVEL'
432 | if ( LOG_LOCAL_LEVEL >= level ) ESP_LOG_LEVEL(level, tag, format, ##__VA_ARGS__); \
| ^~~~~~~~~~~~~
/home/mcx/esp/esp-idf/components/log/include/esp_log.h:341:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL'
341 | #define ESP_LOGW( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_WARN, tag, format, ##__VA_ARGS__)
| ^~~~~~~~~~~~~~~~~~~
/home/mcx/esp/esp-iot-solution/components/display/touch_panel/calibration/touch_calibration.c:280:13: note: in expansion of macro 'ESP_LOGW'
280 | ESP_LOGW(TAG, "Touch Calibration failed! Error=%d", calibrate_error);
| ^~~~~~~~
/home/mcx/esp/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"
| ^~~~~~~~~
/home/mcx/esp/esp-idf/components/log/include/esp_log.h:270:27: note: in expansion of macro 'LOG_COLOR'
270 | #define LOG_COLOR_I LOG_COLOR(LOG_COLOR_GREEN)
| ^~~~~~~~~
/home/mcx/esp/esp-idf/components/log/include/esp_log.h:282:37: note: in expansion of macro 'LOG_COLOR_I'
282 | #define LOG_FORMAT(letter, format) LOG_COLOR_ ## letter #letter " (%" PRIu32 ") %s: " format LOG_RESET_COLOR "\n"
| ^~~~~~~~~~
/home/mcx/esp/esp-idf/components/log/include/esp_log.h:414:86: note: in expansion of macro 'LOG_FORMAT'
414 | else { esp_log_write(ESP_LOG_INFO, tag, LOG_FORMAT(I, format), esp_log_timestamp(), tag, ##__VA_ARGS__); } \
| ^~~~~~~~~~
/home/mcx/esp/esp-idf/components/log/include/esp_log.h:432:41: note: in expansion of macro 'ESP_LOG_LEVEL'
432 | if ( LOG_LOCAL_LEVEL >= level ) ESP_LOG_LEVEL(level, tag, format, ##__VA_ARGS__); \
| ^~~~~~~~~~~~~
/home/mcx/esp/esp-idf/components/log/include/esp_log.h:341:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL'
341 | #define ESP_LOGW( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_WARN, tag, format, ##__VA_ARGS__)
| ^~~~~~~~~~~~~~~~~~~
/home/mcx/esp/esp-iot-solution/components/display/touch_panel/calibration/touch_calibration.c:280:13: note: in expansion of macro 'ESP_LOGW'
280 | ESP_LOGW(TAG, "Touch Calibration failed! Error=%d", calibrate_error);
| ^~~~~~~~
cc1: some warnings being treated as errors
[9/265] Building C object esp-idf/lvgl_gui/CMakeFiles/__idf_lvgl_gui.dir/lvgl/src/core/lv_obj.c.objFAILED: esp-idf/lvgl_gui/CMakeFiles/__idf_lvgl_gui.dir/lvgl/src/core/lv_obj.c.obj
/home/mcx/.espressif/tools/xtensa-esp32-elf/esp-2022r1-11.2.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc -DSOC_MMU_PAGE_SIZE=CONFIG_MMU_PAGE_SIZE -I/home/mcx/esp/hello_world/build/config -I/home/mcx/esp/esp-iot-solution/components/gui/lvgl_gui -I/home/mcx/esp/esp-iot-solution/components/gui/lvgl_gui/lvgl -I/home/mcx/esp/esp-iot-solution/components/gui/lvgl_gui/include -I/home/mcx/esp/esp-iot-solution/components/gui/lvgl_gui/lvgl/src -I/home/mcx/esp/esp-idf/components/newlib/platform_include -I/home/mcx/esp/esp-idf/components/freertos/FreeRTOS-Kernel/include -I/home/mcx/esp/esp-idf/components/freertos/esp_additions/include/freertos -I/home/mcx/esp/esp-idf/components/freertos/FreeRTOS-Kernel/portable/xtensa/include -I/home/mcx/esp/esp-idf/components/freertos/esp_additions/include -I/home/mcx/esp/esp-idf/components/esp_hw_support/include -I/home/mcx/esp/esp-idf/components/esp_hw_support/include/soc -I/home/mcx/esp/esp-idf/components/esp_hw_support/include/soc/esp32 -I/home/mcx/esp/esp-idf/components/esp_hw_support/port/esp32/. -I/home/mcx/esp/esp-idf/components/esp_hw_support/port/esp32/private_include -I/home/mcx/esp/esp-idf/components/heap/include -I/home/mcx/esp/esp-idf/components/log/include -I/home/mcx/esp/esp-idf/components/soc/include -I/home/mcx/esp/esp-idf/components/soc/esp32/. -I/home/mcx/esp/esp-idf/components/soc/esp32/include -I/home/mcx/esp/esp-idf/components/hal/esp32/include -I/home/mcx/esp/esp-idf/components/hal/include -I/home/mcx/esp/esp-idf/components/hal/platform_port/include -I/home/mcx/esp/esp-idf/components/esp_rom/include -I/home/mcx/esp/esp-idf/components/esp_rom/include/esp32 -I/home/mcx/esp/esp-idf/components/esp_rom/esp32 -I/home/mcx/esp/esp-idf/components/esp_common/include -I/home/mcx/esp/esp-idf/components/esp_system/include -I/home/mcx/esp/esp-idf/components/esp_system/port/soc -I/home/mcx/esp/esp-idf/components/esp_system/port/include/private -I/home/mcx/esp/esp-idf/components/xtensa/include -I/home/mcx/esp/esp-idf/components/xtensa/esp32/include -I/home/mcx/esp/esp-idf/components/lwip/include -I/home/mcx/esp/esp-idf/components/lwip/include/apps -I/home/mcx/esp/esp-idf/components/lwip/include/apps/sntp -I/home/mcx/esp/esp-idf/components/lwip/lwip/src/include -I/home/mcx/esp/esp-idf/components/lwip/port/esp32/include -I/home/mcx/esp/esp-idf/components/lwip/port/esp32/include/arch -I/home/mcx/esp/esp-iot-solution/components/display/screen/controller_driver/ili9341 -I/home/mcx/esp/esp-iot-solution/components/display/screen/controller_driver/ili9342 -I/home/mcx/esp/esp-iot-solution/components/display/screen/controller_driver/st7789 -I/home/mcx/esp/esp-iot-solution/components/display/screen/controller_driver/st7796 -I/home/mcx/esp/esp-iot-solution/components/display/screen/controller_driver/nt35510 -I/home/mcx/esp/esp-iot-solution/components/display/screen/controller_driver/ili9806 -I/home/mcx/esp/esp-iot-solution/components/display/screen/controller_driver/ili9486 -I/home/mcx/esp/esp-iot-solution/components/display/screen/controller_driver/ili9488 -I/home/mcx/esp/esp-iot-solution/components/display/screen/controller_driver/ssd1351 -I/home/mcx/esp/esp-iot-solution/components/display/screen/controller_driver/rm68120 -I/home/mcx/esp/esp-iot-solution/components/display/screen/controller_driver/ssd1306 -I/home/mcx/esp/esp-iot-solution/components/display/screen/controller_driver/ssd1307 -I/home/mcx/esp/esp-iot-solution/components/display/screen/controller_driver/ssd1322 -I/home/mcx/esp/esp-iot-solution/components/display/screen/controller_driver/ssd1963 -I/home/mcx/esp/esp-iot-solution/components/display/screen/interface_driver -I/home/mcx/esp/esp-iot-solution/components/display/screen -I/home/mcx/esp/esp-iot-solution/components/bus/include -I/home/mcx/esp/esp-idf/components/driver/include -I/home/mcx/esp/esp-idf/components/driver/deprecated -I/home/mcx/esp/esp-idf/components/driver/esp32/include -I/home/mcx/esp/esp-idf/components/esp_pm/include -I/home/mcx/esp/esp-idf/components/esp_ringbuf/include -I/home/mcx/esp/esp-iot-solution/components/display/touch_panel -I/home/mcx/esp/esp-iot-solution/components/display/touch_panel/xpt2046 -I/home/mcx/esp/esp-iot-solution/components/display/touch_panel/ft5x06 -I/home/mcx/esp/esp-iot-solution/components/display/touch_panel/ns2016 -I/home/mcx/esp/esp-iot-solution/components/display/touch_panel/calibration/basic_painter -I/home/mcx/esp/esp-iot-solution/components/display/touch_panel/calibration/basic_painter/fonts -I/home/mcx/esp/esp-idf/components/esp_timer/include -mlongcalls -Wno-frame-address -fdiagnostics-color=always -ffunction-sections -fdata-sections -Wall -Werror=all -Wno-error=unused-function -Wno-error=unused-variable -Wno-error=deprecated-declarations -Wextra -Wno-unused-parameter -Wno-sign-compare -Wno-enum-conversion -gdwarf-4 -ggdb -Og -fmacro-prefix-map=/home/mcx/esp/hello_world=. -fmacro-prefix-map=/home/mcx/esp/esp-idf=/IDF -fstrict-volatile-bitfields -Wno-error=unused-but-set-variable -fno-jump-tables -fno-tree-switch-conversion -DconfigENABLE_FREERTOS_DEBUG_OCDAWARE=1 -std=gnu17 -Wno-old-style-declaration -D_GNU_SOURCE -DIDF_VER=\"v5.0.2\" -DESP_PLATFORM -D_POSIX_READER_WRITER_LOCKS -MD -MT esp-idf/lvgl_gui/CMakeFiles/__idf_lvgl_gui.dir/lvgl/src/core/lv_obj.c.obj -MF esp-idf/lvgl_gui/CMakeFiles/__idf_lvgl_gui.dir/lvgl/src/core/lv_obj.c.obj.d -o esp-idf/lvgl_gui/CMakeFiles/__idf_lvgl_gui.dir/lvgl/src/core/lv_obj.c.obj -c /home/mcx/esp/esp-iot-solution/components/gui/lvgl_gui/lvgl/src/core/lv_obj.c
In file included from /home/mcx/esp/esp-iot-solution/components/gui/lvgl_gui/lvgl/src/core/lv_obj.h:16,
from /home/mcx/esp/esp-iot-solution/components/gui/lvgl_gui/lvgl/src/core/lv_obj.c:9:
/home/mcx/esp/esp-iot-solution/components/gui/lvgl_gui/lvgl/src/core/../misc/../font/lv_font.h: In function 'lv_font_default':
/home/mcx/esp/esp-iot-solution/components/gui/lvgl_gui/lvgl/src/core/../lv_conf_internal.h:1309:34: error: 'lv_font_montserrat_14' undeclared (first use in this function); did you mean 'lv_font_montserrat_16'?
1309 | #define LV_FONT_DEFAULT &lv_font_montserrat_14
| ^~~~~~~~~~~~~~~~~~~~~
/home/mcx/esp/esp-iot-solution/components/gui/lvgl_gui/lvgl/src/core/../misc/../font/lv_font.h:256:12: note: in expansion of macro 'LV_FONT_DEFAULT'
256 | return LV_FONT_DEFAULT;
| ^~~~~~~~~~~~~~~
/home/mcx/esp/esp-iot-solution/components/gui/lvgl_gui/lvgl/src/core/../lv_conf_internal.h:1309:34: note: each undeclared identifier is reported only once for each function it appears in
1309 | #define LV_FONT_DEFAULT &lv_font_montserrat_14
| ^~~~~~~~~~~~~~~~~~~~~
/home/mcx/esp/esp-iot-solution/components/gui/lvgl_gui/lvgl/src/core/../misc/../font/lv_font.h:256:12: note: in expansion of macro 'LV_FONT_DEFAULT'
256 | return LV_FONT_DEFAULT;
| ^~~~~~~~~~~~~~~
In file included from /home/mcx/esp/esp-iot-solution/components/gui/lvgl_gui/lvgl/src/core/../libs/ffmpeg/../../../src/widgets/bar/lv_bar.h:22,
from /home/mcx/esp/esp-iot-solution/components/gui/lvgl_gui/lvgl/src/core/../libs/ffmpeg/../../../lvgl.h:47,
from /home/mcx/esp/esp-iot-solution/components/gui/lvgl_gui/lvgl/src/core/../libs/ffmpeg/lv_ffmpeg.h:15,
from /home/mcx/esp/esp-iot-solution/components/gui/lvgl_gui/lvgl/src/core/lv_obj.c:28:
/home/mcx/esp/esp-iot-solution/components/gui/lvgl_gui/lvgl/src/core/../libs/ffmpeg/../../../src/widgets/bar/../label/lv_label.h: At top level:
/home/mcx/esp/esp-iot-solution/components/gui/lvgl_gui/lvgl/src/core/../libs/ffmpeg/../../../src/widgets/bar/../label/lv_label.h:30: warning: "LV_LABEL_WAIT_CHAR_COUNT" redefined
30 | #define LV_LABEL_WAIT_CHAR_COUNT 3
|
In file included from /home/mcx/esp/esp-iot-solution/components/gui/lvgl_gui/lvgl/src/core/../lv_conf_internal.h:39,
from /home/mcx/esp/esp-iot-solution/components/gui/lvgl_gui/lvgl/src/core/lv_obj.h:16,
from /home/mcx/esp/esp-iot-solution/components/gui/lvgl_gui/lvgl/src/core/lv_obj.c:9:
/home/mcx/esp/esp-iot-solution/components/gui/lvgl_gui/lv_conf.h:1136: note: this is the location of the previous definition
1136 | #define LV_LABEL_WAIT_CHAR_COUNT CONFIG_LVGL_WIDGETS_LABEL_WAIT_CHAR_COUNT
|
In file included from /home/mcx/esp/esp-iot-solution/components/gui/lvgl_gui/lvgl/src/core/../libs/ffmpeg/lv_ffmpeg.h:15,
from /home/mcx/esp/esp-iot-solution/components/gui/lvgl_gui/lvgl/src/core/lv_obj.c:28:
/home/mcx/esp/esp-iot-solution/components/gui/lvgl_gui/lvgl/src/core/../libs/ffmpeg/../../../lvgl.h:121:2: warning: #warning "You are using the development version of LVGL which is not stable at this moment. For production use the release/v8.3 branch. To silence this warning add #define LV_USE_DEV_VERSION to lv_conf.h" [-Wcpp]
121 | #warning "You are using the development version of LVGL which is not stable at this moment. For production use the release/v8.3 branch. To silence this warning add #define LV_USE_DEV_VERSION to lv_conf.h"
| ^~~~~~~
ninja: build stopped: subcommand failed.
HINT: The issue is better to resolve by replacing format specifiers to 'PRI'-family macros (include <inttypes.h> header file).


idf版本v5.0.2 ESP IoT Solution 使用版本master 系统环境Ubuntu22.04

ESP_lzw655
Posts: 27
Joined: Mon Oct 10, 2022 2:47 am

Re: 编译错误

Postby ESP_lzw655 » Tue May 30, 2023 9:45 am

如果编译的是 IoT Solution 仓库里的例程,请提供例程名称方便复现问题;
如果是仅使用仓库里的组件来编译自定义的工程,根据报错信息,请在工程 CMakeList.txt 文件的 project() 代码前添加一行 add_compile_options("-Wno-format")

Who is online

Users browsing this forum: No registered users and 17 guests