[distcc] Preprocessed output to make's stdout instead of to remote distccd

Martin Pool mbp at samba.org
Tue Oct 1 06:06:00 GMT 2002


On 30 Sep 2002, Terry Griffin <terryg at axian.com> wrote:

> In the mean time, building distcc with distcc exhibits the exact same
> problem. Can we work it from that angle?

Sure.

> Is that a known issue or is it just me? That would suggest something
> in my environment. 

Yes, I think it is.

The log looks normal to me, except for the .i file being 0 bytes.  Why
that is happening I don't know.  Are you sure that "cc" on the path is
really gcc, not something else?

Perhaps you could run strace on the client, and look at the output to
make of which compiler is being invoked, and that the arguments are as
they should be.

> Below is make's stderr from trying to build just
> clinet.o from distcc-0.11/src with this command:
> 
>         make -j2 CC=distcc clinet.o

Does it work with CC='distcc gcc'?

> 
> Also below is the log from the server side.
> 
> *** DISTCC environment on the client (chinook) ***
> DISTCC_VERBOSE=1
> DISTCC_HOSTS=nezperce
> 
> ** make's stderr on client ***
> distcc[17692] (dcc_scan_args) scanning arguments: cc -g -O2 -W -Wall
> -Wshadow -Wpointer-arith -Wcast-align -MMD -c -o clinet.o clinet.c
> distcc[17692] (dcc_scan_args) found object file "clinet.o"
> distcc[17692] (dcc_scan_args) found input file "clinet.c"
> distcc[17692] compile from clinet.c to clinet.o
> distcc[17692] (dcc_parse_hosts) found tcp token "nezperce"
> distcc[17692] (dcc_try_lock_host) locked
> /tmp/distcc_000003e8/lock_nezperce_0000000
> distcc[17692] (dcc_pick_buildhost) building on nezperce
> distcc[17692] (dcc_set_output) changed output from "clinet.o" to
> "/tmp/distcc_000003e8/cppout_0000017692.i"
> distcc[17692] (dcc_set_output) command after: cc -g -O2 -W -Wall -Wshadow
> -Wpointer-arith -Wcast-align -MMD -E -o
> /tmp/distcc_000003e8/cppout_0000017692.i clinet.c
> distcc[17692] (dcc_spawn_child) forking to execute cc -g -O2 -W -Wall
> -Wshadow -Wpointer-arith -Wcast-align -MMD -E -o
> /tmp/distcc_000003e8/cppout_0000017692.i clinet.c
> distcc[17692] (dcc_spawn_child) child started as pid17693
> distcc[17692] (dcc_strip_local_args) result: cc -g -O2 -W -Wall -Wshadow
> -Wpointer-arith -Wcast-align -c -o clinet.o clinet.c
> distcc[17693] (dcc_try_lock_host) locked
> /tmp/distcc_000003e8/lock_localhost_0000000
> distcc[17692] exec on nezperce: cc -g -O2 -W -Wall -Wshadow
> -Wpointer-arith -Wcast-align -c -o clinet.o clinet.c
> distcc[17693] (dcc_lock_local) got lock on localhost
> distcc[17692] (dcc_open_socket_out) client got connection to nezperce port
> 4200 on fd4
> distcc[17692] (dcc_collect_child) child 17693 terminated with status 0
> distcc[17692] (dcc_report_rusage) cpp resource usage: 0.110000s user,
> 0.020000s system
> distcc[17692] cpp on chinook completed ok
> distcc[17692] (dcc_x_file) send 0 byte file
> /tmp/distcc_000003e8/cppout_0000017692.i with token DOTI
> distcc[17692] (dcc_send_job) client finished sending request to server
> distcc[17692] (dcc_r_result_header) got response header
> distcc[17692] (dcc_r_file) received 2112 bytes to file clinet.o
> distcc[17692] cc on nezperce completed ok
> distcc[17692] (dcc_exit) exit: code 0; self: 0.000000 user 0.020000 sys;
> children: 0.110000 user 0.020000 sys
> 
> *** distccd log on server ***
> Sep 30 19:30:19 nezperce distccd[1764]: (dcc_inetd_server) inetd server
> started (version 0.11, built Sep 2
> 9 2002 17:29:00)
> Sep 30 19:30:19 nezperce distccd[1764]: (dcc_log_clientname) connection
> from chinook.griffint.bogus (192.1
> 68.0.1)
> Sep 30 19:30:19 nezperce distccd[1764]: (dcc_accept_job) got arguments: cc
> -g -O2 -W -Wall -Wshadow -Wpoin
> ter-arith -Wcast-align -c -o clinet.o clinet.c
> Sep 30 19:30:19 nezperce distccd[1764]: compile from clinet.c to clinet.o
> Sep 30 19:30:19 nezperce distccd[1764]: input file clinet.c, output file
> clinet.o
> Sep 30 19:30:19 nezperce distccd[1764]: (dcc_server_compile) input file is
> 0 bytes
> Sep 30 19:30:19 nezperce distccd[1764]: (dcc_r_fifo) received 0 bytes to
> fifo /tmp/distcc_00000063/server_
> 0000001764.i
> Sep 30 19:30:19 nezperce distccd[1764]: (dcc_report_rusage) cc resource
> usage: 0.020000s user, 0.000000s s
> ystem
> Sep 30 19:30:19 nezperce distccd[1764]: cc on nezperce.griffint.bogus
> completed ok
> Sep 30 19:30:19 nezperce distccd[1764]: (dcc_accept_job) complete; output
> file: 2112 bytes
> Sep 30 19:30:19 nezperce distccd[1764]: (dcc_exit) exit: code 0; self:
> 0.010000 user 0.000000 sys; childre
> n: 0.020000 user 0.000000 sys
> 
-- 
Martin 



More information about the distcc mailing list