Unable to recompile firmware (dirty klipper version)

Check the klippy.log or attach here. It will tell you the reason for the dirty flag.