Welcome! Log In Create A New Profile

Advanced

Marlin 2.0.2 compile error

Posted by OutspokenPlanet 
Marlin 2.0.2 compile error
January 29, 2020 09:27AM
Hello all

Wondered if anybody else had had this issue that Marlin 2.0.2 wont compile due to the following errors?


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\module/planner.h:33:0,
from Marlin\src\Marlin.cpp:36:
Marlin\src\module/../MarlinCore.h:47:61: warning: 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\module/planner.h:33:0,
from Marlin\src\Marlin.cpp:36:
Marlin\src\module/../MarlinCore.h:68:106: warning: 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\module/planner.h:33:0,
from Marlin\src\Marlin.cpp:36:
Marlin\src\module/../MarlinCore.h:68:106: warning: 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\module/planner.h:33:0,
from Marlin\src\Marlin.cpp:36:
Marlin\src\module/../MarlinCore.h:68:106: warning: 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\module/planner.h:33:0,
from Marlin\src\Marlin.cpp:36:
Marlin\src\module/../MarlinCore.h:69:43: warning: 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);
^
In file included from Marlin\src\module/planner.h:33:0,
from Marlin\src\Marlin.cpp:36:
Marlin\src\module/../MarlinCore.h: In function 'bool IsRunning()':
Marlin\src\module/../MarlinCore.h:74:13: error: redefinition of 'bool IsRunning()'
inline bool IsRunning() { return Running; }
^
In file included from Marlin\src\Marlin.cpp:31:0:
Marlin\src\Marlin.h:331:13: note: 'bool IsRunning()' previously defined here
inline bool IsRunning() { return Running; }
^
In file included from Marlin\src\module/planner.h:33:0,
from Marlin\src\Marlin.cpp:36:
Marlin\src\module/../MarlinCore.h: In function 'bool IsStopped()':
Marlin\src\module/../MarlinCore.h:75:13: error: redefinition of 'bool IsStopped()'
inline bool IsStopped() { return !Running; }
^
In file included from Marlin\src\Marlin.cpp:31:0:
Marlin\src\Marlin.h:332:13: note: 'bool IsStopped()' previously defined here
inline bool IsStopped() { return !Running; }
^
*** [.pio\build\megaatmega2560\src\src\Marlin.cpp.o] Error 1


Any ideas what the fix could be to these?


It's not an addiction... it's an obsession
Re: Marlin 2.0.2 compile error
January 29, 2020 10:01AM
yes, read previous post to this one. Here -> [reprap.org]

Edited 2 time(s). Last edit at 01/29/2020 10:04AM by Dust.
Re: Marlin 2.0.2 compile error
January 29, 2020 11:44AM
Thanks Dust

Compiles perfectly now. Must admit I misread the previous post at first


It's not an addiction... it's an obsession
Sorry, only registered users may post in this forum.

Click here to login