I appreciate all the technicalities surrounding it but it would be great if ccache had a mode where it could ensure that the objects that came out of it were binary identical with ones that didn't use ccache from a #ReproducibleBuilds perspective ...
I wonder if such a thing is feasible ...

@sxa

Of course, though ... the only way to test ... is to build it without ccache and compare ... at which point you've already redone the build. :)

Though it would be interesting to do such testing systematically on an ongoing basis and nudge ccache towards the expectation of bit-for-bit reproducibility, at least under certain conditions.

I poked at this sort of thing ages ago, and recall the main issues were, surprise, timestamps, and possibly build path normalization...

@vagrantc Yeah I have done that initial comparison and it failed (probably the same as what you saw) but I haven't investigated any more deeply to look at why.
Were there any issues raised in the ccache repo for discussion when you looked at it?