[distcc] gcc -MD problem

tmwg-distcc at inxservices.com tmwg-distcc at inxservices.com
Tue Oct 29 09:59:01 GMT 2002


On Tue, Oct 29, 2002 at 01:39:09AM -0800, Martin Pool wrote:
> On 28 Oct 2002, tmwg-distcc at inxservices.com wrote:
> >    I'm using 012, and having trouble with dependency file creation. The
> > makefiles that are set up to use gcc's -MD option aren't working. I'm
> > getting some of the .d files in their proper directory, and not others.
> > I haven't actually investigated, but my bet is that any compilation that
> > is shipped off to another computer doesn't get the .d file created.
> 
> That's probably correct.  You can probably find the .d files in the
> client's tmp directory.
   Yep, that's where they are.

> I have a plan to fix it, but it is not in yet.  It might be in 0.14.
> That is basically to not use -o when running the preprocessor, but
> rather just capture stdout.
   Wouldn't this require change the -MD option into something else?
> 
> In the meantime you need to work around it by either using a more
> recent gcc
   I neglected to tell you: this is gcc 3.2. -MD was changed after 2.95
if memory serves to put the .d file in the same directory as the .o file
based on -o.

> or running gcc locally to generate .d files.



More information about the distcc mailing list