MarlinFirmware / Marlin

Marlin is an optimized firmware for RepRap 3D printers based on the Arduino platform. Many commercial 3D printers come with Marlin installed. Check with your vendor if you need source code for your specific machine.
https://marlinfw.org
GNU General Public License v3.0
16.34k stars 19.26k forks source link

[BUG] Can't compile Marlin 2.0.2 #16691

Closed qwewer0 closed 4 years ago

qwewer0 commented 4 years ago

Configuration.zip

VS Code terminal output ``` In file included from Marlin\src\module/stepper.h:47:0, from Marlin\src\Marlin.cpp:37: Marlin\src\module/stepper/indirection.h:701:0: warning: "enable_Z" redefined #define enable_Z() do{ Z_enable(); Z2_enable(); Z3_enable(); Z4_enable(); }while(0) In file included from Marlin\src\Marlin.cpp:31:0: Marlin\src\Marlin.h:142:0: note: this is the location of the previous definition #define enable_Z() do{ Z_enable(); Z2_enable(); Z3_enable(); }while(0) In file included from Marlin\src\module/stepper.h:47:0, from Marlin\src\Marlin.cpp:37: Marlin\src\module/stepper/indirection.h:702:0: warning: "disable_Z" redefined #define disable_Z() do{ Z_disable(); Z2_disable(); Z3_disable(); Z4_disable(); CBI(axis_known_position, Z_AXIS); }while(0) In file included from Marlin\src\Marlin.cpp:31:0: Marlin\src\Marlin.h:143:0: note: this is the location of the previous definition #define disable_Z() do{ Z_disable(); Z2_disable(); Z3_disable(); CBI(axis_known_position, Z_AXIS); }while(0) In file included from Marlin\src\lcd/ultralcd.h:40:0, from Marlin\src\Marlin.cpp:34: Marlin\src\lcd/../MarlinCore.h:47:61: error: default argument given for parameter 1 of 'void manage_inactivity(bool)' [-fpermissive] void manage_inactivity(const bool ignore_stepper_queue=false); ^ In file included from Marlin\src\Marlin.cpp:31:0: Marlin\src\Marlin.h:47:6: note: previous specification in 'void manage_inactivity(bool)' here void manage_inactivity(const bool ignore_stepper_queue=false); ^~~~~~~~~~~~~~~~~ In file included from Marlin\src\lcd/ultralcd.h:40:0, from Marlin\src\Marlin.cpp:34: Marlin\src\lcd/../MarlinCore.h:68:106: error: default argument given for parameter 1 of 'void kill(const char*, const char*, bool)' [-fpermissive] void kill(PGM_P const lcd_error=nullptr, PGM_P const lcd_component=nullptr, const bool steppers_off=false); ^ In file included from Marlin\src\Marlin.cpp:31:0: Marlin\src\Marlin.h:325:6: note: previous specification in 'void kill(const char*, const char*, bool)' here void kill(PGM_P const lcd_error=nullptr, PGM_P const lcd_component=nullptr, const bool steppers_off=false); ^~~~ In file included from Marlin\src\lcd/ultralcd.h:40:0, from Marlin\src\Marlin.cpp:34: Marlin\src\lcd/../MarlinCore.h:68:106: error: default argument given for parameter 2 of 'void kill(const char*, const char*, bool)' [-fpermissive] void kill(PGM_P const lcd_error=nullptr, PGM_P const lcd_component=nullptr, const bool steppers_off=false); ^ In file included from Marlin\src\Marlin.cpp:31:0: Marlin\src\Marlin.h:325:6: note: previous specification in 'void kill(const char*, const char*, bool)' here void kill(PGM_P const lcd_error=nullptr, PGM_P const lcd_component=nullptr, const bool steppers_off=false); ^~~~ In file included from Marlin\src\lcd/ultralcd.h:40:0, from Marlin\src\Marlin.cpp:34: Marlin\src\lcd/../MarlinCore.h:68:106: error: default argument given for parameter 3 of 'void kill(const char*, const char*, bool)' [-fpermissive] void kill(PGM_P const lcd_error=nullptr, PGM_P const lcd_component=nullptr, const bool steppers_off=false); ^ In file included from Marlin\src\Marlin.cpp:31:0: Marlin\src\Marlin.h:325:6: note: previous specification in 'void kill(const char*, const char*, bool)' here void kill(PGM_P const lcd_error=nullptr, PGM_P const lcd_component=nullptr, const bool steppers_off=false); ^~~~ In file included from Marlin\src\lcd/ultralcd.h:40:0, from Marlin\src\Marlin.cpp:34: Marlin\src\lcd/../MarlinCore.h:69:43: error: default argument given for parameter 1 of 'void minkill(bool)' [-fpermissive] void minkill(const bool steppers_off=false); ^ In file included from Marlin\src\Marlin.cpp:31:0: Marlin\src\Marlin.h:326:6: note: previous specification in 'void minkill(bool)' here void minkill(const bool steppers_off=false); ^~~~~~~ compilation terminated due to -fmax-errors=5. *** [.pio\build\STM32F103RC_bigtree_512K\src\src\Marlin.cpp.o] Error 1 ```
qwewer0 commented 4 years ago

PlatformIO in MarlinCore.h underscores the "false" in these:

(47) - void manage_inactivity(const bool ignore_stepper_queue=false);

(68) - void kill(PGM_P const lcd_error=nullptr, PGM_P const lcd_component=nullptr, const bool steppers_off=false);

(69) - void minkill(const bool steppers_off=false);

qwewer0 commented 4 years ago

Unable to compile Bugfix-2.0.x with this terminal output:

Marlin\src\gcode\gcode.cpp: In static member function 'static void GcodeSuite::process_parsed_command(bool)':
Marlin\src\gcode\gcode.cpp:335:16: error: 'G60' was not declared in this scope
       case 60: G60(); break;                                      // G60:  save current position
                ^~~
Marlin\src\gcode\gcode.cpp:335:16: note: suggested alternative: 'G10'
       case 60: G60(); break;                                      // G60:  save current position
                ^~~
                G10
Marlin\src\gcode\gcode.cpp:336:16: error: 'G61' was not declared in this scope
       case 61: G61(); break;                                      // G61:  Apply/restore saved coordinates.
                ^~~
