Hi, I'm trying to make distcc work on two embedded system running linux on an arm arch. The problem I noticed is that if I export DISTCC_HOSTS='localhost/2 192.168.1.175/2' than no compiling process is send to the remote machine even if the remote address is recognized by distcc, as I see on the stderr setting DISTCC_VERBOSE=1. But if I export DISTCC_HOSTS='192.168.1.175/2 localhost/2' than compiling processes are only sent to the remote machine. It seems that distcc only uses the first entry in the DISTCC_HOSTS variable. The distccd command line I use is:
distccd --log-stderr -a 192.168.1.0/24 --verbose --user nobody --daemon The test packages I build are 'bc-1.06' and 'gmp-4.1.4' with 'make -j8'; a part of the make output looks like: [EMAIL PROTECTED]:~/build/bc-1.06# make -j8 make all-recursive make[1]: Entering directory `/root/build/bc-1.06' Making all in lib make[2]: Entering directory `/root/build/bc-1.06/lib' distcc -DHAVE_CONFIG_H -I. -I.. -I./../h -g -O2 -Wall -funsigned-char -c getopt.c distcc -DHAVE_CONFIG_H -I. -I.. -I./../h -g -O2 -Wall -funsigned-char -c getopt1.c distcc -DHAVE_CONFIG_H -I. -I.. -I./../h -g -O2 -Wall -funsigned-char -c vfprintf.c distcc -DHAVE_CONFIG_H -I. -I.. -I./../h -g -O2 -Wall -funsigned-char -c number.c distcc[2512] (dcc_trace_version) distcc 2.18.3 armv5tel-unknown-linux-gnu; built Jun 21 2005 13:14:21 distcc[2512] (dcc_recursion_safeguard) safeguard level=0 distcc[2512] (main) compiler name is "distcc" distcc[2512] (dcc_scan_args) scanning arguments: cc -DHAVE_CONFIG_H -I. -I.. -I./../h -g -O2 -Wall -funsigned-char -c getopt.c distcc[2512] (dcc_scan_args) found input file "getopt.c" distcc[2512] (dcc_scan_args) no visible output file, going to add "-o getopt.o" at end distcc[2512] compile from getopt.c to getopt.o distcc[2512] (dcc_get_hostlist) read hosts from environment distcc[2512] (dcc_parse_hosts) found localhost token "localhost/2" distcc[2512] (dcc_parse_hosts) found tcp token "192.168.1.175/2" distcc[2512] (dcc_lock_host) got cpu lock on localhost/2 slot 0 as fd3 distcc[2512] exec on localhost: cc -DHAVE_CONFIG_H -I. -I.. -I./../h -g -O2 -Wall -funsigned-char -c getopt.c -o getopt.o distcc[2512] (dcc_note_state) note state 5, file "getopt.c", host "localhost" distcc[2513] (dcc_trace_version) distcc 2.18.3 armv5tel-unknown-linux-gnu; built Jun 21 2005 13:14:21 distcc[2513] (dcc_recursion_safeguard) safeguard level=0 distcc[2513] (main) compiler name is "distcc" distcc[2513] (dcc_scan_args) scanning arguments: cc -DHAVE_CONFIG_H -I. -I.. -I./../h -g -O2 -Wall -funsigned-char -c getopt1.c distcc[2513] (dcc_scan_args) found input file "getopt1.c" distcc[2513] (dcc_scan_args) no visible output file, going to add "-o getopt1.o" at end distcc[2513] compile from getopt1.c to getopt1.o distcc[2513] (dcc_get_hostlist) read hosts from environment distcc[2513] (dcc_parse_hosts) found localhost token "localhost/2" distcc[2513] (dcc_parse_hosts) found tcp token "192.168.1.175/2" distcc[2513] (dcc_lock_host) got cpu lock on localhost/2 slot 0 as fd3 distcc[2513] exec on localhost: cc -DHAVE_CONFIG_H -I. -I.. -I./../h -g -O2 -Wall -funsigned-char -c getopt1.c -o getopt1.o distcc[2512] (dcc_spawn_child) forking to execute: cc -DHAVE_CONFIG_H -I. -I.. -I./../h -g -O2 -Wall -funsigned-char -c getopt.c -o getopt.o distcc[2513] (dcc_note_state) note state 5, file "getopt1.c", host "localhost" distcc[2516] (dcc_increment_safeguard) setting safeguard: _DISTCC_SAFEGUARD=1 distcc[2512] (dcc_spawn_child) child started as pid2516 distcc[2513] (dcc_spawn_child) forking to execute: cc -DHAVE_CONFIG_H -I. -I.. -I./../h -g -O2 -Wall -funsigned-char -c getopt1.c -o getopt1.o distcc[2517] (dcc_increment_safeguard) setting safeguard: _DISTCC_SAFEGUARD=1 distcc[2514] (dcc_trace_version) distcc 2.18.3 armv5tel-unknown-linux-gnu; built Jun 21 2005 13:14:21 distcc[2514] (dcc_recursion_safeguard) safeguard level=0 distcc[2514] (main) compiler name is "distcc" distcc[2514] (dcc_scan_args) scanning arguments: cc -DHAVE_CONFIG_H -I. -I.. -I./../h -g -O2 -Wall -funsigned-char -c vfprintf.c distcc[2514] (dcc_scan_args) found input file "vfprintf.c" distcc[2514] (dcc_scan_args) no visible output file, going to add "-o vfprintf.o" at end distcc[2514] compile from vfprintf.c to vfprintf.o distcc[2514] (dcc_get_hostlist) read hosts from environment distcc[2514] (dcc_parse_hosts) found localhost token "localhost/2" distcc[2514] (dcc_parse_hosts) found tcp token "192.168.1.175/2" distcc[2515] (dcc_trace_version) distcc 2.18.3 armv5tel-unknown-linux-gnu; built Jun 21 2005 13:14:21 distcc[2515] (dcc_recursion_safeguard) safeguard level=0 distcc[2515] (main) compiler name is "distcc" distcc[2514] (dcc_lock_host) got cpu lock on localhost/2 slot 0 as fd3 distcc[2514] exec on localhost: cc -DHAVE_CONFIG_H -I. -I.. -I./../h -g -O2 -Wall -funsigned-char -c vfprintf.c -o vfprintf.o distcc[2514] (dcc_note_state) note state 5, file "vfprintf.c", host "localhost" distcc[2515] (dcc_scan_args) scanning arguments: cc -DHAVE_CONFIG_H -I. -I.. -I./../h -g -O2 -Wall -funsigned-char -c number.c distcc[2515] (dcc_scan_args) found input file "number.c" distcc[2515] (dcc_scan_args) no visible output file, going to add "-o number.o" at end distcc[2515] compile from number.c to number.o distcc[2515] (dcc_get_hostlist) read hosts from environment distcc[2515] (dcc_parse_hosts) found localhost token "localhost/2" distcc[2515] (dcc_parse_hosts) found tcp token "192.168.1.175/2" distcc[2513] (dcc_spawn_child) child started as pid2517 distcc[2514] (dcc_spawn_child) forking to execute: cc -DHAVE_CONFIG_H -I. -I.. -I./../h -g -O2 -Wall -funsigned-char -c vfprintf.c -o vfprintf.o distcc[2518] (dcc_increment_safeguard) setting safeguard: _DISTCC_SAFEGUARD=1 distcc[2514] (dcc_spawn_child) child started as pid2518 distcc[2515] (dcc_lock_host) got cpu lock on localhost/2 slot 0 as fd3 distcc[2515] exec on localhost: cc -DHAVE_CONFIG_H -I. -I.. -I./../h -g -O2 -Wall -funsigned-char -c number.c -o number.o distcc[2515] (dcc_note_state) note state 5, file "number.c", host "localhost" distcc[2515] (dcc_spawn_child) forking to execute: cc -DHAVE_CONFIG_H -I. -I.. -I./../h -g -O2 -Wall -funsigned-char -c number.c -o number.o distcc[2522] (dcc_increment_safeguard) setting safeguard: _DISTCC_SAFEGUARD=1 distcc[2515] (dcc_spawn_child) child started as pid2522 distcc[2514] (dcc_collect_child) cc child 2518 terminated with status 0 distcc[2514] (dcc_collect_child) cc times: user 0.210000s, system 0.130000s, 1601 minflt, 0 majflt distcc[2514] compile vfprintf.c on localhost completed ok distcc[2514] elapsed compilation time 1.737794s distcc[2514] (dcc_exit) exit: code 0; self: 0.000000 user 0.040000 sys; children: 0.210000 user 0.130000 sys distcc[2514] (dcc_cleanup_tempfiles) deleted 0 temporary files distcc[2513] (dcc_collect_child) cc child 2517 terminated with status 0 distcc[2513] (dcc_collect_child) cc times: user 0.430000s, system 0.180000s, 1773 minflt, 0 majflt distcc[2513] compile getopt1.c on localhost completed ok distcc[2513] elapsed compilation time 1.872512s distcc[2513] (dcc_exit) exit: code 0; self: 0.010000 user 0.040000 sys; children: 0.430000 user 0.180000 sys distcc[2513] (dcc_cleanup_tempfiles) deleted 0 temporary files distcc[2512] (dcc_collect_child) cc child 2516 terminated with status 0 distcc[2512] (dcc_collect_child) cc times: user 0.470000s, system 0.190000s, 1776 minflt, 0 majflt distcc[2512] compile getopt.c on localhost completed ok distcc[2512] elapsed compilation time 1.985334s distcc[2512] (dcc_exit) exit: code 0; self: 0.010000 user 0.010000 sys; children: 0.470000 user 0.190000 sys distcc[2512] (dcc_cleanup_tempfiles) deleted 0 temporary files number.c: In function `bc_new_num': number.c:76: warning: implicit declaration of function `memset' number.c: In function `_one_mult': number.c:905: warning: implicit declaration of function `memcpy' number.c: In function `bc_out_long': number.c:1442: warning: implicit declaration of function `strlen' distcc[2515] (dcc_collect_child) cc child 2522 terminated with status 0 distcc[2515] (dcc_collect_child) cc times: user 9.090000s, system 0.460000s, 3180 minflt, 0 majflt distcc[2515] compile number.c on localhost completed ok distcc[2515] elapsed compilation time 11.389354s distcc[2515] (dcc_exit) exit: code 0; self: 0.000000 user 0.040000 sys; children: 9.090000 user 0.460000 sys distcc[2515] (dcc_cleanup_tempfiles) deleted 0 temporary files rm -f libbc.a ar cru libbc.a getopt.o getopt1.o vfprintf.o number.o ranlib libbc.a make[2]: Leaving directory `/root/build/bc-1.06/lib' Making all in bc make[2]: Entering directory `/root/build/bc-1.06/bc' distcc -DHAVE_CONFIG_H -I. -I. -I.. -I. -I./../h -g -O2 -Wall -funsigned-char -c main.c distcc -DHAVE_CONFIG_H -I. -I. -I.. -I. -I./../h -g -O2 -Wall -funsigned-char -c bc.c distcc -DHAVE_CONFIG_H -I. -I. -I.. -I. -I./../h -g -O2 -Wall -funsigned-char -c scan.c distcc -DHAVE_CONFIG_H -I. -I. -I.. -I. -I./../h -g -O2 -Wall -funsigned-char -c execute.c distcc[2533] (dcc_trace_version) distcc 2.18.3 armv5tel-unknown-linux-gnu; built Jun 21 2005 13:14:21 distcc[2533] (dcc_recursion_safeguard) safeguard level=0 distcc[2533] (main) compiler name is "distcc" distcc[2533] (dcc_scan_args) scanning arguments: cc -DHAVE_CONFIG_H -I. -I. -I.. -I. -I./../h -g -O2 -Wall -funsigned-char -c main.c distcc[2533] (dcc_scan_args) found input file "main.c" distcc[2533] (dcc_scan_args) no visible output file, going to add "-o main.o" at end distcc[2533] compile from main.c to main.o distcc[2533] (dcc_get_hostlist) read hosts from environment distcc[2533] (dcc_parse_hosts) found localhost token "localhost/2" distcc[2533] (dcc_parse_hosts) found tcp token "192.168.1.175/2" distcc -DHAVE_CONFIG_H -I. -I. -I.. -I. -I./../h -g -O2 -Wall -funsigned-char -c load.c distcc[2533] (dcc_lock_host) got cpu lock on localhost/2 slot 0 as fd3 distcc[2533] exec on localhost: cc -DHAVE_CONFIG_H -I. -I. -I.. -I. -I./../h -g -O2 -Wall -funsigned-char -c main.c -o main.o distcc[2533] (dcc_note_state) note state 5, file "main.c", host "localhost" distcc[2533] (dcc_spawn_child) forking to execute: cc -DHAVE_CONFIG_H -I. -I. -I.. -I. -I./../h -g -O2 -Wall -funsigned-char -c main.c -o main.o distcc[2538] (dcc_increment_safeguard) setting safeguard: _DISTCC_SAFEGUARD=1 distcc[2533] (dcc_spawn_child) child started as pid2538 distcc[2535] (dcc_trace_version) distcc 2.18.3 armv5tel-unknown-linux-gnu; built Jun 21 2005 13:14:21 distcc[2535] (dcc_recursion_safeguard) safeguard level=0 distcc[2535] (main) compiler name is "distcc" .... Thanks. giorgio Giorgio, [EMAIL PROTECTED] __ distcc mailing list http://distcc.samba.org/ To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/distcc