I needed to switch off sccache cause it was finding the wrong header files - in this case Deprecation.h