Open GoogleCodeExporter opened 9 years ago
This is "working as intended".
The relevant log message is this one:
distcc[5464] (dcc_scan_args) compiler apparently called not for compile
Distcc only distributes compilation, not linking, but you have invoked the
compiler in a mode in which it will do both compilation and linking. Distcc
runs the command locally in such cases.
If you want to distribute the compilation, and run just the linking locally,
then you need to split your command into two steps, one for compilation, and
one for linking; then distcc will be able to distribute the compilation command
(but will still run the linking command locally).
# Compile
DISTCC_VERBOSE=1 distcc cc -c tg_007.c
# Link
DISTCC_VERBOSE=1 distcc cc -o tg_007.exe tg_007.o
Original comment by fergus.h...@gmail.com
on 14 Nov 2011 at 7:50
Thank you for the detailed explanation, I missed the linking step due to my
win32-based past where linker was standalone application:)
I guess some of these bits could go into docs.
Original comment by sauli...@gmail.com
on 14 Nov 2011 at 10:01
I'd say this would then be a feature request: I'd like distcc to be able to do
that splitting of compile+link command to compile remotely and link locally
automatically.
I have a quite low-powered device (OMAP3530) running distcc and a single
high-powered "server" (AMD Phenom Quad Core) with a cross toolchain for the
OMAP3530. Then I expected all compilation to be remote and said pump make -j6
(building gcc). ... And the omap was running 6 conftest compilations locally.
Original comment by urja...@gmail.com
on 13 Jun 2013 at 11:25
irjaman writes:
> I'd like distcc to be able to do that splitting of
> compile+link command to compile remotely and link
> locally automatically.
Perhaps, although this is inferring quite a lot and distcc traditionally takes
an appropriately conservative approach. That is, distcc only does what the
user asks, and single step compile and link is very different to multiple
steps, as the single step may perform e.g. much more optimization.
Implicitly splitting such commands should only be done if it can be proved that
the results would not significantly differ. The whole point of distcc is to
insert it in a toolchain without any impact other than distributing compile
tasks.
For now, urjaman, I suggest you split your compiles as indicated in the
previous comments.
I reopen the task to be investigated for impact and feasability. The previous
comments do not indicate anything about that.
Original comment by mand...@gmail.com
on 14 Jun 2013 at 1:56
Original comment by mand...@gmail.com
on 14 Jun 2013 at 1:57
Original issue reported on code.google.com by
sauli...@gmail.com
on 13 Nov 2011 at 9:24