IIRC, when using distcc you must make sure that the Toolchain is ABI-perfect identified by its path.
So:
/opt/ourcompany/dev/bin/cc
absolutely *needs* to be the same on all machines involved or you risk very hard to spot issues.
For that reason, either use the absolute same distribution for everyone (and then run /use/bin/cc but watch out for alternatives!) or roll-out your own toolstack but make sure to put its version in the path.