The depends cache has no mechanism of being invalidated when the cpu architecture, the operating system, or even just the compiler changes from down under it.
I think long term we should be moving to proper compiler caches like ccache (#17103) or guix