Marlin\src\gcode\gcode.cpp:336:16: note: suggested alternative: 'G11'
       case 61: G61(); break;                                      // G61:  Apply/restore saved coordinates.
                ^~~
                G11
*** [.pio\build\STM32F103RC_bigtree_512K\src\src\gcode\gcode.cpp.o] Error 1
tpruvot commented 4 years ago

fix in #16692

qwewer0 commented 4 years ago

By commenting out lines 335 and 336 in gcode.cpp I was able to compile Bugfix-2.0.x. The problem with 2.0.2 is still remain.

Talha909 commented 4 years ago

Can't compile Marlin 2.0.2

VS Code terminal output ``` Compiling .pio\build\LPC1769\src\src\core\utility.cpp.o In file included from Marlin\src\module/stepper.h:47, from Marlin\src\Marlin.cpp:37: Marlin\src\module/stepper/indirection.h:701: warning: "enable_Z" redefined #define enable_Z() do{ Z_enable(); Z2_enable(); Z3_enable(); Z4_enable(); }while(0) In file included from Marlin\src\Marlin.cpp:31: Marlin\src\Marlin.h:142: note: this is the location of the previous definition #define enable_Z() do{ Z_enable(); Z2_enable(); Z3_enable(); }while(0) In file included from Marlin\src\module/stepper.h:47, from Marlin\src\Marlin.cpp:37: Marlin\src\module/stepper/indirection.h:702: warning: "disable_Z" redefined #define disable_Z() do{ Z_disable(); Z2_disable(); Z3_disable(); Z4_disable(); CBI(axis_known_position, Z_AXIS); }while(0) In file included from Marlin\src\Marlin.cpp:31: Marlin\src\Marlin.h:143: note: this is the location of the previous definition #define disable_Z() do{ Z_disable(); Z2_disable(); Z3_disable(); CBI(axis_known_position, Z_AXIS); }while(0) Compiling .pio\build\LPC1769\src\src\feature\I2CPositionEncoder.cpp.o Compiling .pio\build\LPC1769\src\src\feature\Max7219_Debug_LEDs.cpp.o Compiling .pio\build\LPC1769\src\src\feature\babystep.cpp.o Compiling .pio\build\LPC1769\src\src\feature\backlash.cpp.o In file included from Marlin\src\lcd/ultralcd.h:40, from Marlin\src\Marlin.cpp:34: Marlin\src\lcd/../MarlinCore.h:47:61: error: default argument given for parameter 1 of 'void manage_inactivity(bool)' [-fpermissive] void manage_inactivity(const bool ignore_stepper_queue=false); ^ In file included from Marlin\src\Marlin.cpp:31: Marlin\src\Marlin.h:47:6: note: previous specification in 'void manage_inactivity(bool)' here void manage_inactivity(const bool ignore_stepper_queue=false); ^~~~~~~~~~~~~~~~~ Compiling .pio\build\LPC1769\src\src\feature\baricuda.cpp.o In file included from Marlin\src\lcd/ultralcd.h:40, from Marlin\src\Marlin.cpp:34: Marlin\src\lcd/../MarlinCore.h:68:106: error: default argument given for parameter 1 of 'void kill(const char*, const char*, bool)' [-fpermissive] void kill(PGM_P const lcd_error=nullptr, PGM_P const lcd_component=nullptr, const bool steppers_off=false); ^ In file included from Marlin\src\Marlin.cpp:31: Marlin\src\Marlin.h:325:6: note: previous specification in 'void kill(const char*, const char*, bool)' here void kill(PGM_P const lcd_error=nullptr, PGM_P const lcd_component=nullptr, const bool steppers_off=false); ^~~~ In file included from Marlin\src\lcd/ultralcd.h:40, from Marlin\src\Marlin.cpp:34: Marlin\src\lcd/../MarlinCore.h:68:106: error: default argument given for parameter 2 of 'void kill(const char*, const char*, bool)' [-fpermissive] void kill(PGM_P const lcd_error=nullptr, PGM_P const lcd_component=nullptr, const bool steppers_off=false); ^ In file included from Marlin\src\Marlin.cpp:31: Marlin\src\Marlin.h:325:6: note: previous specification in 'void kill(const char*, const char*, bool)' here void kill(PGM_P const lcd_error=nullptr, PGM_P const lcd_component=nullptr, const bool steppers_off=false); ^~~~ In file included from Marlin\src\lcd/ultralcd.h:40, from Marlin\src\Marlin.cpp:34: Marlin\src\lcd/../MarlinCore.h:68:106: error: default argument given for parameter 3 of 'void kill(const char*, const char*, bool)' [-fpermissive] void kill(PGM_P const lcd_error=nullptr, PGM_P const lcd_component=nullptr, const bool steppers_off=false); ^ In file included from Marlin\src\Marlin.cpp:31: Marlin\src\Marlin.h:325:6: note: previous specification in 'void kill(const char*, const char*, bool)' here void kill(PGM_P const lcd_error=nullptr, PGM_P const lcd_component=nullptr, const bool steppers_off=false); ^~~~ In file included from Marlin\src\lcd/ultralcd.h:40, from Marlin\src\Marlin.cpp:34: Marlin\src\lcd/../MarlinCore.h:69:43: error: default argument given for parameter 1 of 'void minkill(bool)' [-fpermissive] void minkill(const bool steppers_off=false); ^ In file included from Marlin\src\Marlin.cpp:31: Marlin\src\Marlin.h:326:6: note: previous specification in 'void minkill(bool)' here void minkill(const bool steppers_off=false); ^~~~~~~ compilation terminated due to -fmax-errors=5. *** [.pio\build\LPC1769\src\src\Marlin.cpp.o] Error 1 ============================================================ [FAILED] Took 13.33 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 IGNORED LPC1769 FAILED 00:00:13.333 ```
ellensp commented 4 years ago

even with zero changes it fails to compile.. Issue is it has marlin.h, marlin.cpp and marlincore.h, marlincore.cpp... cant have both sets Then you get the G60/G61 errors also...

Calimerorulez commented 4 years ago

Same here:

