I've encountered a problem with discc, a compile job distribution tool, where a (cmake) build was not distributed to other specified systems (as defined in ~/.distcc/host).
I configured the build system like so:
cmake -DCMAKE_C_COMPILER_LAUNCHER=distcc -DCMAKE_CXX_COMPILER_LAUNCHER=distcc [...]
For other (similar) builds it turned out distcc worked just fine and hence, was configured properly.
What can possibly be the issue?
It turns out that
distccrefuses to work with themarch=nativecompile option. Which certainly makes sense, since binaries with mixed optimization flags may be combined.Just to let you know, if you have a build system using
march=native, like thecmakeinstructions:You'll have to disable it, to be able to use
distccwith slaves. You'll have to specifiy the architecture flags manually.Alternatively, try to detect the use of
distcc:for this to be successful, make sure you use
distccwith the respectivecmakecompiler launcher tool: