[distcc] distccd only compiling locally

Martin Pool mbp at canonical.com
Mon Dec 14 00:32:19 MST 2009


2009/12/14 STR . <strykar at hotmail.com>:
>
>>
>> 2009/12/14 STR . :
>>> distccd[3052] (dcc_nofork_parent) waiting to accept connection
>>> distccd[3052] (dcc_check_client) connection from 192.168.1.10:49110
>>> distccd[3052] (dcc_check_address) match client 0xa01a8c0, value 0x1a8c0, mask 0xffffff
>>> distccd[3052] (dcc_readx) ERROR: unexpected eof on fd4
>>
>> For some reason the client is connecting and then immediately
>> disconnecting. You probably need to look at the client log to find
>> out why.
>>
>
>
>
> Martin,
>
> This is odd, the client log isn't writing anything for the make job.
> I can see distcc updating DISTCC_LOG when I do "distcc --show-hosts" or "distcc --version".
>
> But when I do "pump make -j20 CC=distcc" it does not send anything to the remote machine and does all the compilation locally. It also does not update DISTCC_LOG for the make command.

Maybe your makefile doesn't actually respect $CC?

>
>
> $ distcc --version
> distcc 3.1 i686-pc-linux-gnu
> (protocols 1, 2 and 3) (default port 3632)
> built Dec  9 2009 14:07:11
>
> $ echo $DISTCC_LOG
> /tmp/distcc.log
>
> $ echo $DISTCC_VERBOSE
> 1
>
>
> t$ pump make -j10 CC=distcc
> __________Using distcc-pump from /usr/local/bin
> __________Found 3 available distcc servers
> **snipped output***
> Make successful.
> __________Shutting down distcc-pump include server
> Include server timing.  Elapsed: 381.1s User: 0.1s System: 0.0s User + System: 0.1s
>
>
>
> # cat /tmp/distcc.log
> distcc[25557] (dcc_trace_version) distcc 3.1 i686-pc-linux-gnu; built Dec  9 2009 14:07:11
> distcc[25557] (dcc_recursion_safeguard) safeguard level=0
> distcc[25557] (main) compiler name is "distcc"
> distcc[25557] (dcc_parse_hosts_file) load hosts from /home/avid/.distcc/hosts
> distcc[25557] (dcc_parse_hosts) found localhost token "localhost"
> distcc[25557] (dcc_parse_hosts) found tcp token "192.168.1.20"
> distcc[25557] (dcc_parse_hosts) found tcp token "192.168.1.21"
> distcc[25557] (dcc_exit) exit: code 0; self: 0.000000 user 0.000000 sys; children: 0.000000 user 0.000000 sys
> distcc[25557] (dcc_cleanup_tempfiles_inner) deleted 0 temporary files
> distcc[14721] (dcc_trace_version) distcc 3.1 i686-pc-linux-gnu; built Dec  9 2009 14:07:11
> distcc[14721] (dcc_recursion_safeguard) safeguard level=0
> distcc[14721] (main) compiler name is "distcc"
> distcc[14721] (dcc_parse_hosts_file) load hosts from /home/avid/.distcc/hosts
> distcc[14721] (dcc_parse_hosts) found localhost token "localhost"
> distcc[14721] (dcc_parse_hosts) found tcp token "192.168.1.20"
> distcc[14721] (dcc_parse_hosts) found tcp token "192.168.1.21"
> distcc[14721] (dcc_exit) exit: code 0; self: 0.000000 user 0.000999 sys; children: 0.000000 user 0.000000 sys
> distcc[14721] (dcc_cleanup_tempfiles_inner) deleted 0 temporary files
> distcc[7865] (dcc_trace_version) distcc 3.1 i686-pc-linux-gnu; built Dec  9 2009 14:07:11
> distcc[7865] (dcc_recursion_safeguard) safeguard level=0
> distcc[7865] (main) compiler name is "distcc"
> distcc[7865] (dcc_get_hostlist) read hosts from environment
> distcc[7865] (dcc_parse_hosts) found tcp token "192.168.1.20"
> distcc[7865] (dcc_parse_hosts) found tcp token "192.168.1.21"
> distcc[7865] (dcc_exit) exit: code 0; self: 0.000999 user 0.000000 sys; children: 0.000000 user 0.000000 sys
> distcc[7865] (dcc_cleanup_tempfiles_inner) deleted 0 temporary files
> distcc[7866] (dcc_trace_version) distcc 3.1 i686-pc-linux-gnu; built Dec  9 2009 14:07:11
> distcc[7866] (dcc_recursion_safeguard) safeguard level=0
> distcc[7866] (main) compiler name is "distcc"
> distcc[7866] (dcc_exit) exit: code 0; self: 0.000000 user 0.000000 sys; children: 0.000000 user 0.000000 sys
> distcc[7866] (dcc_cleanup_tempfiles_inner) deleted 0 temporary files
> distcc[7870] (dcc_trace_version) distcc 3.1 i686-pc-linux-gnu; built Dec  9 2009 14:07:11
> distcc[7870] (dcc_recursion_safeguard) safeguard level=0
> distcc[7870] (main) compiler name is "distcc"
> distcc[7870] (dcc_exit) exit: code 0; self: 0.000999 user 0.000000 sys; children: 0.000000 user 0.000000 sys
> distcc[7870] (dcc_cleanup_tempfiles_inner) deleted 0 temporary files
> distcc[7871] (dcc_trace_version) distcc 3.1 i686-pc-linux-gnu; built Dec  9 2009 14:07:11
> distcc[7871] (dcc_recursion_safeguard) safeguard level=0
> distcc[7871] (main) compiler name is "distcc"
> distcc[7871] (dcc_exit) exit: code 0; self: 0.000000 user 0.000000 sys; children: 0.000000 user 0.000000 sys
> distcc[7871] (dcc_cleanup_tempfiles_inner) deleted 0 temporary files
>
>
> distccd was started as:
> distccd -j 8 -P /var/tmp/distcc.pid --user=nobody -a 192.168.1.0/24 --log-file /var/log/distccd.log --log-level=debug --stats --daemon
>
>
> The remote machine's distccd log is the same as before:
> ~# tail -f /var/log/distccd.log
> distccd[23640] (dcc_detach) setsid to session 23640
> distccd[23640] (dcc_log_daemon_started) preforking daemon started (3.1 i686-pc-linux-gnu, built Dec  9 2009 14:07:11)
> distccd[23640] (dcc_create_kids) up to 1 children
> distccd[23640] (dcc_create_kids) up to 2 children
> distccd[23640] (dcc_create_kids) up to 3 children
> distccd[23640] (dcc_create_kids) up to 4 children
> distccd[23640] (dcc_create_kids) up to 5 children
> distccd[23640] (dcc_create_kids) up to 6 children
> distccd[23640] (dcc_create_kids) up to 7 children
> distccd[23640] (dcc_create_kids) up to 8 children
> distccd[23640] (dcc_listen_by_addr) listening on 0.0.0.0:3633
> distccd[23640] (dcc_stats_server) HTTP server started on port 3633
> distccd[23641] (dcc_check_client) connection from 192.168.1.10:56587
> distccd[23642] (dcc_check_client) connection from 192.168.1.10:45563
> distccd[23642] (dcc_check_address) match client 0xa01a8c0, value 0x1a8c0, mask 0xffffff
> distccd[23641] (dcc_check_address) match client 0xa01a8c0, value 0x1a8c0, mask 0xffffff
> distccd[23642] (dcc_readx) ERROR: unexpected eof on fd5
> distccd[23642] (dcc_r_token_int) ERROR: read failed while waiting for token "DIST"
> distccd[23641] (dcc_readx) ERROR: unexpected eof on fd5
> distccd[23642] (dcc_r_request_header) ERROR: client did not provide distcc magic fairy dust
> distccd[23641] (dcc_r_token_int) ERROR: read failed while waiting for token "DIST"
> distccd[23641] (dcc_r_request_header) ERROR: client did not provide distcc magic fairy dust
> distccd[23641] (dcc_cleanup_tempfiles_inner) deleted 3 temporary files
> distccd[23641] (dcc_job_summary) client: 192.168.1.10:56587 OTHER exit:0 sig:0 core:0 ret:108 time:0ms
> distccd[23642] (dcc_cleanup_tempfiles_inner) deleted 3 temporary files
> distccd[23642] (dcc_job_summary) client: 192.168.1.10:45563 OTHER exit:0 sig:0 core:0 ret:108 time:0ms
> distccd[23643] (dcc_check_client) connection from 192.168.1.10:56590
> distccd[23643] (dcc_check_address) match client 0xa01a8c0, value 0x1a8c0, mask 0xffffff
> distccd[23644] (dcc_check_client) connection from 192.168.1.10:45566
> distccd[23644] (dcc_check_address) match client 0xa01a8c0, value 0x1a8c0, mask 0xffffff
> distccd[23643] (dcc_readx) ERROR: unexpected eof on fd5
> distccd[23644] (dcc_readx) ERROR: unexpected eof on fd5
> distccd[23643] (dcc_r_token_int) ERROR: read failed while waiting for token "DIST"
> distccd[23644] (dcc_r_token_int) ERROR: read failed while waiting for token "DIST"
> distccd[23643] (dcc_r_request_header) ERROR: client did not provide distcc magic fairy dust
> distccd[23644] (dcc_r_request_header) ERROR: client did not provide distcc magic fairy dust
> distccd[23643] (dcc_cleanup_tempfiles_inner) deleted 3 temporary files
> distccd[23643] (dcc_job_summary) client: 192.168.1.10:56590 OTHER exit:0 sig:0 core:0 ret:108 time:0ms
> distccd[23644] (dcc_cleanup_tempfiles_inner) deleted 3 temporary files
> distccd[23644] (dcc_job_summary) client: 192.168.1.10:45566 OTHER exit:0 sig:0 core:0 ret:108 time:0ms
> distccd[23646] (dcc_check_client) connection from 192.168.1.10:39635
> distccd[23645] (dcc_check_client) connection from 192.168.1.10:55005
> distccd[23646] (dcc_check_address) match client 0xa01a8c0, value 0x1a8c0, mask 0xffffff
> distccd[23645] (dcc_check_address) match client 0xa01a8c0, value 0x1a8c0, mask 0xffffff
> distccd[23646] (dcc_readx) ERROR: unexpected eof on fd5
> distccd[23645] (dcc_readx) ERROR: unexpected eof on fd5
> distccd[23646] (dcc_r_token_int) ERROR: read failed while waiting for token "DIST"
> distccd[23645] (dcc_r_token_int) ERROR: read failed while waiting for token "DIST"
> distccd[23646] (dcc_r_request_header) ERROR: client did not provide distcc magic fairy dust
> distccd[23645] (dcc_r_request_header) ERROR: client did not provide distcc magic fairy dust
> distccd[23645] (dcc_cleanup_tempfiles_inner) deleted 3 temporary files
> distccd[23645] (dcc_job_summary) client: 192.168.1.10:55005 OTHER exit:0 sig:0 core:0 ret:108 time:0ms
> distccd[23646] (dcc_cleanup_tempfiles_inner) deleted 3 temporary files
> distccd[23646] (dcc_job_summary) client: 192.168.1.10:39635 OTHER exit:0 sig:0 core:0 ret:108 time:0ms
>
>
>
> - S
> _________________________________________________________________
> Hotmail: Trusted email with Microsoft’s powerful SPAM protection.
> http://clk.atdmt.com/GBL/go/177141664/direct/01/
>



-- 
Martin <http://launchpad.net/~mbp/>


More information about the distcc mailing list