VS Code terminal output ``` Compiling .pio/build/STM32F103RC_bigtree/src/src/core/utility.cpp.o In file included from Marlin/src/module/stepper.h:47:0, from Marlin/src/Marlin.cpp:37: Marlin/src/module/stepper/indirection.h:701:0: warning: "enable_Z" redefined #define enable_Z() do{ Z_enable(); Z2_enable(); Z3_enable(); Z4_enable(); }while(0) In file included from Marlin/src/Marlin.cpp:31:0: Marlin/src/Marlin.h:142:0: note: this is the location of the previous definition #define enable_Z() do{ Z_enable(); Z2_enable(); Z3_enable(); }while(0) In file included from Marlin/src/module/stepper.h:47:0, from Marlin/src/Marlin.cpp:37: Marlin/src/module/stepper/indirection.h:702:0: warning: "disable_Z" redefined #define disable_Z() do{ Z_disable(); Z2_disable(); Z3_disable(); Z4_disable(); CBI(axis_known_position, Z_AXIS); }while(0) In file included from Marlin/src/Marlin.cpp:31:0: Marlin/src/Marlin.h:143:0: note: this is the location of the previous definition #define disable_Z() do{ Z_disable(); Z2_disable(); Z3_disable(); CBI(axis_known_position, Z_AXIS); }while(0) In file included from Marlin/src/lcd/ultralcd.h:40:0, from Marlin/src/Marlin.cpp:34: Marlin/src/lcd/../MarlinCore.h:45:1: error: default argument given for parameter 1 of 'void idle(bool)' [-fpermissive] ); ^ In file included from Marlin/src/Marlin.cpp:31:0: Marlin/src/Marlin.h:41:6: note: previous specification in 'void idle(bool)' here void idle( ^~~~ In file included from Marlin/src/lcd/ultralcd.h:40:0, from Marlin/src/Marlin.cpp:34: Marlin/src/lcd/../MarlinCore.h:47:61: error: default argument given for parameter 1 of 'void manage_inactivity(bool)' [-fpermissive] void manage_inactivity(const bool ignore_stepper_queue=false); ^ In file included from Marlin/src/Marlin.cpp:31:0: Marlin/src/Marlin.h:47:6: note: previous specification in 'void manage_inactivity(bool)' here void manage_inactivity(const bool ignore_stepper_queue=false); ^~~~~~~~~~~~~~~~~ In file included from Marlin/src/lcd/ultralcd.h:40:0, from Marlin/src/Marlin.cpp:34: Marlin/src/lcd/../MarlinCore.h:68:106: error: default argument given for parameter 1 of 'void kill(const char*, const char*, bool)' [-fpermissive] void kill(PGM_P const lcd_error=nullptr, PGM_P const lcd_component=nullptr, const bool steppers_off=false); ^ In file included from Marlin/src/Marlin.cpp:31:0: Marlin/src/Marlin.h:325:6: note: previous specification in 'void kill(const char*, const char*, bool)' here void kill(PGM_P const lcd_error=nullptr, PGM_P const lcd_component=nullptr, const bool steppers_off=false); ^~~~ In file included from Marlin/src/lcd/ultralcd.h:40:0, from Marlin/src/Marlin.cpp:34: Marlin/src/lcd/../MarlinCore.h:68:106: error: default argument given for parameter 2 of 'void kill(const char*, const char*, bool)' [-fpermissive] void kill(PGM_P const lcd_error=nullptr, PGM_P const lcd_component=nullptr, const bool steppers_off=false); ^ In file included from Marlin/src/Marlin.cpp:31:0: Marlin/src/Marlin.h:325:6: note: previous specification in 'void kill(const char*, const char*, bool)' here void kill(PGM_P const lcd_error=nullptr, PGM_P const lcd_component=nullptr, const bool steppers_off=false); ^~~~ In file included from Marlin/src/lcd/ultralcd.h:40:0, from Marlin/src/Marlin.cpp:34: Marlin/src/lcd/../MarlinCore.h:68:106: error: default argument given for parameter 3 of 'void kill(const char*, const char*, bool)' [-fpermissive] void kill(PGM_P const lcd_error=nullptr, PGM_P const lcd_component=nullptr, const bool steppers_off=false); ^ In file included from Marlin/src/Marlin.cpp:31:0: Marlin/src/Marlin.h:325:6: note: previous specification in 'void kill(const char*, const char*, bool)' here void kill(PGM_P const lcd_error=nullptr, PGM_P const lcd_component=nullptr, const bool steppers_off=false); ^~~~ compilation terminated due to -fmax-errors=5. *** [.pio/build/STM32F103RC_bigtree/src/src/Marlin.cpp.o] Error 1 =============================================================== [FAILED] Took 190.07 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 IGNORED LPC1769 IGNORED STM32F103RC IGNORED STM32F103RC_fysetc IGNORED STM32F103RC_bigtree FAILED 00:03:10.074 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 mks_rumba32 IGNORED include_tree IGNORED ========================================================== 1 failed, 0 succeeded in 00:03:10.074 ========================================================== #define STRING_DISTRIBUTION_DATE "2020-01-27" ```
DerAndere1 commented 4 years ago

Can you compile after deleting files Marlin/src/Marlin.h and Marlin/src/Marlin.cpp ?

qwewer0 commented 4 years ago

Can you compile after deleting files src/Marlin.h and src/Marlin.cpp ?

What files exactly?

Talha909 commented 4 years ago

Magic Works. Whats the reason behind this . I deleted two files and after that compile the firmware. And its successful

DerAndere1 commented 4 years ago

