bec8 / distcc

Automatically exported from code.google.com/p/distcc
0 stars 0 forks source link

PUMP mode can`t PARSE the HOSTS #58

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hello. I have a problem with distcc`s PUMP mode. In normal mode it behaves 
OK. But when i add PUMP it fails miserably.

Platform: Linux Slackware 13, custom compiled kernel 2.6.31
Linux v0dka 2.6.31 #1 Sat Nov 21 18:08:29 EET 2009 i586 Pentium 75 - 200 
GenuineIntel GNU/Linux 
(yes it`s old :) but with distcc it is OK + it`s only a SVN mirror server)

gcc/cc 4.3.3
distcc version 3.1 (latest SVN build)

ALL Machines are the SAME Slackware install with the same glibc+gcc. The 
server machines are WinXP with VMWare, and linuxes are ran in virtual 
enviroment trough bridged network mode. All machines got PING to each other  
also i tried SSH to each other machine... no firewalls or whatsoever. So 
the ports are FREE and visible to any machine in the LOCAL network.

Here is what i do. I made a foo.c with only one line:

"#include <stdio.h>"

Then i write this:

pump distcc -c foo.c

And here are the logs:

distcc[2343] (dcc_trace_version) distcc 3.1 i586-pc-linux-gnu; built Nov 21 
2009 05:21:56
distcc[2343] (dcc_recursion_safeguard) safeguard level=0
distcc[2343] (main) compiler name is "distcc"
distcc[2343] (dcc_scan_args) scanning arguments: cc -c foo.c
distcc[2343] (dcc_scan_args) found input file "foo.c"
distcc[2343] (dcc_scan_args) no visible output file, going to add "-o 
foo.o" at end
distcc[2343] compile from foo.c to foo.o
distcc[2343] (dcc_get_hostlist) read hosts from environment
distcc[2343] (dcc_parse_hosts) Warning: $DISTCC_HOSTS contained no hosts; 
can't distribute work
distcc[2343] (dcc_build_somewhere) Warning: failed to distribute, running 
locally instead

and so on...

So, dcc_get_hostlist fails or it is the parse_hosts in hosts.c

Here is without pump mode

distcc[2370] (dcc_get_hostlist) read hosts from environment
distcc[2370] (dcc_parse_hosts) found tcp token "192.168.11.4:3103"
distcc[2370] (dcc_parse_hosts) found tcp token "192.168.0.3:3103"
distcc[2370] (dcc_lock_host) got cpu lock on 192.168.11.4:3103 slot 0 as 
fd4

..............

distcc[2370] 14416 bytes from foo.c compiled on 192.168.11.4 in 0.4490s, 
rate 31kB/s

Soo it is working in normal mode...

root@v0dka:/tmp# distcc --show-hosts
192.168.11.4:3103
192.168.0.3:3103

I have these 2 hosts in : export DISTCC_HOSTS, export 
DISTCC_POTENTIAL_HOSTS and in /usr/local/etc/distcc/hosts 

PUMP mode can`t read the hosts :((( With normal mode compiling latest 
kernel goes from ... 6-8 hours to just ~2 hours. Which is enormous for 90 
Mhz CPU and ~80 EDU Ram :)))) And i JUST wanna see what PUMP mode can do on 
that machine...
If someone got an idea, i`m opened for testing. Thank you!

Original issue reported on code.google.com by imperial...@gmail.com on 21 Nov 2009 at 5:31

GoogleCodeExporter commented 9 years ago
OOOK, i didn`t see the ,cpp, lzo thingies which i have to add after the host.

Original comment by imperial...@gmail.com on 21 Nov 2009 at 8:39

GoogleCodeExporter commented 9 years ago

Original comment by fergus.h...@gmail.com on 1 Dec 2009 at 4:34