Gentoo Archives: gentoo-user

From: krutny <krutny@×××××××××××.pl>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] stubborn distcc compile on localhost
Date: Wed, 01 Feb 2006 23:19:37
Message-Id: 43E1400C.5080103@poczta.onet.pl
In Reply to: Re: [gentoo-user] stubborn distcc compile on localhost by Dave Nebinger
1 Dave Nebinger wrote:
2
3 >> How is it shown file is compiled on localhost despite:
4 >>
5 >> halinka ~ # distcc-config --get-hosts
6 >> 192.168.0.2
7 >>
8 >> Where of course localhost != 192.168.0.2
9 >>
10 >> Any ideas what am I doing wrong ?
11 >
12 >
13 > I think you need to add a line to your compile hosts like:
14 >
15 > localhost/0
16 >
17 > I believe this informs distcc not to try to compile on the local host
18 > at all but use the remote hosts.
19 >
20 > Dave
21 >
22 Will be great but no effect :|
23
24 halinka disttestfield # distcc-config --set-hosts 192.168.0.2/1 localhost/0
25 halinka disttestfield # distcc-config --get-hosts
26 192.168.0.2 localhost/0
27 halinka disttestfield # /usr/lib/distcc/bin/gcc test.c
28 distcc[8705] (dcc_trace_version) distcc 2.18.3 i686-pc-linux-gnu; built
29 Feb 1 2006 00:53:26
30 distcc[8705] (dcc_recursion_safeguard) safeguard level=0
31 distcc[8705] (main) compiler name is "gcc"
32 distcc[8705] (dcc_support_masquerade) not modifying PATH
33 distcc[8705] (dcc_scan_args) scanning arguments: gcc test.c
34 distcc[8705] (dcc_scan_args) found input file "test.c"
35 distcc[8705] (dcc_scan_args) compiler apparently called not for compile
36 distcc[8705] (dcc_lock_host) got cpu lock on localhost slot 0 as fd3
37 distcc[8705] exec on localhost: gcc test.c
38 distcc[8705] (dcc_note_state) note state 5, file "test.c", host "localhost"
39 distcc[8705] (dcc_spawn_child) forking to execute: gcc test.c
40 distcc[8706] (dcc_increment_safeguard) setting safeguard:
41 _DISTCC_SAFEGUARD=1
42 distcc[8705] (dcc_spawn_child) child started as pid8706
43 distcc[8705] (dcc_collect_child) cc child 8706 terminated with status 0
44 distcc[8705] (dcc_collect_child) cc times: user 0.066989s, system
45 0.031995s, 2135 minflt, 0 majflt
46 distcc[8705] compile test.c on localhost completed ok
47 distcc[8705] elapsed compilation time 0.099775s
48 distcc[8705] (dcc_exit) exit: code 0; self: 0.000999 user 0.002999 sys;
49 children: 0.066989 user 0.031995 sys
50 distcc[8705] (dcc_cleanup_tempfiles) deleted 0 temporary files
51
52 Greetings,
53 krutny
54 --
55 gentoo-user@g.o mailing list