If you use Marlin 2.0.2 release, downloaded before commit ec79034004a86ed0ae83c5e5042ba0a5b8cb3f07 and you cannot simply update to latest bugfix-2.0.x (wich was fixed with commit https://github.com/MarlinFirmware/Marlin/commit/8bd6b60a0141fa892984f2d5b61f06eadbbf9a5f), I can confirm that 2.0.2 relase compiles if you delete files Marlin/src/Marlin.h and Marlin/src/Marlin.cpp and also delete lines 335 and 336 in file Marlin/src/gcode/gcode.cpp

Hesi-Re commented 4 years ago

Deleting lines 335 and 336 in file Marlin/src/gcode/gcode.cpp and also deleting files Marlin/src/Marlin.h and Marlin/src/Marlin.cpp doesn't solve the problem. I cannot compile with VSCode:

Marlin/src/_Marlin.cpp:31:10: fatal error: Marlin.h: No such file or directory

Lord-Quake commented 4 years ago

Did you really delete the files?

spooky79 commented 4 years ago

I also have a compilation problem , skr e3 mini marlin problem

Scope666 commented 4 years ago

Same error as @spooky79 (SKR Mini E3 v1.2)

EDIT: It does compile with changes suggested by DerAndere1 ... just not sure if that will break anything functionality wise?

VS Code terminal output ``` In file included from Marlin\src\module/stepper.h:47:0, from Marlin\src\Marlin.cpp:37: Marlin\src\module/stepper/indirection.h:701:0: warning: "enable_Z" redefined Compiling .pio\build\STM32F103RC_bigtree_512K_USB\src\src\feature\backlash.cpp.o #define enable_Z() do{ Z_enable(); Z2_enable(); Z3_enable(); Z4_enable(); }while(0) In file included from Marlin\src\Marlin.cpp:31:0: Marlin\src\Marlin.h:142:0: note: this is the location of the previous definition #define enable_Z() do{ Z_enable(); Z2_enable(); Z3_enable(); }while(0) In file included from Marlin\src\module/stepper.h:47:0, from Marlin\src\Marlin.cpp:37: Marlin\src\module/stepper/indirection.h:702:0: warning: "disable_Z" redefined #define disable_Z() do{ Z_disable(); Z2_disable(); Z3_disable(); Z4_disable(); CBI(axis_known_position, Z_AXIS); }while(0) In file included from Marlin\src\Marlin.cpp:31:0: Marlin\src\Marlin.h:143:0: note: this is the location of the previous definition #define disable_Z() do{ Z_disable(); Z2_disable(); Z3_disable(); CBI(axis_known_position, Z_AXIS); }while(0) In file included from Marlin\src\lcd/ultralcd.h:40:0, from Marlin\src\Marlin.cpp:34: Marlin\src\lcd/../MarlinCore.h:45:1: error: default argument given for parameter 1 of 'void idle(bool)' [-fpermissive] ); ^ In file included from Marlin\src\Marlin.cpp:31:0: Marlin\src\Marlin.h:41:6: note: previous specification in 'void idle(bool)' here void idle( ^~~~ In file included from Marlin\src\lcd/ultralcd.h:40:0, from Marlin\src\Marlin.cpp:34: Marlin\src\lcd/../MarlinCore.h:47:61: error: default argument given for parameter 1 of 'void manage_inactivity(bool)' [-fpermissive] void manage_inactivity(const bool ignore_stepper_queue=false); ^ In file included from Marlin\src\Marlin.cpp:31:0: Marlin\src\Marlin.h:47:6: note: previous specification in 'void manage_inactivity(bool)' here void manage_inactivity(const bool ignore_stepper_queue=false); ^~~~~~~~~~~~~~~~~ In file included from Marlin\src\lcd/ultralcd.h:40:0, from Marlin\src\Marlin.cpp:34: Marlin\src\lcd/../MarlinCore.h:68:106: error: default argument given for parameter 1 of 'void kill(const char*, const char*, bool)' [-fpermissive] void kill(PGM_P const lcd_error=nullptr, PGM_P const lcd_component=nullptr, const bool steppers_off=false); ^ In file included from Marlin\src\Marlin.cpp:31:0: Marlin\src\Marlin.h:325:6: note: previous specification in 'void kill(const char*, const char*, bool)' here void kill(PGM_P const lcd_error=nullptr, PGM_P const lcd_component=nullptr, const bool steppers_off=false); ^~~~ In file included from Marlin\src\lcd/ultralcd.h:40:0, from Marlin\src\Marlin.cpp:34: Marlin\src\lcd/../MarlinCore.h:68:106: error: default argument given for parameter 2 of 'void kill(const char*, const char*, bool)' [-fpermissive] void kill(PGM_P const lcd_error=nullptr, PGM_P const lcd_component=nullptr, const bool steppers_off=false); ^ In file included from Marlin\src\Marlin.cpp:31:0: Marlin\src\Marlin.h:325:6: note: previous specification in 'void kill(const char*, const char*, bool)' here void kill(PGM_P const lcd_error=nullptr, PGM_P const lcd_component=nullptr, const bool steppers_off=false); ^~~~ In file included from Marlin\src\lcd/ultralcd.h:40:0, from Marlin\src\Marlin.cpp:34: Marlin\src\lcd/../MarlinCore.h:68:106: error: default argument given for parameter 3 of 'void kill(const char*, const char*, bool)' [-fpermissive] void kill(PGM_P const lcd_error=nullptr, PGM_P const lcd_component=nullptr, const bool steppers_off=false); ^ In file included from Marlin\src\Marlin.cpp:31:0: Marlin\src\Marlin.h:325:6: note: previous specification in 'void kill(const char*, const char*, bool)' here void kill(PGM_P const lcd_error=nullptr, PGM_P const lcd_component=nullptr, const bool steppers_off=false); ^~~~ compilation terminated due to -fmax-errors=5. *** [.pio\build\STM32F103RC_bigtree_512K_USB\src\src\Marlin.cpp.o] Error 1 ```
Hesi-Re commented 4 years ago

Did you really delete the files?

I confirm deleting those files solves the problem. Before I just changed files name.

Hesi-Re commented 4 years ago

I get also this compile error:

Marlin/src/feature/pause.cpp: In function 'bool unload_filament(const float&, bool, PauseMode)':
Marlin/src/feature/pause.cpp:355:20: error: 'FILAMENT_UNLOAD_PURGE_FEEDRATE' was not declared in this scope
                   (FILAMENT_UNLOAD_PURGE_FEEDRATE) * mix_multiplier);
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Marlin/src/feature/pause.cpp:355:20: note: suggested alternative: 'FILAMENT_UNLOAD_PURGE_RETRACT'
                   (FILAMENT_UNLOAD_PURGE_FEEDRATE) * mix_multiplier);
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                    FILAMENT_UNLOAD_PURGE_RETRACT
Scope666 commented 4 years ago

I get also this compile error:

Marlin/src/feature/pause.cpp: In function 'bool unload_filament(const float&, bool, PauseMode)': Marlin/src/feature/pause.cpp:355:20: error: 'FILAMENT_UNLOAD_PURGE_FEEDRATE' was not declared in this scope (FILAMENT_UNLOAD_PURGE_FEEDRATE) mix_multiplier); ^~~~~~~~~~ Marlin/src/feature/pause.cpp:355:20: note: suggested alternative: 'FILAMENT_UNLOAD_PURGE_RETRACT' (FILAMENT_UNLOAD_PURGE_FEEDRATE) mix_multiplier); ^~~~~~~~~~ FILAMENT_UNLOAD_PURGE_RETRACT

