In file included from Marlin/src/gcode/../inc/MarlinConfig.h:45, from Marlin/src/gcode/queue.h:29, from Marlin/src/gcode/queue.cpp:27: Marlin/src/gcode/queue.cpp: In static member function 'static void GCodeQueue::get_sdcard_commands()': Marlin/src/gcode/queue.cpp:530:50: error: 'MSG_SD_ERR_READ' was not declared in this scope; did you mean 'STR_SD_ERR_READ'? 530 | if (n < 0 && !card_eof) { SERIAL_ERROR_MSG(MSG_SD_ERR_READ); continue; } | ^~~~~~~~~~~~~~~ Marlin/src/gcode/../inc/../core/serial.h:248:53: note: in definition of macro 'SERIAL_ECHO_P' 248 | #define SERIAL_ECHO_P(P) (serialprintPGM(P)) | ^ Marlin/src/gcode/../inc/../core/serial.h:251:52: note: in expansion of macro 'PSTR' 251 | #define SERIAL_ECHOLNPGM(S) (SERIAL_ECHO_P(PSTR(S "\n"))) | ^~~~ Marlin/src/gcode/../inc/../core/serial.h:164:28: note: in expansion of macro 'SERIAL_ECHOLNPGM' 164 | #define _SELP_1(PRE) SERIAL_ECHOLNPGM(PRE) | ^~~~~~~~~~~~~~~~ Marlin/src/gcode/../inc/../core/serial.h:162:28: note: in expansion of macro '_SELP_1' 162 | #define __SELP_N(N,V...) _SELP_##N(V) | ^~~~~~ Marlin/src/gcode/../inc/../core/serial.h:163:28: note: in expansion of macro '__SELP_N' 163 | #define _SELP_N(N,V...) __SELP_N(N,V) | ^~~~~~~~ Marlin/src/gcode/../inc/../core/serial.h:189:33: note: in expansion of macro '_SELP_N' 189 | #define SERIAL_ECHOLNPAIR(V...) _SELP_N(NUM_ARGS(V),V) | ^~~~~~~ Marlin/src/gcode/../inc/../core/serial.h:264:63: note: in expansion of macro 'SERIAL_ECHOLNPAIR' 264 | #define SERIAL_ERROR_MSG(V...) do{ SERIAL_ERROR_START(); SERIAL_ECHOLNPAIR(V); }while(0) | ^~~~~~~~~~~~~~~~~ Marlin/src/gcode/queue.cpp:530:33: note: in expansion of macro 'SERIAL_ERROR_MSG' 530 | if (n < 0 && !card_eof) { SERIAL_ERROR_MSG(MSG_SD_ERR_READ); continue; } | ^~~~~~~~~~~~~~~~ Marlin/src/gcode/../inc/../core/serial.h:251:59: error: expected ')' before string constant 251 | #define SERIAL_ECHOLNPGM(S) (SERIAL_ECHO_P(PSTR(S "\n"))) | ^~~~ Marlin/src/gcode/../inc/../core/serial.h:248:53: note: in definition of macro 'SERIAL_ECHO_P' 248 | #define SERIAL_ECHO_P(P) (serialprintPGM(P)) | ^ Marlin/src/gcode/../inc/../core/serial.h:251:52: note: in expansion of macro 'PSTR' 251 | #define SERIAL_ECHOLNPGM(S) (SERIAL_ECHO_P(PSTR(S "\n"))) | ^~~~ Marlin/src/gcode/../inc/../core/serial.h:164:28: note: in expansion of macro 'SERIAL_ECHOLNPGM' 164 | #define _SELP_1(PRE) SERIAL_ECHOLNPGM(PRE) | ^~~~~~~~~~~~~~~~ Marlin/src/gcode/../inc/../core/serial.h:162:28: note: in expansion of macro '_SELP_1' 162 | #define __SELP_N(N,V...) _SELP_##N(V) | ^~~~~~ Marlin/src/gcode/../inc/../core/serial.h:163:28: note: in expansion of macro '__SELP_N' 163 | #define _SELP_N(N,V...) __SELP_N(N,V) | ^~~~~~~~ Marlin/src/gcode/../inc/../core/serial.h:189:33: note: in expansion of macro '_SELP_N' 189 | #define SERIAL_ECHOLNPAIR(V...) _SELP_N(NUM_ARGS(V),V) | ^~~~~~~ Marlin/src/gcode/../inc/../core/serial.h:264:63: note: in expansion of macro 'SERIAL_ECHOLNPAIR' 264 | #define SERIAL_ERROR_MSG(V...) do{ SERIAL_ERROR_START(); SERIAL_ECHOLNPAIR(V); }while(0) | ^~~~~~~~~~~~~~~~~ Marlin/src/gcode/queue.cpp:530:33: note: in expansion of macro 'SERIAL_ERROR_MSG' 530 | if (n < 0 && !card_eof) { SERIAL_ERROR_MSG(MSG_SD_ERR_READ); continue; } | ^~~~~~~~~~~~~~~~ /home/novaviper/.platformio/packages/framework-arduino-lpc176x/cores/arduino/Arduino.h:58:17: note: to match this '(' 58 | #define PSTR(v) (v) | ^ Marlin/src/gcode/../inc/../core/serial.h:248:53: note: in definition of macro 'SERIAL_ECHO_P' 248 | #define SERIAL_ECHO_P(P) (serialprintPGM(P)) | ^ Marlin/src/gcode/../inc/../core/serial.h:251:52: note: in expansion of macro 'PSTR' 251 | #define SERIAL_ECHOLNPGM(S) (SERIAL_ECHO_P(PSTR(S "\n"))) | ^~~~ Marlin/src/gcode/../inc/../core/serial.h:164:28: note: in expansion of macro 'SERIAL_ECHOLNPGM' 164 | #define _SELP_1(PRE) SERIAL_ECHOLNPGM(PRE) | ^~~~~~~~~~~~~~~~ Marlin/src/gcode/../inc/../core/serial.h:162:28: note: in expansion of macro '_SELP_1' 162 | #define __SELP_N(N,V...) _SELP_##N(V) | ^~~~~~ Marlin/src/gcode/../inc/../core/serial.h:163:28: note: in expansion of macro '__SELP_N' 163 | #define _SELP_N(N,V...) __SELP_N(N,V) | ^~~~~~~~ Marlin/src/gcode/../inc/../core/serial.h:189:33: note: in expansion of macro '_SELP_N' 189 | #define SERIAL_ECHOLNPAIR(V...) _SELP_N(NUM_ARGS(V),V) | ^~~~~~~ Marlin/src/gcode/../inc/../core/serial.h:264:63: note: in expansion of macro 'SERIAL_ECHOLNPAIR' 264 | #define SERIAL_ERROR_MSG(V...) do{ SERIAL_ERROR_START(); SERIAL_ECHOLNPAIR(V); }while(0) | ^~~~~~~~~~~~~~~~~ Marlin/src/gcode/queue.cpp:530:33: note: in expansion of macro 'SERIAL_ERROR_MSG' 530 | if (n < 0 && !card_eof) { SERIAL_ERROR_MSG(MSG_SD_ERR_READ); continue; } | ^~~~~~~~~~~~~~~~ Marlin/src/gcode/../inc/../core/serial.h:264:83: error: expected ')' before ';' token 264 | #define SERIAL_ERROR_MSG(V...) do{ SERIAL_ERROR_START(); SERIAL_ECHOLNPAIR(V); }while(0) | ^ Marlin/src/gcode/queue.cpp:530:33: note: in expansion of macro 'SERIAL_ERROR_MSG' 530 | if (n < 0 && !card_eof) { SERIAL_ERROR_MSG(MSG_SD_ERR_READ); continue; } | ^~~~~~~~~~~~~~~~ Marlin/src/gcode/../inc/../core/serial.h:248:37: note: to match this '(' 248 | #define SERIAL_ECHO_P(P) (serialprintPGM(P)) | ^ Marlin/src/gcode/../inc/../core/serial.h:251:38: note: in expansion of macro 'SERIAL_ECHO_P' 251 | #define SERIAL_ECHOLNPGM(S) (SERIAL_ECHO_P(PSTR(S "\n"))) | ^~~~~~~~~~~~~ Marlin/src/gcode/../inc/../core/serial.h:164:28: note: in expansion of macro 'SERIAL_ECHOLNPGM' 164 | #define _SELP_1(PRE) SERIAL_ECHOLNPGM(PRE) | ^~~~~~~~~~~~~~~~ Marlin/src/gcode/../inc/../core/serial.h:162:28: note: in expansion of macro '_SELP_1' 162 | #define __SELP_N(N,V...) _SELP_##N(V) | ^~~~~~ Marlin/src/gcode/../inc/../core/serial.h:163:28: note: in expansion of macro '__SELP_N' 163 | #define _SELP_N(N,V...) __SELP_N(N,V) | ^~~~~~~~ Marlin/src/gcode/../inc/../core/serial.h:189:33: note: in expansion of macro '_SELP_N' 189 | #define SERIAL_ECHOLNPAIR(V...) _SELP_N(NUM_ARGS(V),V) | ^~~~~~~ Marlin/src/gcode/../inc/../core/serial.h:264:63: note: in expansion of macro 'SERIAL_ECHOLNPAIR' 264 | #define SERIAL_ERROR_MSG(V...) do{ SERIAL_ERROR_START(); SERIAL_ECHOLNPAIR(V); }while(0) | ^~~~~~~~~~~~~~~~~ Marlin/src/gcode/queue.cpp:530:33: note: in expansion of macro 'SERIAL_ERROR_MSG' 530 | if (n < 0 && !card_eof) { SERIAL_ERROR_MSG(MSG_SD_ERR_READ); continue; } | ^~~~~~~~~~~~~~~~ Marlin/src/gcode/../inc/../core/serial.h:264:83: error: expected ')' before ';' token 264 | #define SERIAL_ERROR_MSG(V...) do{ SERIAL_ERROR_START(); SERIAL_ECHOLNPAIR(V); }while(0) | ^ Marlin/src/gcode/queue.cpp:530:33: note: in expansion of macro 'SERIAL_ERROR_MSG' 530 | if (n < 0 && !card_eof) { SERIAL_ERROR_MSG(MSG_SD_ERR_READ); continue; } | ^~~~~~~~~~~~~~~~ Marlin/src/gcode/../inc/../core/serial.h:251:37: note: to match this '(' 251 | #define SERIAL_ECHOLNPGM(S) (SERIAL_ECHO_P(PSTR(S "\n"))) | ^ Marlin/src/gcode/../inc/../core/serial.h:164:28: note: in expansion of macro 'SERIAL_ECHOLNPGM' 164 | #define _SELP_1(PRE) SERIAL_ECHOLNPGM(PRE) | ^~~~~~~~~~~~~~~~ Marlin/src/gcode/../inc/../core/serial.h:162:28: note: in expansion of macro '_SELP_1' 162 | #define __SELP_N(N,V...) _SELP_##N(V) | ^~~~~~ Marlin/src/gcode/../inc/../core/serial.h:163:28: note: in expansion of macro '__SELP_N' 163 | #define _SELP_N(N,V...) __SELP_N(N,V) | ^~~~~~~~ Marlin/src/gcode/../inc/../core/serial.h:189:33: note: in expansion of macro '_SELP_N' 189 | #define SERIAL_ECHOLNPAIR(V...) _SELP_N(NUM_ARGS(V),V) | ^~~~~~~ Marlin/src/gcode/../inc/../core/serial.h:264:63: note: in expansion of macro 'SERIAL_ECHOLNPAIR' 264 | #define SERIAL_ERROR_MSG(V...) do{ SERIAL_ERROR_START(); SERIAL_ECHOLNPAIR(V); }while(0) | ^~~~~~~~~~~~~~~~~ Marlin/src/gcode/queue.cpp:530:33: note: in expansion of macro 'SERIAL_ERROR_MSG' 530 | if (n < 0 && !card_eof) { SERIAL_ERROR_MSG(MSG_SD_ERR_READ); continue; } | ^~~~~~~~~~~~~~~~ Compiling .pio/build/LPC1768/src/src/gcode/sdcard/M27.cpp.o *** [.pio/build/LPC1768/src/src/gcode/queue.cpp.o] Error 1 ================================================= [FAILED] Took 74.23 seconds ================================================= Environment Status Duration ---------------------------- -------- ------------ megaatmega2560 IGNORED megaatmega1280 IGNORED rambo IGNORED FYSETC_F6_13 IGNORED FYSETC_F6_14 IGNORED sanguino_atmega644p IGNORED sanguino_atmega1284p IGNORED melzi IGNORED melzi_optiboot IGNORED at90usb1286_cdc IGNORED at90usb1286_dfu IGNORED DUE IGNORED DUE_USB IGNORED DUE_debug IGNORED LPC1768 FAILED 00:01:14.225 LPC1769 IGNORED STM32F103RC IGNORED STM32F103RC_fysetc IGNORED STM32F103RC_bigtree IGNORED STM32F103RC_bigtree_USB IGNORED STM32F103RC_bigtree_512K IGNORED STM32F103RC_bigtree_512K_USB IGNORED STM32F103RE IGNORED STM32F103RE_bigtree IGNORED STM32F103RE_bigtree_USB IGNORED STM32F4 IGNORED STM32F7 IGNORED ARMED IGNORED STM32F103VE_GTM32 IGNORED STM32F103VE_longer IGNORED mks_robin_mini IGNORED mks_robin_nano IGNORED mks_robin IGNORED mks_robin_pro IGNORED mks_robin_lite IGNORED mks_robin_lite3 IGNORED jgaurora_a5s_a1 IGNORED STM32F103CB_malyan IGNORED chitu_f103 IGNORED STM32F401VE_STEVAL IGNORED FLYF407ZG IGNORED FYSETC_S6 IGNORED STM32F407VE_black IGNORED BIGTREE_SKR_PRO IGNORED BIGTREE_GTR_V1_0 IGNORED BIGTREE_BTT002 IGNORED teensy31 IGNORED teensy35 IGNORED esp32 IGNORED linux_native IGNORED SAMD51_grandcentral_m4 IGNORED rumba32_f446ve IGNORED rumba32_mks IGNORED include_tree IGNORED ============================================ 1 failed, 0 succeeded in 00:01:14.225 ============================================ The terminal process terminated with exit code: 1 Terminal will be reused by tasks, press any key to close it.