the error in both of them is
"SanityCheck.h:923:6: error: #error "AUTO_BED_LEVELING_UBL used to enable RESTORE_LEVELING_AFTER_G28. To keep this behavior enable RESTORE_LEVELING_AFTER_G28. Otherwise define it as 'false'."
#error "AUTO_BED_LEVELING_UBL used to enable RESTORE_LEVELING_AFTER_G28. To keep this behavior enable RESTORE_LEVELING_AFTER_G28. Otherwise define it as 'false'.""
But the A6 configuration.h provided with marlin does not have AUTO_BED_LEVELING_UBL enabled, did you change it? See github version, line 1087 [github.com]
The error is also clear what you should do if you have enabled AUTO_BED_LEVELING_UBL and that is also enable RESTORE_LEVELING_AFTER_G28 in configuration.h
"SanityCheck.h:923:6: error: #error "AUTO_BED_LEVELING_UBL used to enable RESTORE_LEVELING_AFTER_G28. To keep this behavior enable RESTORE_LEVELING_AFTER_G28. Otherwise define it as 'false'."
#error "AUTO_BED_LEVELING_UBL used to enable RESTORE_LEVELING_AFTER_G28. To keep this behavior enable RESTORE_LEVELING_AFTER_G28. Otherwise define it as 'false'.""
But the A6 configuration.h provided with marlin does not have AUTO_BED_LEVELING_UBL enabled, did you change it? See github version, line 1087 [github.com]
The error is also clear what you should do if you have enabled AUTO_BED_LEVELING_UBL and that is also enable RESTORE_LEVELING_AFTER_G28 in configuration.h