Could "gcc -MD" be built in the server machine?

View: New views
2 Messages — Rating Filter:   Alert me  

Could "gcc -MD" be built in the server machine?

by JCX :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi all,

There is such a compile situation:

gcc uses the option '-MD', such as:
distcc gcc -c -MD -o hello.o hello.c

And the output dependence file hello.d will be used by the later "cp" command.

So, can gcc command be built in the server machine? Can distcc be used?

I built the above files using distcc and got errors that showed
"hello.d: no such file". So, I think if distcc can be used.

Can someone give me any suggestions?

Thank you very much,
Caixia
__
distcc mailing list            http://distcc.samba.org/
To unsubscribe or change options:
https://lists.samba.org/mailman/listinfo/distcc

Re: Could "gcc -MD" be built in the server machine?

by Fergus Henderson-5 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Thu, Aug 20, 2009 at 4:51 AM, JCX <jcx721@...> wrote:
Hi all,

There is such a compile situation:

gcc uses the option '-MD', such as:
distcc gcc -c -MD -o hello.o hello.c

And the output dependence file hello.d will be used by the later "cp" command.

So, can gcc command be built in the server machine? Can distcc be used?

Yes.  That works fine for me.

I built the above files using distcc and got errors that showed
"hello.d: no such file".

I can't reproduce that behavior.

Which distcc version are you using?
Which version of distccd is running on the server?
What is the exact distcc command that you (or your Makefile) ran?
And exactly where did you expect the ".d" file to be?

Cheers,
  Fergus.
--
Fergus Henderson <fergus@...>

__
distcc mailing list            http://distcc.samba.org/
To unsubscribe or change options:
https://lists.samba.org/mailman/listinfo/distcc