SHARE
TWEET

Compile error Marlin 2.0.4.4

NovaViper Feb 26th, 2020 106 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. In file included from Marlin/src/gcode/../inc/MarlinConfig.h:45,
  2.                  from Marlin/src/gcode/queue.h:29,
  3.                  from Marlin/src/gcode/queue.cpp:27:
  4. Marlin/src/gcode/queue.cpp: In static member function 'static void GCodeQueue::get_sdcard_commands()':
  5. 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'?
  6.   530 |       if (n < 0 && !card_eof) { SERIAL_ERROR_MSG(MSG_SD_ERR_READ); continue; }
  7.       |                                                  ^~~~~~~~~~~~~~~
  8. Marlin/src/gcode/../inc/../core/serial.h:248:53: note: in definition of macro 'SERIAL_ECHO_P'
  9.   248 | #define SERIAL_ECHO_P(P)            (serialprintPGM(P))
  10.       |                                                     ^
  11. Marlin/src/gcode/../inc/../core/serial.h:251:52: note: in expansion of macro 'PSTR'
  12.   251 | #define SERIAL_ECHOLNPGM(S)         (SERIAL_ECHO_P(PSTR(S "\n")))
  13.       |                                                    ^~~~
  14. Marlin/src/gcode/../inc/../core/serial.h:164:28: note: in expansion of macro 'SERIAL_ECHOLNPGM'
  15.   164 | #define _SELP_1(PRE)       SERIAL_ECHOLNPGM(PRE)
  16.       |                            ^~~~~~~~~~~~~~~~
  17. Marlin/src/gcode/../inc/../core/serial.h:162:28: note: in expansion of macro '_SELP_1'
  18.   162 | #define __SELP_N(N,V...)   _SELP_##N(V)
  19.       |                            ^~~~~~
  20. Marlin/src/gcode/../inc/../core/serial.h:163:28: note: in expansion of macro '__SELP_N'
  21.   163 | #define _SELP_N(N,V...)    __SELP_N(N,V)
  22.       |                            ^~~~~~~~
  23. Marlin/src/gcode/../inc/../core/serial.h:189:33: note: in expansion of macro '_SELP_N'
  24.   189 | #define SERIAL_ECHOLNPAIR(V...) _SELP_N(NUM_ARGS(V),V)
  25.       |                                 ^~~~~~~
  26. Marlin/src/gcode/../inc/../core/serial.h:264:63: note: in expansion of macro 'SERIAL_ECHOLNPAIR'
  27.   264 | #define SERIAL_ERROR_MSG(V...)      do{ SERIAL_ERROR_START(); SERIAL_ECHOLNPAIR(V); }while(0)
  28.       |                                                               ^~~~~~~~~~~~~~~~~
  29. Marlin/src/gcode/queue.cpp:530:33: note: in expansion of macro 'SERIAL_ERROR_MSG'
  30.   530 |       if (n < 0 && !card_eof) { SERIAL_ERROR_MSG(MSG_SD_ERR_READ); continue; }
  31.       |                                 ^~~~~~~~~~~~~~~~
  32. Marlin/src/gcode/../inc/../core/serial.h:251:59: error: expected ')' before string constant
  33.   251 | #define SERIAL_ECHOLNPGM(S)         (SERIAL_ECHO_P(PSTR(S "\n")))
  34.       |                                                           ^~~~
  35. Marlin/src/gcode/../inc/../core/serial.h:248:53: note: in definition of macro 'SERIAL_ECHO_P'
  36.   248 | #define SERIAL_ECHO_P(P)            (serialprintPGM(P))
  37.       |                                                     ^
  38. Marlin/src/gcode/../inc/../core/serial.h:251:52: note: in expansion of macro 'PSTR'
  39.   251 | #define SERIAL_ECHOLNPGM(S)         (SERIAL_ECHO_P(PSTR(S "\n")))
  40.       |                                                    ^~~~
  41. Marlin/src/gcode/../inc/../core/serial.h:164:28: note: in expansion of macro 'SERIAL_ECHOLNPGM'
  42.   164 | #define _SELP_1(PRE)       SERIAL_ECHOLNPGM(PRE)
  43.       |                            ^~~~~~~~~~~~~~~~
  44. Marlin/src/gcode/../inc/../core/serial.h:162:28: note: in expansion of macro '_SELP_1'
  45.   162 | #define __SELP_N(N,V...)   _SELP_##N(V)
  46.       |                            ^~~~~~
  47. Marlin/src/gcode/../inc/../core/serial.h:163:28: note: in expansion of macro '__SELP_N'
  48.   163 | #define _SELP_N(N,V...)    __SELP_N(N,V)
  49.       |                            ^~~~~~~~
  50. Marlin/src/gcode/../inc/../core/serial.h:189:33: note: in expansion of macro '_SELP_N'
  51.   189 | #define SERIAL_ECHOLNPAIR(V...) _SELP_N(NUM_ARGS(V),V)
  52.       |                                 ^~~~~~~
  53. Marlin/src/gcode/../inc/../core/serial.h:264:63: note: in expansion of macro 'SERIAL_ECHOLNPAIR'
  54.   264 | #define SERIAL_ERROR_MSG(V...)      do{ SERIAL_ERROR_START(); SERIAL_ECHOLNPAIR(V); }while(0)
  55.       |                                                               ^~~~~~~~~~~~~~~~~
  56. Marlin/src/gcode/queue.cpp:530:33: note: in expansion of macro 'SERIAL_ERROR_MSG'
  57.   530 |       if (n < 0 && !card_eof) { SERIAL_ERROR_MSG(MSG_SD_ERR_READ); continue; }
  58.       |                                 ^~~~~~~~~~~~~~~~
  59. /home/novaviper/.platformio/packages/framework-arduino-lpc176x/cores/arduino/Arduino.h:58:17: note: to match this '('
  60.    58 | #define PSTR(v) (v)
  61.       |                 ^
  62. Marlin/src/gcode/../inc/../core/serial.h:248:53: note: in definition of macro 'SERIAL_ECHO_P'
  63.   248 | #define SERIAL_ECHO_P(P)            (serialprintPGM(P))
  64.       |                                                     ^
  65. Marlin/src/gcode/../inc/../core/serial.h:251:52: note: in expansion of macro 'PSTR'
  66.   251 | #define SERIAL_ECHOLNPGM(S)         (SERIAL_ECHO_P(PSTR(S "\n")))
  67.       |                                                    ^~~~
  68. Marlin/src/gcode/../inc/../core/serial.h:164:28: note: in expansion of macro 'SERIAL_ECHOLNPGM'
  69.   164 | #define _SELP_1(PRE)       SERIAL_ECHOLNPGM(PRE)
  70.       |                            ^~~~~~~~~~~~~~~~
  71. Marlin/src/gcode/../inc/../core/serial.h:162:28: note: in expansion of macro '_SELP_1'
  72.   162 | #define __SELP_N(N,V...)   _SELP_##N(V)
  73.       |                            ^~~~~~
  74. Marlin/src/gcode/../inc/../core/serial.h:163:28: note: in expansion of macro '__SELP_N'
  75.   163 | #define _SELP_N(N,V...)    __SELP_N(N,V)
  76.       |                            ^~~~~~~~
  77. Marlin/src/gcode/../inc/../core/serial.h:189:33: note: in expansion of macro '_SELP_N'
  78.   189 | #define SERIAL_ECHOLNPAIR(V...) _SELP_N(NUM_ARGS(V),V)
  79.       |                                 ^~~~~~~
  80. Marlin/src/gcode/../inc/../core/serial.h:264:63: note: in expansion of macro 'SERIAL_ECHOLNPAIR'
  81.   264 | #define SERIAL_ERROR_MSG(V...)      do{ SERIAL_ERROR_START(); SERIAL_ECHOLNPAIR(V); }while(0)
  82.       |                                                               ^~~~~~~~~~~~~~~~~
  83. Marlin/src/gcode/queue.cpp:530:33: note: in expansion of macro 'SERIAL_ERROR_MSG'
  84.   530 |       if (n < 0 && !card_eof) { SERIAL_ERROR_MSG(MSG_SD_ERR_READ); continue; }
  85.       |                                 ^~~~~~~~~~~~~~~~
  86. Marlin/src/gcode/../inc/../core/serial.h:264:83: error: expected ')' before ';' token
  87.   264 | #define SERIAL_ERROR_MSG(V...)      do{ SERIAL_ERROR_START(); SERIAL_ECHOLNPAIR(V); }while(0)
  88.       |                                                                                   ^
  89. Marlin/src/gcode/queue.cpp:530:33: note: in expansion of macro 'SERIAL_ERROR_MSG'
  90.   530 |       if (n < 0 && !card_eof) { SERIAL_ERROR_MSG(MSG_SD_ERR_READ); continue; }
  91.       |                                 ^~~~~~~~~~~~~~~~
  92. Marlin/src/gcode/../inc/../core/serial.h:248:37: note: to match this '('
  93.   248 | #define SERIAL_ECHO_P(P)            (serialprintPGM(P))
  94.       |                                     ^
  95. Marlin/src/gcode/../inc/../core/serial.h:251:38: note: in expansion of macro 'SERIAL_ECHO_P'
  96.   251 | #define SERIAL_ECHOLNPGM(S)         (SERIAL_ECHO_P(PSTR(S "\n")))
  97.       |                                      ^~~~~~~~~~~~~
  98. Marlin/src/gcode/../inc/../core/serial.h:164:28: note: in expansion of macro 'SERIAL_ECHOLNPGM'
  99.   164 | #define _SELP_1(PRE)       SERIAL_ECHOLNPGM(PRE)
  100.       |                            ^~~~~~~~~~~~~~~~
  101. Marlin/src/gcode/../inc/../core/serial.h:162:28: note: in expansion of macro '_SELP_1'
  102.   162 | #define __SELP_N(N,V...)   _SELP_##N(V)
  103.       |                            ^~~~~~
  104. Marlin/src/gcode/../inc/../core/serial.h:163:28: note: in expansion of macro '__SELP_N'
  105.   163 | #define _SELP_N(N,V...)    __SELP_N(N,V)
  106.       |                            ^~~~~~~~
  107. Marlin/src/gcode/../inc/../core/serial.h:189:33: note: in expansion of macro '_SELP_N'
  108.   189 | #define SERIAL_ECHOLNPAIR(V...) _SELP_N(NUM_ARGS(V),V)
  109.       |                                 ^~~~~~~
  110. Marlin/src/gcode/../inc/../core/serial.h:264:63: note: in expansion of macro 'SERIAL_ECHOLNPAIR'
  111.   264 | #define SERIAL_ERROR_MSG(V...)      do{ SERIAL_ERROR_START(); SERIAL_ECHOLNPAIR(V); }while(0)
  112.       |                                                               ^~~~~~~~~~~~~~~~~
  113. Marlin/src/gcode/queue.cpp:530:33: note: in expansion of macro 'SERIAL_ERROR_MSG'
  114.   530 |       if (n < 0 && !card_eof) { SERIAL_ERROR_MSG(MSG_SD_ERR_READ); continue; }
  115.       |                                 ^~~~~~~~~~~~~~~~
  116. Marlin/src/gcode/../inc/../core/serial.h:264:83: error: expected ')' before ';' token
  117.   264 | #define SERIAL_ERROR_MSG(V...)      do{ SERIAL_ERROR_START(); SERIAL_ECHOLNPAIR(V); }while(0)
  118.       |                                                                                   ^
  119. Marlin/src/gcode/queue.cpp:530:33: note: in expansion of macro 'SERIAL_ERROR_MSG'
  120.   530 |       if (n < 0 && !card_eof) { SERIAL_ERROR_MSG(MSG_SD_ERR_READ); continue; }
  121.       |                                 ^~~~~~~~~~~~~~~~
  122. Marlin/src/gcode/../inc/../core/serial.h:251:37: note: to match this '('
  123.   251 | #define SERIAL_ECHOLNPGM(S)         (SERIAL_ECHO_P(PSTR(S "\n")))
  124.       |                                     ^
  125. Marlin/src/gcode/../inc/../core/serial.h:164:28: note: in expansion of macro 'SERIAL_ECHOLNPGM'
  126.   164 | #define _SELP_1(PRE)       SERIAL_ECHOLNPGM(PRE)
  127.       |                            ^~~~~~~~~~~~~~~~
  128. Marlin/src/gcode/../inc/../core/serial.h:162:28: note: in expansion of macro '_SELP_1'
  129.   162 | #define __SELP_N(N,V...)   _SELP_##N(V)
  130.       |                            ^~~~~~
  131. Marlin/src/gcode/../inc/../core/serial.h:163:28: note: in expansion of macro '__SELP_N'
  132.   163 | #define _SELP_N(N,V...)    __SELP_N(N,V)
  133.       |                            ^~~~~~~~
  134. Marlin/src/gcode/../inc/../core/serial.h:189:33: note: in expansion of macro '_SELP_N'
  135.   189 | #define SERIAL_ECHOLNPAIR(V...) _SELP_N(NUM_ARGS(V),V)
  136.       |                                 ^~~~~~~
  137. Marlin/src/gcode/../inc/../core/serial.h:264:63: note: in expansion of macro 'SERIAL_ECHOLNPAIR'
  138.   264 | #define SERIAL_ERROR_MSG(V...)      do{ SERIAL_ERROR_START(); SERIAL_ECHOLNPAIR(V); }while(0)
  139.       |                                                               ^~~~~~~~~~~~~~~~~
  140. Marlin/src/gcode/queue.cpp:530:33: note: in expansion of macro 'SERIAL_ERROR_MSG'
  141.   530 |       if (n < 0 && !card_eof) { SERIAL_ERROR_MSG(MSG_SD_ERR_READ); continue; }
  142.       |                                 ^~~~~~~~~~~~~~~~
  143. Compiling .pio/build/LPC1768/src/src/gcode/sdcard/M27.cpp.o
  144. *** [.pio/build/LPC1768/src/src/gcode/queue.cpp.o] Error 1
  145. ================================================= [FAILED] Took 74.23 seconds =================================================
  146.  
  147. Environment                   Status    Duration
  148. ----------------------------  --------  ------------
  149. megaatmega2560                IGNORED
  150. megaatmega1280                IGNORED
  151. rambo                         IGNORED
  152. FYSETC_F6_13                  IGNORED
  153. FYSETC_F6_14                  IGNORED
  154. sanguino_atmega644p           IGNORED
  155. sanguino_atmega1284p          IGNORED
  156. melzi                         IGNORED
  157. melzi_optiboot                IGNORED
  158. at90usb1286_cdc               IGNORED
  159. at90usb1286_dfu               IGNORED
  160. DUE                           IGNORED
  161. DUE_USB                       IGNORED
  162. DUE_debug                     IGNORED
  163. LPC1768                       FAILED    00:01:14.225
  164. LPC1769                       IGNORED
  165. STM32F103RC                   IGNORED
  166. STM32F103RC_fysetc            IGNORED
  167. STM32F103RC_bigtree           IGNORED
  168. STM32F103RC_bigtree_USB       IGNORED
  169. STM32F103RC_bigtree_512K      IGNORED
  170. STM32F103RC_bigtree_512K_USB  IGNORED
  171. STM32F103RE                   IGNORED
  172. STM32F103RE_bigtree           IGNORED
  173. STM32F103RE_bigtree_USB       IGNORED
  174. STM32F4                       IGNORED
  175. STM32F7                       IGNORED
  176. ARMED                         IGNORED
  177. STM32F103VE_GTM32             IGNORED
  178. STM32F103VE_longer            IGNORED
  179. mks_robin_mini                IGNORED
  180. mks_robin_nano                IGNORED
  181. mks_robin                     IGNORED
  182. mks_robin_pro                 IGNORED
  183. mks_robin_lite                IGNORED
  184. mks_robin_lite3               IGNORED
  185. jgaurora_a5s_a1               IGNORED
  186. STM32F103CB_malyan            IGNORED
  187. chitu_f103                    IGNORED
  188. STM32F401VE_STEVAL            IGNORED
  189. FLYF407ZG                     IGNORED
  190. FYSETC_S6                     IGNORED
  191. STM32F407VE_black             IGNORED
  192. BIGTREE_SKR_PRO               IGNORED
  193. BIGTREE_GTR_V1_0              IGNORED
  194. BIGTREE_BTT002                IGNORED
  195. teensy31                      IGNORED
  196. teensy35                      IGNORED
  197. esp32                         IGNORED
  198. linux_native                  IGNORED
  199. SAMD51_grandcentral_m4        IGNORED
  200. rumba32_f446ve                IGNORED
  201. rumba32_mks                   IGNORED
  202. include_tree                  IGNORED
  203. ============================================ 1 failed, 0 succeeded in 00:01:14.225 ============================================
  204. The terminal process terminated with exit code: 1
  205.  
  206. Terminal will be reused by tasks, press any key to close it.
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top