I've been having to add this line in for awhile now, not sure why it's missing:

#define FILAMENT_UNLOAD_PURGE_FEEDRATE 25 // (mm/s) feedrate to purge before unload

Lord-Quake commented 4 years ago

You need to use the configs that are found in the Marlin folder and edit these to your needs. Don't use the ones found in the config/example folder. They don't seem to be updated for 2.0.2

Hesi-Re commented 4 years ago

I just added this line to my configuration_adv.h file:

define FILAMENT_UNLOAD_PURGE_FEEDRATE 10 // (mm/s) Unload purge filament feedrate. This can be pretty fast.

Now it compiles without errors!

spooky79 commented 4 years ago

You need to use the configs that are found in the Marlin folder and edit these to your needs. Don't use the ones found in the config/example folder. They don't seem to be updated for 2.0.2

manually configured the same problem

VS Code terminal output ``` In file included from Marlin\src\module/stepper.h:47:0, from Marlin\src\Marlin.cpp:37: Marlin\src\module/stepper/indirection.h:701:0: warning: "enable_Z" redefined #define enable_Z() do{ Z_enable(); Z2_enable(); Z3_enable(); Z4_enable(); }while(0) In file included from Marlin\src\Marlin.cpp:31:0: Marlin\src\Marlin.h:142:0: note: this is the location of the previous definition #define enable_Z() do{ Z_enable(); Z2_enable(); Z3_enable(); }while(0) In file included from Marlin\src\module/stepper.h:47:0, from Marlin\src\Marlin.cpp:37: Marlin\src\module/stepper/indirection.h:702:0: warning: "disable_Z" redefined #define disable_Z() do{ Z_disable(); Z2_disable(); Z3_disable(); Z4_disable(); CBI(axis_known_position, Z_AXIS); }while(0) In file included from Marlin\src\Marlin.cpp:31:0: Marlin\src\Marlin.h:143:0: note: this is the location of the previous definition #define disable_Z() do{ Z_disable(); Z2_disable(); Z3_disable(); CBI(axis_known_position, Z_AXIS); }while(0) Compiling .pio\build\STM32F103RC_bigtree_512K\src\src\feature\bedlevel\abl\abl.cpp.o In file included from Marlin\src\lcd/ultralcd.h:40:0, from Marlin\src\Marlin.cpp:34: Marlin\src\lcd/../MarlinCore.h:45:1: error: default argument given for parameter 1 of 'void idle(bool)' [-fpermissive] ); ^ In file included from Marlin\src\Marlin.cpp:31:0: Marlin\src\Marlin.h:41:6: note: previous specification in 'void idle(bool)' here void idle( ^~~~ In file included from Marlin\src\lcd/ultralcd.h:40:0, from Marlin\src\Marlin.cpp:34: Marlin\src\lcd/../MarlinCore.h:47:61: error: default argument given for parameter 1 of 'void manage_inactivity(bool)' [-fpermissive] void manage_inactivity(const bool ignore_stepper_queue=false); ^ In file included from Marlin\src\Marlin.cpp:31:0: Marlin\src\Marlin.h:47:6: note: previous specification in 'void manage_inactivity(bool)' here void manage_inactivity(const bool ignore_stepper_queue=false); ^~~~~~~~~~~~~~~~~ In file included from Marlin\src\lcd/ultralcd.h:40:0, from Marlin\src\Marlin.cpp:34: Marlin\src\lcd/../MarlinCore.h:68:106: error: default argument given for parameter 1 of 'void kill(const char*, const char*, bool)' [-fpermissive] void kill(PGM_P const lcd_error=nullptr, PGM_P const lcd_component=nullptr, const bool steppers_off=false); ^ In file included from Marlin\src\Marlin.cpp:31:0: Marlin\src\Marlin.h:325:6: note: previous specification in 'void kill(const char*, const char*, bool)' here void kill(PGM_P const lcd_error=nullptr, PGM_P const lcd_component=nullptr, const bool steppers_off=false); ^~~~ In file included from Marlin\src\lcd/ultralcd.h:40:0, from Marlin\src\Marlin.cpp:34: Marlin\src\lcd/../MarlinCore.h:68:106: error: default argument given for parameter 2 of 'void kill(const char*, const char*, bool)' [-fpermissive] void kill(PGM_P const lcd_error=nullptr, PGM_P const lcd_component=nullptr, const bool steppers_off=false); ^ In file included from Marlin\src\Marlin.cpp:31:0: Marlin\src\Marlin.h:325:6: note: previous specification in 'void kill(const char*, const char*, bool)' here void kill(PGM_P const lcd_error=nullptr, PGM_P const lcd_component=nullptr, const bool steppers_off=false); ^~~~ In file included from Marlin\src\lcd/ultralcd.h:40:0, from Marlin\src\Marlin.cpp:34: Marlin\src\lcd/../MarlinCore.h:68:106: error: default argument given for parameter 3 of 'void kill(const char*, const char*, bool)' [-fpermissive] void kill(PGM_P const lcd_error=nullptr, PGM_P const lcd_component=nullptr, const bool steppers_off=false); ^ In file included from Marlin\src\Marlin.cpp:31:0: Marlin\src\Marlin.h:325:6: note: previous specification in 'void kill(const char*, const char*, bool)' here void kill(PGM_P const lcd_error=nullptr, PGM_P const lcd_component=nullptr, const bool steppers_off=false); ^~~~ compilation terminated due to -fmax-errors=5. ```
DerAndere1 commented 4 years ago

If I modify Marlin 2.0.2, according to comment https://github.com/MarlinFirmware/Marlin/issues/16691#issuecomment-578858359 and replace the configs with an example config from https://github.com/MarlinFirmware/Configurations, I can compile sucessfully using the Arduino IDE.

Scope666 commented 4 years ago

If I modify Marlin 2.0.2, according to comment #16691 (comment) and replace the configs with an example config from https://github.com/MarlinFirmware/Configurations, I can compile sucessfully using the Arduino IDE.

I thought we were encouraged to use VSCode / PlatformIO ? More to the point the repository probably needs to be fixed if it can't be compiled because of extra files present.

Lord-Quake commented 4 years ago

Update:

