Not sure what to say concerning buildfarm's remote execution.
Reading an issue I've opened almost 2y ago [1], seems the backend requires the client to have a specific gcc version.
That's a strong limitation imho.
[1] https://github.com/bazelbuild/bazel-buildfarm/issues/545