ERROR WHEN COMPILING

sketch\ultralcd.cpp: In function 'void _lcd_babystep(int, const char*)':

sketch\ultralcd.cpp:468:59: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

if (lcdDrawUpdate) lcd_implementation_drawedit(msg, "");

^

sketch\ultralcd.cpp: In function 'void _lcd_level_bed_homing()':

sketch\ultralcd.cpp:2207:73: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

if (lcdDrawUpdate) lcd_implementation_drawedit(PSTR("XYZ"), "Homing");

Fine but without knowing what you are compiling it is a bit of a waste of time.

Those aren't errors, they're warnings. You need to understand the difference. An error will prevent compiling or upload. A warning just indicates something that may or may not be of concern. It's good to pay attention to them and always fix them in your own code but when the error is caused by something in a library or core you didn't write then sometime you just need to ignore them or, better yet, submit a pull request or patch to the author of that code to fix it for all of us.

You can fix the warnings by changing those lines to:

if (lcdDrawUpdate) lcd_implementation_drawedit(msg, (char*)"");

and:

if (lcdDrawUpdate) lcd_implementation_drawedit(PSTR("XYZ"), (char*)"Homing");