[distcc] improved gcc -MD handling

Martin Pool mbp at sourcefrog.net
Thu Nov 21 23:52:01 GMT 2002


On 21 Nov 2002, George Garvey <tmwg-distcc at inxservices.com> wrote:
> On Thu, Nov 21, 2002 at 12:10:35PM -0800, Martin Pool wrote:
> > I put some changes into distcc CVS last night that improve gcc -MD
> > handling.  These should make the most common cases work properly.
> 
>    With gcc 3.2.1, -MD works badly, as before: some .d files are put in
> the output directory with the .o files, some are not. I presume they are
> in the temporary directory still, as before, but didn't look.

Could it be that some are in the -o directory, and some are in the
source directory?

I just realized that the behaviour will be inconsistent between local
and remote compilations.

Does it work if you use -MD -MF?  As far as I can see explicitly
giving the dependency file with -MF ought to always work.

>    FYI, our makefiles compile with CC set to 'distcc gcc', if that
> matters.

Do you mean it works with CC='distcc gcc' but not with CC='distcc'?
How strange.  I'd appreciate a logfile for that.

Is it possible that 'cc' is a different version to 'gcc'?

>    I'm very pleased to have a way to do this now.

-- 
Martin



More information about the distcc mailing list