[distcc] Distcc and mpiCC

Martin Pool mbp at sourcefrog.net
Thu Jun 9 06:27:04 GMT 2005

On  8 Jun 2005, Eric Bechet <eric.bechet at ec-nantes.fr> wrote:
> Hello,
> I tried to use distcc to perform a distributed build of a parallelized 
> c++ code (via mpiCC). However, every object file generated with the 
> distributed compilation is of length 0 (no errors are generated by 
> distcc). The code compiles  fine with distcc and g++ . In addition, it 
> also compiles fine with mpiCC directly invoked as a "serial" compiler. 
> The problem seem to be interactions between mpiCC and distcc.
> Did someone actually manage to use mpiCC with distcc ? Here are some 
> relevant data :


Thanks for the detailed report.

Something seems to be going wrong in running the preprocessor separate
from the compiler.  Please try running these commands directly through

First make a simple hello.cc

mpiCC -E hello.cc -o hello.ii
mpiCC -c hello.ii -o hello.c

This is basically what distcc does.

If that doesn't work, try to work out why.  If it does work, try to
work out what's different between this case and using distcc.


More information about the distcc mailing list