Download Marlin 2.0.2 again.

There is still the issue with Marlin.h and Marlin.cpp. To solve this you must delete the files .../Marlin/src/Marlin.h and .../Marlin/src/Marlin.cpp Do not rename nor copy them in a newly created folder within Marlin.

You should now be able to compile successfully. In my case with "STM32F103RC_bigtree_512K" If you still have an issue then it's best you post your configs: Configuration.h Configuration_adv.h platformio.ini

qwewer0 commented 4 years ago

20.01.28. Still can't compile 2.0.2. Will wait for official fix.

Lord-Quake commented 4 years ago

Post your config files so we can take a look.

qwewer0 commented 4 years ago

See it on the first comment.

Lord-Quake commented 4 years ago

I was able to successfully compile with your configs:

Linking .pio\build\STM32F103RC_bigtree_512K\firmware.elf Checking size .pio\build\STM32F103RC_bigtree_512K\firmware.elf Building .pio\build\STM32F103RC_bigtree_512K\firmware.bin Advanced Memory Usage is available via "PlatformIO Home > Project Inspect" DATA: [==== ] 41.5% (used 20408 bytes from 49152 bytes) PROGRAM: [====== ] 55.0% (used 288588 bytes from 524288 bytes)

qwewer0 commented 4 years ago

I was able to successfully compile with your configs:

And you didn't change anything? I still get these terminal outputs:

In file included from Marlin\src\module/stepper.h:47:0,
                 from Marlin\src\Marlin.cpp:37:
Marlin\src\module/stepper/indirection.h:701:0: warning: "enable_Z" redefined
 #define  enable_Z() do{ Z_enable();  Z2_enable();  Z3_enable();  Z4_enable(); }while(0)

In file included from Marlin\src\Marlin.cpp:31:0:
Marlin\src\Marlin.h:142:0: note: this is the location of the previous definition
 #define  enable_Z() do{ Z_enable(); Z2_enable(); Z3_enable(); }while(0)

In file included from Marlin\src\module/stepper.h:47:0,
                 from Marlin\src\Marlin.cpp:37:
Marlin\src\module/stepper/indirection.h:702:0: warning: "disable_Z" redefined
 #define disable_Z() do{ Z_disable(); Z2_disable(); Z3_disable(); Z4_disable(); CBI(axis_known_position, Z_AXIS); }while(0)

In file included from Marlin\src\Marlin.cpp:31:0:
Marlin\src\Marlin.h:143:0: note: this is the location of the previous definition
 #define disable_Z() do{ Z_disable(); Z2_disable(); Z3_disable(); CBI(axis_known_position, Z_AXIS); }while(0)

In file included from Marlin\src\lcd/ultralcd.h:40:0,
                 from Marlin\src\Marlin.cpp:34:
Marlin\src\lcd/../MarlinCore.h:47:61: error: default argument given for parameter 1 of 'void manage_inactivity(bool)' [-fpermissive]
 void manage_inactivity(const bool ignore_stepper_queue=false);
                                                             ^
In file included from Marlin\src\Marlin.cpp:31:0:
Marlin\src\Marlin.h:47:6: note: previous specification in 'void manage_inactivity(bool)' here
 void manage_inactivity(const bool ignore_stepper_queue=false);
      ^~~~~~~~~~~~~~~~~
In file included from Marlin\src\lcd/ultralcd.h:40:0,
                 from Marlin\src\Marlin.cpp:34:
Marlin\src\lcd/../MarlinCore.h:68:106: error: default argument given for parameter 1 of 'void kill(const char*, const char*, bool)' [-fpermissive]
 void kill(PGM_P const lcd_error=nullptr, PGM_P const lcd_component=nullptr, const bool steppers_off=false);
                                                                                                          ^
In file included from Marlin\src\Marlin.cpp:31:0:
Marlin\src\Marlin.h:325:6: note: previous specification in 'void kill(const char*, const char*, bool)' here
 void kill(PGM_P const lcd_error=nullptr, PGM_P const lcd_component=nullptr, const bool steppers_off=false);
      ^~~~
In file included from Marlin\src\lcd/ultralcd.h:40:0,
                 from Marlin\src\Marlin.cpp:34:
Marlin\src\lcd/../MarlinCore.h:68:106: error: default argument given for parameter 2 of 'void kill(const char*, const char*, bool)' [-fpermissive]
 void kill(PGM_P const lcd_error=nullptr, PGM_P const lcd_component=nullptr, const bool steppers_off=false);
                                                                                                          ^
In file included from Marlin\src\Marlin.cpp:31:0:
Marlin\src\Marlin.h:325:6: note: previous specification in 'void kill(const char*, const char*, bool)' here
 void kill(PGM_P const lcd_error=nullptr, PGM_P const lcd_component=nullptr, const bool steppers_off=false);
      ^~~~
In file included from Marlin\src\lcd/ultralcd.h:40:0,
                 from Marlin\src\Marlin.cpp:34:
Marlin\src\lcd/../MarlinCore.h:68:106: error: default argument given for parameter 3 of 'void kill(const char*, const char*, bool)' [-fpermissive]
 void kill(PGM_P const lcd_error=nullptr, PGM_P const lcd_component=nullptr, const bool steppers_off=false);
                                                                                                          ^
In file included from Marlin\src\Marlin.cpp:31:0:
Marlin\src\Marlin.h:325:6: note: previous specification in 'void kill(const char*, const char*, bool)' here
 void kill(PGM_P const lcd_error=nullptr, PGM_P const lcd_component=nullptr, const bool steppers_off=false);
      ^~~~
In file included from Marlin\src\lcd/ultralcd.h:40:0,
                 from Marlin\src\Marlin.cpp:34:
Marlin\src\lcd/../MarlinCore.h:69:43: error: default argument given for parameter 1 of 'void minkill(bool)' [-fpermissive]
 void minkill(const bool steppers_off=false);
                                           ^
In file included from Marlin\src\Marlin.cpp:31:0:
Marlin\src\Marlin.h:326:6: note: previous specification in 'void minkill(bool)' here
 void minkill(const bool steppers_off=false);
      ^~~~~~~
compilation terminated due to -fmax-errors=5.
*** [.pio\build\STM32F103RC_bigtree_512K\src\src\Marlin.cpp.o] Error 1
==================================================================================== [FAILED] Took 21.48 seconds
Lord-Quake commented 4 years ago

Are you absolutely sure you did this:

There is still the issue with Marlin.h and Marlin.cpp. To solve this you must delete the files .../Marlin/src/Marlin.h and .../Marlin/src/Marlin.cpp Do not rename nor copy them in a newly created folder within Marlin.

qwewer0 commented 4 years ago

I'm not sure about deleting files, I rather wait for a release with the two file deleted.

Rhinohorn58 commented 4 years ago

20.01.28. Still can't compile 2.0.2. Will wait for official fix.

Same, can't compile Config+ ini.zip

dok-net commented 4 years ago

@thinkyhead The merge in ae2a0036eb97d08f65e7f1f5a6de1e6988ffddb9 has resurrected the Marlin.h and Marlin.cpp files that were renamed to MarlinCore.* in d0e1166cce60381fbdad1105d13765806a525d99. It's not that bad, though: ac32ed74b4529dbd496713e3f2d75315d8aeebaa is all that's MISSING from Marlin.cpp (but is in MarlinCore.cpp, of course). The header file is unaffected. So as far as I can tell,

rm Marlin/src/Marlin.cpp Marlin/src/Marlin.h

is all to fix that part. A bit surprising is that there is a release-2.0.2 in the new Marlin Configurations repo, while in MarlinFirmware the config/examples tree still exists, but both have different contents?

Lord-Quake commented 4 years ago

20.01.28. Still can't compile 2.0.2. Will wait for official fix.

Same, can't compile Config+ ini.zip

You have a general config issue e.g.: In file included from Marlin\src\HAL\HAL_LPC1768../../core/../inc/MarlinConfig.h:38:0, from Marlin\src\HAL\HAL_LPC1768../../core/serial.h:24, from Marlin\src\HAL\HAL_LPC1768\DebugMonitor.cpp:26: Marlin\src\HAL\HAL_LPC1768../../core/../inc/SanityCheck.h:1442:8: error: #error "You cannot set E0_AUTO_FAN_PIN equal to FAN_PIN."

error "You cannot set E0_AUTO_FAN_PIN equal to FAN_PIN."

Rhinohorn58 commented 4 years ago

You have a general config issue e.g.: In file included from Marlin\src\HAL\HAL_LPC1768../../core/../inc/MarlinConfig.h:38:0, from Marlin\src\HAL\HAL_LPC1768../../core/serial.h:24, from Marlin\src\HAL\HAL_LPC1768\DebugMonitor.cpp:26: Marlin\src\HAL\HAL_LPC1768../../core/../inc/SanityCheck.h:1442:8: error: #error "You cannot set E0_AUTO_FAN_PIN equal to FAN_PIN."

error "You cannot set E0_AUTO_FAN_PIN equal to FAN_PIN."

Apologies, i changed my pinout to use the "EXTRUDER_AUTO_FAN_TEMPERATURE" feature. pinout files attached

lpc1768.zip

Thijsvanzwam commented 4 years ago

Cannot compile either:

In file included from sketch/src/lcd/ultralcd.h:40:0, from sketch/src/Marlin.cpp:34: sketch/src/lcd/../MarlinCore.h: In function 'bool IsRunning()': sketch/src/lcd/../MarlinCore.h:74:13: error: redefinition of 'bool IsRunning()' inline bool IsRunning() { return Running; } ^ In file included from sketch/src/Marlin.cpp:31:0: sketch/src/Marlin.h:331:13: note: 'bool IsRunning()' previously defined here inline bool IsRunning() { return Running; } ^ In file included from sketch/src/lcd/ultralcd.h:40:0, from sketch/src/Marlin.cpp:34: sketch/src/lcd/../MarlinCore.h: In function 'bool IsStopped()': sketch/src/lcd/../MarlinCore.h:75:13: error: redefinition of 'bool IsStopped()' inline bool IsStopped() { return !Running; } ^ In file included from sketch/src/Marlin.cpp:31:0: sketch/src/Marlin.h:332:13: note: 'bool IsStopped()' previously defined here inline bool IsStopped() { return !Running; } ^ exit status 1 Fout bij het compileren voor board Anet V1.0 (Optiboot)

config files.zip

dok-net commented 4 years ago

@DerAndere1

If you use Marlin 2.0.2 release and cannot simply update to latest bugfix-2.0.x (wich was fixed with commit e2eef12 ), I can confirm that 2.0.2 release compiles if you delete files Marlin/src/Marlin.h and Marlin/src/Marlin.cpp and also delete lines 335 and 336 in file Marlin/src/gcode/gcode.cpp

Let me just add that touching gcode.cpp is completely unnecessary; besides, it would have to be lines 335 through 337 or you break the #if/#endif pair :-) Please note that the configuration files have seen a major update, but that these versions are now in the new MarlinFirmware/Configurations repository only. Compiling release 2.0.2 (tag) with the printer-specific Configuration.h/Configuration_adv.h from there works, at least for part of the possible configurations - besides the great quality of the gcc AVR suite which crashes sometimes.

Balzac40 commented 4 years ago

@dok-net Following your instructions, 2.0.2 well compiles (some warnings as often). Thanks!

boelle commented 4 years ago

people.... 2.0.2 is allready old compared to bugfix 2.0.x, try with that instead

Lord-Quake commented 4 years ago

For those reluctant using nightly builds can safely use, as @boelle suggests, the bugfix 2.0.x. firmware version. In our case all the above mentioned issues have been taken care off.

dkeekstra commented 4 years ago

What worked for me was deleting the Marlin.cpp, Marlin.h in the src folder and deleting line 335 and 336 in \src\gcode\gcode.cpp

boelle commented 4 years ago

you dont have to delete anything

deleting the Marlin.cpp, Marlin.h in the src folder and deleting line 335 and 336 in \src\gcode\gcode.cpp

dkeekstra commented 4 years ago

you dont have to delete anything

deleting the Marlin.cpp, Marlin.h in the src folder and deleting line 335 and 336 in \src\gcode\gcode.cpp

If i dont delete Marlin.cpp and Marlin.h i got the 'marlincore.h:74:13: error: redefinition of 'bool IsRunning()'' error when compiling for AVR

boelle commented 4 years ago

and you are of course using bugfix 2.0.x as suggested right?

qwewer0 commented 4 years ago

If this would be a problem in Bugfix-2.0.x then I would have write that in the title. If we get a new release or a patched 2.0.2, then this can be closed.

boelle commented 4 years ago

2.0.2 will not be patched, it is fixed allready in 2.0.x 2.0.x will at some point be frozen and saved as 2.0.3

look at what @Lord-Quake wrote

qwewer0 commented 4 years ago

The problem is still present in 2.0.x

In file included from Marlin\src\module/stepper.h:47:0,
                 from Marlin\src\Marlin.cpp:37:
Marlin\src\module/stepper/indirection.h:701:0: warning: "enable_Z" redefined
 #define  enable_Z() do{ Z_enable();  Z2_enable();  Z3_enable();  Z4_enable(); }while(0)

In file included from Marlin\src\Marlin.cpp:31:0:
Marlin\src\Marlin.h:142:0: note: this is the location of the previous definition
 #define  enable_Z() do{ Z_enable(); Z2_enable(); Z3_enable(); }while(0)

In file included from Marlin\src\module/stepper.h:47:0,
                 from Marlin\src\Marlin.cpp:37:
Compiling .pio\build\STM32F103RC_bigtree_512K\src\src\feature\babystep.cpp.o
Marlin\src\module/stepper/indirection.h:702:0: warning: "disable_Z" redefined
 #define disable_Z() do{ Z_disable(); Z2_disable(); Z3_disable(); Z4_disable(); CBI(axis_known_position, Z_AXIS); }while(0)
Compiling .pio\build\STM32F103RC_bigtree_512K\src\src\feature\backlash.cpp.o

In file included from Marlin\src\Marlin.cpp:31:0:
Marlin\src\Marlin.h:143:0: note: this is the location of the previous definition
 #define disable_Z() do{ Z_disable(); Z2_disable(); Z3_disable(); CBI(axis_known_position, Z_AXIS); }while(0)

In file included from Marlin\src\lcd/ultralcd.h:40:0,
                 from Marlin\src\Marlin.cpp:34:
Marlin\src\lcd/../MarlinCore.h:47:61: error: default argument given for parameter 1 of 'void manage_inactivity(bool)' [-fpermissive]
 void manage_inactivity(const bool ignore_stepper_queue=false);
                                                             ^
In file included from Marlin\src\Marlin.cpp:31:0:
Marlin\src\Marlin.h:47:6: note: previous specification in 'void manage_inactivity(bool)' here
 void manage_inactivity(const bool ignore_stepper_queue=false);
      ^~~~~~~~~~~~~~~~~
In file included from Marlin\src\lcd/ultralcd.h:40:0,
                 from Marlin\src\Marlin.cpp:34:
Marlin\src\lcd/../MarlinCore.h:68:106: error: default argument given for parameter 1 of 'void kill(const char*, const char*, bool)' [-fpermissive]
 void kill(PGM_P const lcd_error=nullptr, PGM_P const lcd_component=nullptr, const bool steppers_off=false);
                                                                                                          ^
In file included from Marlin\src\Marlin.cpp:31:0:
Marlin\src\Marlin.h:325:6: note: previous specification in 'void kill(const char*, const char*, bool)' here
 void kill(PGM_P const lcd_error=nullptr, PGM_P const lcd_component=nullptr, const bool steppers_off=false);
      ^~~~
In file included from Marlin\src\lcd/ultralcd.h:40:0,
                 from Marlin\src\Marlin.cpp:34:
Marlin\src\lcd/../MarlinCore.h:68:106: error: default argument given for parameter 2 of 'void kill(const char*, const char*, bool)' [-fpermissive]
 void kill(PGM_P const lcd_error=nullptr, PGM_P const lcd_component=nullptr, const bool steppers_off=false);
                                                                                                          ^
In file included from Marlin\src\Marlin.cpp:31:0:
Marlin\src\Marlin.h:325:6: note: previous specification in 'void kill(const char*, const char*, bool)' here
 void kill(PGM_P const lcd_error=nullptr, PGM_P const lcd_component=nullptr, const bool steppers_off=false);
      ^~~~
In file included from Marlin\src\lcd/ultralcd.h:40:0,
                 from Marlin\src\Marlin.cpp:34:
Marlin\src\lcd/../MarlinCore.h:68:106: error: default argument given for parameter 3 of 'void kill(const char*, const char*, bool)' [-fpermissive]
 void kill(PGM_P const lcd_error=nullptr, PGM_P const lcd_component=nullptr, const bool steppers_off=false);
                                                                                                          ^
In file included from Marlin\src\Marlin.cpp:31:0:
Marlin\src\Marlin.h:325:6: note: previous specification in 'void kill(const char*, const char*, bool)' here
 void kill(PGM_P const lcd_error=nullptr, PGM_P const lcd_component=nullptr, const bool steppers_off=false);
      ^~~~
In file included from Marlin\src\lcd/ultralcd.h:40:0,
                 from Marlin\src\Marlin.cpp:34:
Marlin\src\lcd/../MarlinCore.h:69:43: error: default argument given for parameter 1 of 'void minkill(bool)' [-fpermissive]
 void minkill(const bool steppers_off=false);
                                           ^
In file included from Marlin\src\Marlin.cpp:31:0:
Marlin\src\Marlin.h:326:6: note: previous specification in 'void minkill(bool)' here
 void minkill(const bool steppers_off=false);
      ^~~~~~~
compilation terminated due to -fmax-errors=5.
*** [.pio\build\STM32F103RC_bigtree_512K\src\src\Marlin.cpp.o] Error 1
==================================================================================== [FAILED] Took 21.49 seconds
Lord-Quake commented 4 years ago

@qwewer0 I think you need to reset. 2.0.2 is a freezed release. It will not be changed. If you want the latest working release you will need to use Bugfix-2.0.x (https://github.com/MarlinFirmware/Marlin/archive/bugfix-2.0.x.zip) that has all the issues mentioned in this thread fixed. So.... download it, use the configs found here https://github.com/MarlinFirmware/Configurations , Change them accordingly, install the FW on your printer and enjoy.

qwewer0 commented 4 years ago

Was able to compile Bugfix-2.0.x 20.01.28. Now I just need to wait for 2.0.3.

kreuzhofer commented 4 years ago

I just cloned a Bugfix-2.0.x into a new directory. Problem still exists. Even with a clean before build nothing changes. I would not confirm this is fixed in the 2.0.x.