Re: How to correctly confirm if Distcc is setup correctly.

anish anil via distcc <[email protected]> Mon, 10 May 2021 18:51:52 +0530
Newsgroups gmane.comp.compilers.distcc
Message-ID <CANRm2KN4z-T5n069E08jVEyHKFfPAmsJC50DCZr+=FpxNhGb4g@mail.gmail.com>
--===============8952306654288026596==
Content-Type: multipart/alternative; boundary="000000000000cdab8305c1f9a912"

--000000000000cdab8305c1f9a912
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

Ok. Done that and now getting bigger error:

*****************Two Servers that needs to be part of build
operation*************************
 export DISTCC_POTENTIAL_HOSTS=3D'localhost 172.31.33.11 172.31.37.109'

&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
root@ip-172-31-24-96:/data/cprg# ssh -i ~/.ssh/id_rsa [email protected]
The authenticity of host '172.31.37.109 (172.31.37.109)' can't be
established.
ECDSA key fingerprint is SHA256:DrHW8z3HJdRn8lJ5fD26lRv7oGGOQ2ZjroFBEAhJuwA=
.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '172.31.37.109' (ECDSA) to the list of known
hosts.
Welcome to Ubuntu 18.04.5 LTS (GNU/Linux 5.4.0-1045-aws x86_64)

 * Documentation:  https://help.ubuntu.com
 * Management:     https://landscape.canonical.com
 * Support:        https://ubuntu.com/advantage

  System information as of Mon May 10 13:14:14 UTC 2021

  System load:  0.0               Processes:           102
  Usage of /:   9.5% of 19.32GB   Users logged in:     1
  Memory usage: 26%               IP address for eth0: 172.31.37.109
  Swap usage:   0%

 * Pure upstream Kubernetes 1.21, smallest, simplest cluster ops!

     https://microk8s.io/

 * Canonical Livepatch is available for installation.
   - Reduce system reboots and improve kernel security. Activate at:
     https://ubuntu.com/livepatch

*** System restart required ***

The programs included with the Ubuntu system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by
applicable law.

root@ip-172-31-37-109:~# distcc --version
distcc 3.3.5 x86_64-pc-linux-gnu
  (protocols 1, 2 and 3) (default port 3632)
  built May 10 2021 10:03:07
Copyright (C) 2002, 2003, 2004 by Martin Pool.
Includes miniLZO (C) 1996-2002 by Markus Franz Xaver Johannes Oberhumer.
Portions Copyright (C) 2007-2008 Google.

distcc comes with ABSOLUTELY NO WARRANTY.  distcc is free software, and
you may use, modify and redistribute it under the terms of the GNU
General Public License version 2 or later.

Please report bugs to [email protected]
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
root@ip-172-31-24-96:/data/cprg# ssh -i ~/.ssh/id_rsa [email protected]
Welcome to Ubuntu 18.04.5 LTS (GNU/Linux 5.4.0-1045-aws x86_64)

 * Documentation:  https://help.ubuntu.com
 * Management:     https://landscape.canonical.com
 * Support:        https://ubuntu.com/advantage

  System information as of Mon May 10 13:15:07 UTC 2021

  System load:  0.0               Processes:           102
  Usage of /:   9.5% of 19.32GB   Users logged in:     1
  Memory usage: 26%               IP address for eth0: 172.31.33.11
  Swap usage:   0%

 * Pure upstream Kubernetes 1.21, smallest, simplest cluster ops!

     https://microk8s.io/

 * Canonical Livepatch is available for installation.
   - Reduce system reboots and improve kernel security. Activate at:
     https://ubuntu.com/livepatch



New release '20.04.2 LTS' available.
Run 'do-release-upgrade' to upgrade to it.


*** System restart required ***
Last login: Mon May 10 13:13:45 2021 from 172.31.24.96
root@ip-172-31-33-11:~# distcc --versin
x86_64-linux-gnu-gcc: error: unrecognized command line option =E2=80=98--ve=
rsin=E2=80=99;
did you mean =E2=80=98--version=E2=80=99?
x86_64-linux-gnu-gcc: fatal error: no input files
compilation terminated.
distcc[16261] ERROR: compile (null) on localhost failed
root@ip-172-31-33-11:~# distcc --version
distcc 3.3.5 x86_64-pc-linux-gnu
  (protocols 1, 2 and 3) (default port 3632)
  built May 10 2021 10:03:12
Copyright (C) 2002, 2003, 2004 by Martin Pool.
Includes miniLZO (C) 1996-2002 by Markus Franz Xaver Johannes Oberhumer.
Portions Copyright (C) 2007-2008 Google.

distcc comes with ABSOLUTELY NO WARRANTY.  distcc is free software, and
you may use, modify and redistribute it under the terms of the GNU
General Public License version 2 or later.

Please report bugs to [email protected]

root@ip-172-31-33-11:~# exit
logout
Connection to 172.31.33.11 closed.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


Ran a build now it gives me the perfect error which I'm unable to debug:

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
root@ip-172-31-24-96:/data/cprg# pump make -j8 CC=3Ddistcc --debug
__________Using distcc-pump from /usr/local/bin
__________Found 1 available distcc servers
GNU Make 4.1
Built for x86_64-pc-linux-gnu
Copyright (C) 1988-2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.htm=
l
>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Reading makefiles...
Updating goal targets....
 File 'all' does not exist.
   File 'hello.exe' does not exist.
     File 'hello.o' does not exist.
    Must remake target 'hello.o'.
distcc -c hello.c
distcc[1069] (dcc_readx) ERROR: failed to read: Connection reset by peer
distcc[1069] (dcc_r_token_int) ERROR: read failed while waiting for token
"DONE"
distcc[1069] (dcc_r_result_header) ERROR: server provided no answer. Is the
server configured to allow access from your IP address? Is the server
performing authentication and your client isn't? Does the server have the
compiler installed? Is the server configured to access the compiler?
distcc[1069] Warning: failed to distribute hello.c to localhost,cpp,lzo,
running locally instead
 File 'all' does not exist.
   File 'hello.exe' does not exist.
  Must remake target 'hello.exe'.
distcc -o hello.exe hello.o
 File 'all' does not exist.
Must remake target 'all'.
Successfully remade target file 'all'.
__________Shutting down distcc-pump include server
root@ip-172-31-24-96:/data/cprg# ping 172.31.33.11
PING 172.31.33.11 (172.31.33.11) 56(84) bytes of data.
64 bytes from 172.31.33.11: icmp_seq=3D1 ttl=3D64 time=3D0.536 ms
64 bytes from 172.31.33.11: icmp_seq=3D2 ttl=3D64 time=3D0.576 ms
64 bytes from 172.31.33.11: icmp_seq=3D3 ttl=3D64 time=3D0.587 ms
64 bytes from 172.31.33.11: icmp_seq=3D4 ttl=3D64 time=3D0.575 ms
64 bytes from 172.31.33.11: icmp_seq=3D5 ttl=3D64 time=3D0.620 ms
64 bytes from 172.31.33.11: icmp_seq=3D6 ttl=3D64 time=3D0.542 ms
64 bytes from 172.31.33.11: icmp_seq=3D7 ttl=3D64 time=3D0.539 ms
^C
--- 172.31.33.11 ping statistics ---
7 packets transmitted, 7 received, 0% packet loss, time 6150ms
rtt min/avg/max/mdev =3D 0.536/0.567/0.620/0.042 ms
root@ip-172-31-24-96:/data/cprg# ping 172.31.37.109
PING 172.31.37.109 (172.31.37.109) 56(84) bytes of data.
64 bytes from 172.31.37.109: icmp_seq=3D1 ttl=3D64 time=3D0.575 ms
64 bytes from 172.31.37.109: icmp_seq=3D2 ttl=3D64 time=3D0.666 ms
64 bytes from 172.31.37.109: icmp_seq=3D3 ttl=3D64 time=3D0.608 ms
^C
--- 172.31.37.109 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2025ms
rtt min/avg/max/mdev =3D 0.575/0.616/0.666/0.042 ms
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Any leads,

Thank you



On Mon, May 10, 2021 at 6:19 PM Fergus Henderson <[email protected]> wrote:

> In your Makefile, change all occurrences of "gcc" to "$(CC)".
>
> On Mon, 10 May 2021 at 13:19, anish anil <[email protected]> wrote:
>
>> Hello Henderson,
>>
>> Thank you for that lead, I changed the code by reading through the code
>> mentioned at
>>
>> https://www3.ntu.edu.sg/home/ehchua/programming/cpp/gcc_make.html#zz-2.1
>>
>> Now created the sample example and did the following
>> **********
>> // hello.c
>> #include <stdio.h>
>>
>> int main() {
>>     printf("Hello, world!\n");
>>     return 0;
>> }
>> **********
>>
>> Make file with the below contents:
>>
>> ***************
>> all: hello.exe
>>
>> hello.exe: hello.o
>>          gcc -o hello.exe hello.o
>>
>> hello.o: hello.c
>>          gcc -c hello.c
>>
>> clean:
>>          rm hello.o hello.exe
>> ****************
>>
>> Ran the build withe the make file using the below command:
>>
>> ******************
>> root@ip-172-31-24-96:/data/cprg# ls
>> hello.c  makefile
>> root@ip-172-31-24-96:/data/cprg# pump make -j8 CC=3Ddistcc --debug
>> __________Using distcc-pump from /usr/local/bin
>> __________Found 2 available distcc servers
>> GNU Make 4.1
>> Built for x86_64-pc-linux-gnu
>> Copyright (C) 1988-2014 Free Software Foundation, Inc.
>> License GPLv3+: GNU GPL version 3 or later <
>> http://gnu.org/licenses/gpl.html>
>> This is free software: you are free to change and redistribute it.
>> There is NO WARRANTY, to the extent permitted by law.
>> Reading makefiles...
>> Updating goal targets....
>>  File 'all' does not exist.
>>    File 'hello.exe' does not exist.
>>      File 'hello.o' does not exist.
>>     Must remake target 'hello.o'.
>> gcc -c hello.c
>>  File 'all' does not exist.
>>    File 'hello.exe' does not exist.
>>   Must remake target 'hello.exe'.
>> gcc -o hello.exe hello.o
>>  File 'all' does not exist.
>> Must remake target 'all'.
>> Successfully remade target file 'all'.
>> __________Shutting down distcc-pump include server
>> root@ip-172-31-24-96:/data/cprg# ls -la
>> total 32
>> drwxr-xr-x 2 root root 4096 May 10 11:51 .
>> drwxr-xr-x 5 root root 4096 May 10 11:48 ..
>> -rw-r--r-- 1 root root   92 May 10 11:48 hello.c
>> -rwxr-xr-x 1 root root 8304 May 10 11:51 hello.exe
>> -rw-r--r-- 1 root root 1544 May 10 11:51 hello.o
>> -rw-r--r-- 1 root root  133 May 10 11:49 makefile
>> root@ip-172-31-24-96:/data/cprg# vi hello.c
>> root@ip-172-31-24-96:/data/cprg# vi makefile
>> root@ip-172-31-24-96:/data/cprg#
>> ******************
>>
>> So here it looks like it has build correctly, But I'm yet to ascertain,
>> If all the servers were really used during the compile operation which
>> lands me back to the original question.
>>
>> Thank you,
>> Anish
>>
>> On Mon, May 10, 2021 at 5:08 PM Fergus Henderson <[email protected]>
>> wrote:
>>
>>> Your makefile is not doing any actual C or C++ compilation. If you want
>>> to test whether distcc is set up correctly, you need to actually compil=
e
>>> something.
>>>
>>> On Mon, 10 May 2021, 12:33 anish anil via distcc, <
>>> [email protected]> wrote:
>>>
>>>> I'm first time using distcc and have gone through the Readme.
>>>>
>>>> To setup I have three Ubuntu Servers: Master and Client:
>>>>
>>>> As per the readme it sound like we need to install them on all theree
>>>> machines. which i have completed.
>>>> https://github.com/distcc/distcc/blob/master/INSTALL
>>>>
>>>> Ran the command on all three servers:
>>>>
>>>> sudo apt-get install gcc make python3 python3-dev libiberty-dev
>>>>
>>>> ./autogen.sh ./configure make install
>>>>
>>>> They completed without any errors.
>>>>
>>>> Create ssh keys across the three machines and added then to the
>>>> authorized host section. Did a ssh and confirmed they are able to logi=
n
>>>> from the master to the Agent systems without any password
>>>>
>>>> Now from the Master Server i ran the below pointing two the two client=
s:
>>>>
>>>> Export DISTCC_POTENTIAL_HOSTS=3D'localhost 172.31.33.11 172.31.37.109'
>>>>
>>>> Created a hello world make file:
>>>>
>>>>     #.DEFAULT_GOAL :=3D generate
>>>>     .PHONY: all say_hello generate clean
>>>>
>>>>     all: say_hello generate
>>>>
>>>>     say_hello:
>>>>             @echo "Hello World"
>>>>
>>>>     generate:
>>>>             @echo "Creating empty text files..."
>>>>             touch file-{1..10}.txt
>>>>
>>>>     clean:
>>>>             @echo "Cleaning up....."
>>>>             rm -f *.txt
>>>>
>>>> Ran a build using the below command
>>>>
>>>>  make
>>>>  Hello World
>>>>  Creating empty text files...
>>>>  touch file-{1..10}.txt
>>>>  root@ip-172-31-24-96:/data/helloworls#
>>>>
>>>> So here it does look to have worked as expected.
>>>>
>>>> Ran the command as specified in the documentation:
>>>>
>>>> pump make -j40 CC=3D"distcc gcc" --debug
>>>> __________Using distcc-pump from /usr/local/bin
>>>> __________Found 1 available distcc servers
>>>> GNU Make 4.1
>>>> Built for x86_64-pc-linux-gnu
>>>> Copyright (C) 1988-2014 Free Software Foundation, Inc.
>>>> License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gp=
l.html>
>>>> This is free software: you are free to change and redistribute it.
>>>> There is NO WARRANTY, to the extent permitted by law.
>>>> Reading makefiles...
>>>> Updating goal targets....
>>>>  File 'all' does not exist.
>>>>    File 'say_hello' does not exist.
>>>>   Must remake target 'say_hello'.
>>>>    File 'generate' does not exist.
>>>>   Must remake target 'generate'.
>>>> Hello World
>>>> Creating empty text files...
>>>> touch file-{1..10}.txt
>>>>  File 'all' does not exist.
>>>>  File 'all' does not exist.
>>>> Must remake target 'all'.
>>>> Successfully remade target file 'all'.
>>>> __________Shutting down distcc-pump include server
>>>> root@ip-172-31-24-96:/data/helloworls# ls
>>>> Makefile  file-{1..10}.txt
>>>> root@ip-172-31-24-96:/data/helloworls#
>>>>
>>>> Question:
>>>>
>>>> 1> How do we really know that the two client servers have been used du=
ring this build
>>>> 2> Is setting the client servers same as that of the master, If no is =
there a difference
>>>> 3> How do we see the UI distcc Monitor
>>>> 4> How can i join a range of machines which does not have DistCC insta=
lled
>>>>
>>>> Thank you
>>>> __
>>>> distcc mailing list            http://distcc.samba.org/
>>>> To unsubscribe or change options:
>>>> https://lists.samba.org/mailman/listinfo/distcc
>>>>
>>>
>
> --
> Fergus Henderson <[email protected]>
>

--000000000000cdab8305c1f9a912
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div>Ok. Done that and now getting bigger error:</div><div=
><br></div><div>*****************Two Servers that needs to be part of build=
 operation*************************</div><div>=C2=A0export DISTCC_POTENTIAL=
_HOSTS=3D&#39;localhost 172.31.33.11 172.31.37.109&#39;</div><div><br></div=
><div>&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp=
;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp=
;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp=
;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp=
;&amp;&amp;&amp;&amp;&amp;&amp;</div><div>root@ip-172-31-24-96:/data/cprg# =
ssh -i ~/.ssh/id_rsa <a href=3D"mailto:[email protected]">[email protected]=
09</a><br>The authenticity of host &#39;172.31.37.109 (172.31.37.109)&#39; =
can&#39;t be established.<br>ECDSA key fingerprint is SHA256:DrHW8z3HJdRn8l=
J5fD26lRv7oGGOQ2ZjroFBEAhJuwA.<br>Are you sure you want to continue connect=
ing (yes/no)? yes<br>Warning: Permanently added &#39;172.31.37.109&#39; (EC=
DSA) to the list of known hosts.<br>Welcome to Ubuntu 18.04.5 LTS (GNU/Linu=
x 5.4.0-1045-aws x86_64)<br><br>=C2=A0* Documentation: =C2=A0<a href=3D"htt=
ps://help.ubuntu.com">https://help.ubuntu.com</a><br>=C2=A0* Management: =
=C2=A0 =C2=A0 <a href=3D"https://landscape.canonical.com">https://landscape=
.canonical.com</a><br>=C2=A0* Support: =C2=A0 =C2=A0 =C2=A0 =C2=A0<a href=
=3D"https://ubuntu.com/advantage">https://ubuntu.com/advantage</a><br><br>=
=C2=A0 System information as of Mon May 10 13:14:14 UTC 2021<br><br>=C2=A0 =
System load: =C2=A00.0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 Pro=
cesses: =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 102<br>=C2=A0 Usage of /: =C2=A0=
 9.5% of 19.32GB =C2=A0 Users logged in: =C2=A0 =C2=A0 1<br>=C2=A0 Memory u=
sage: 26% =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 IP address for e=
th0: 172.31.37.109<br>=C2=A0 Swap usage: =C2=A0 0%<br><br>=C2=A0* Pure upst=
ream Kubernetes 1.21, smallest, simplest cluster ops!<br><br>=C2=A0 =C2=A0 =
=C2=A0<a href=3D"https://microk8s.io/">https://microk8s.io/</a><br><br>=C2=
=A0* Canonical Livepatch is available for installation.<br>=C2=A0 =C2=A0- R=
educe system reboots and improve kernel security. Activate at:<br>=C2=A0 =
=C2=A0 =C2=A0<a href=3D"https://ubuntu.com/livepatch">https://ubuntu.com/li=
vepatch</a><br><br>*** System restart required ***<br><br>The programs incl=
uded with the Ubuntu system are free software;<br>the exact distribution te=
rms for each program are described in the<br>individual files in /usr/share=
/doc/*/copyright.<br><br>Ubuntu comes with ABSOLUTELY NO WARRANTY, to the e=
xtent permitted by<br>applicable law.<br><br>root@ip-172-31-37-109:~# distc=
c --version<br>distcc 3.3.5 x86_64-pc-linux-gnu<br>=C2=A0 (protocols 1, 2 a=
nd 3) (default port 3632)<br>=C2=A0 built May 10 2021 10:03:07<br>Copyright=
 (C) 2002, 2003, 2004 by Martin Pool.<br>Includes miniLZO (C) 1996-2002 by =
Markus Franz Xaver Johannes Oberhumer.<br>Portions Copyright (C) 2007-2008 =
Google.<br><br>distcc comes with ABSOLUTELY NO WARRANTY. =C2=A0distcc is fr=
ee software, and<br>you may use, modify and redistribute it under the terms=
 of the GNU<br>General Public License version 2 or later.<br><br>Please rep=
ort bugs to <a href=3D"mailto:[email protected]">[email protected]=
g</a><br>
&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;=
&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;=
&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;=
&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;=
&amp;&amp;&amp;&amp;&amp; <br></div><div>%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%=
%%%%%%%%%%%%%%%</div><div>root@ip-172-31-24-96:/data/cprg# ssh -i ~/.ssh/id=
_rsa <a href=3D"mailto:[email protected]">[email protected]</a><br>Welcome =
to Ubuntu 18.04.5 LTS (GNU/Linux 5.4.0-1045-aws x86_64)<br><br>=C2=A0* Docu=
mentation: =C2=A0<a href=3D"https://help.ubuntu.com">https://help.ubuntu.co=
m</a><br>=C2=A0* Management: =C2=A0 =C2=A0 <a href=3D"https://landscape.can=
onical.com">https://landscape.canonical.com</a><br>=C2=A0* Support: =C2=A0 =
=C2=A0 =C2=A0 =C2=A0<a href=3D"https://ubuntu.com/advantage">https://ubuntu=
.com/advantage</a><br><br>=C2=A0 System information as of Mon May 10 13:15:=
07 UTC 2021<br><br>=C2=A0 System load: =C2=A00.0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A0 =C2=A0 =C2=A0 Processes: =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 102<=
br>=C2=A0 Usage of /: =C2=A0 9.5% of 19.32GB =C2=A0 Users logged in: =C2=A0=
 =C2=A0 1<br>=C2=A0 Memory usage: 26% =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =
=C2=A0 =C2=A0 IP address for eth0: 172.31.33.11<br>=C2=A0 Swap usage: =C2=
=A0 0%<br><br>=C2=A0* Pure upstream Kubernetes 1.21, smallest, simplest clu=
ster ops!<br><br>=C2=A0 =C2=A0 =C2=A0<a href=3D"https://microk8s.io/">https=
://microk8s.io/</a><br><br>=C2=A0* Canonical Livepatch is available for ins=
tallation.<br>=C2=A0 =C2=A0- Reduce system reboots and improve kernel secur=
ity. Activate at:<br>=C2=A0 =C2=A0 =C2=A0<a href=3D"https://ubuntu.com/live=
patch">https://ubuntu.com/livepatch</a><br><br><br><br>New release &#39;20.=
04.2 LTS&#39; available.<br>Run &#39;do-release-upgrade&#39; to upgrade to =
it.<br><br><br>*** System restart required ***<br>Last login: Mon May 10 13=
:13:45 2021 from 172.31.24.96<br>root@ip-172-31-33-11:~# distcc --versin<br=
>x86_64-linux-gnu-gcc: error: unrecognized command line option =E2=80=98--v=
ersin=E2=80=99; did you mean =E2=80=98--version=E2=80=99?<br>x86_64-linux-g=
nu-gcc: fatal error: no input files<br>compilation terminated.<br>distcc[16=
261] ERROR: compile (null) on localhost failed<br>root@ip-172-31-33-11:~# d=
istcc --version<br>distcc 3.3.5 x86_64-pc-linux-gnu<br>=C2=A0 (protocols 1,=
 2 and 3) (default port 3632)<br>=C2=A0 built May 10 2021 10:03:12<br>Copyr=
ight (C) 2002, 2003, 2004 by Martin Pool.<br>Includes miniLZO (C) 1996-2002=
 by Markus Franz Xaver Johannes Oberhumer.<br>Portions Copyright (C) 2007-2=
008 Google.<br><br>distcc comes with ABSOLUTELY NO WARRANTY. =C2=A0distcc i=
s free software, and<br>you may use, modify and redistribute it under the t=
erms of the GNU<br>General Public License version 2 or later.<br><br>Please=
 report bugs to <a href=3D"mailto:[email protected]">[email protected]=
a.org</a><br><br>root@ip-172-31-33-11:~# exit<br>logout<br>Connection to 17=
2.31.33.11 closed.<br></div><div>%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%=
%%%%%%%</div><div><br></div><div><br></div><div>Ran a build now it gives me=
 the perfect error which I&#39;m unable to debug:</div><div><br></div><div>=
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@</div><div>root@ip-172-31-2=
4-96:/data/cprg# pump make -j8 CC=3Ddistcc --debug<br>__________Using distc=
c-pump from /usr/local/bin<br>__________Found 1 available distcc servers<br=
>GNU Make 4.1<br>Built for x86_64-pc-linux-gnu<br>Copyright (C) 1988-2014 F=
ree Software Foundation, Inc.<br>License GPLv3+: GNU GPL version 3 or later=
 &lt;<a href=3D"http://gnu.org/licenses/gpl.html">http://gnu.org/licenses/g=
pl.html</a>&gt;<br>This is free software: you are free to change and redist=
ribute it.<br>There is NO WARRANTY, to the extent permitted by law.<br>Read=
ing makefiles...<br>Updating goal targets....<br>=C2=A0File &#39;all&#39; d=
oes not exist.<br>=C2=A0 =C2=A0File &#39;hello.exe&#39; does not exist.<br>=
=C2=A0 =C2=A0 =C2=A0File &#39;hello.o&#39; does not exist.<br>=C2=A0 =C2=A0=
 Must remake target &#39;hello.o&#39;.<br>distcc -c hello.c<br>distcc[1069]=
 (dcc_readx) ERROR: failed to read: Connection reset by peer<br>distcc[1069=
] (dcc_r_token_int) ERROR: read failed while waiting for token &quot;DONE&q=
uot;<br>distcc[1069] (dcc_r_result_header) ERROR: server provided no answer=
. Is the server configured to allow access from your IP address? Is the ser=
ver performing authentication and your client isn&#39;t? Does the server ha=
ve the compiler installed? Is the server configured to access the compiler?=
<br>distcc[1069] Warning: failed to distribute hello.c to localhost,cpp,lzo=
, running locally instead<br>=C2=A0File &#39;all&#39; does not exist.<br>=
=C2=A0 =C2=A0File &#39;hello.exe&#39; does not exist.<br>=C2=A0 Must remake=
 target &#39;hello.exe&#39;.<br>distcc -o hello.exe hello.o<br>=C2=A0File &=
#39;all&#39; does not exist.<br>Must remake target &#39;all&#39;.<br>Succes=
sfully remade target file &#39;all&#39;.<br>__________Shutting down distcc-=
pump include server<br>root@ip-172-31-24-96:/data/cprg# ping 172.31.33.11<b=
r>PING 172.31.33.11 (172.31.33.11) 56(84) bytes of data.<br>64 bytes from <=
a href=3D"http://172.31.33.11">172.31.33.11</a>: icmp_seq=3D1 ttl=3D64 time=
=3D0.536 ms<br>64 bytes from <a href=3D"http://172.31.33.11">172.31.33.11</=
a>: icmp_seq=3D2 ttl=3D64 time=3D0.576 ms<br>64 bytes from <a href=3D"http:=
//172.31.33.11">172.31.33.11</a>: icmp_seq=3D3 ttl=3D64 time=3D0.587 ms<br>=
64 bytes from <a href=3D"http://172.31.33.11">172.31.33.11</a>: icmp_seq=3D=
4 ttl=3D64 time=3D0.575 ms<br>64 bytes from <a href=3D"http://172.31.33.11"=
>172.31.33.11</a>: icmp_seq=3D5 ttl=3D64 time=3D0.620 ms<br>64 bytes from <=
a href=3D"http://172.31.33.11">172.31.33.11</a>: icmp_seq=3D6 ttl=3D64 time=
=3D0.542 ms<br>64 bytes from <a href=3D"http://172.31.33.11">172.31.33.11</=
a>: icmp_seq=3D7 ttl=3D64 time=3D0.539 ms<br>^C<br>--- 172.31.33.11 ping st=
atistics ---<br>7 packets transmitted, 7 received, 0% packet loss, time 615=
0ms<br>rtt min/avg/max/mdev =3D 0.536/0.567/0.620/0.042 ms<br>root@ip-172-3=
1-24-96:/data/cprg# ping 172.31.37.109<br>PING 172.31.37.109 (172.31.37.109=
) 56(84) bytes of data.<br>64 bytes from <a href=3D"http://172.31.37.109">1=
72.31.37.109</a>: icmp_seq=3D1 ttl=3D64 time=3D0.575 ms<br>64 bytes from <a=
 href=3D"http://172.31.37.109">172.31.37.109</a>: icmp_seq=3D2 ttl=3D64 tim=
e=3D0.666 ms<br>64 bytes from <a href=3D"http://172.31.37.109">172.31.37.10=
9</a>: icmp_seq=3D3 ttl=3D64 time=3D0.608 ms<br>^C<br>--- 172.31.37.109 pin=
g statistics ---<br>3 packets transmitted, 3 received, 0% packet loss, time=
 2025ms<br>rtt min/avg/max/mdev =3D 0.575/0.616/0.666/0.042 ms</div><div>@@=
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@</div><div><br></div><div>Any=
 leads,</div><div><br></div><div>Thank you<br></div><div><br></div><div><br=
></div></div><br><div class=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail=
_attr">On Mon, May 10, 2021 at 6:19 PM Fergus Henderson &lt;<a href=3D"mail=
to:[email protected]">[email protected]</a>&gt; wrote:<br></div><blockquote=
 class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px so=
lid rgb(204,204,204);padding-left:1ex"><div dir=3D"ltr">In your Makefile, c=
hange all occurrences of &quot;gcc&quot; to &quot;$(CC)&quot;.</div><br><di=
v class=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail_attr">On Mon, 10 Ma=
y 2021 at 13:19, anish anil &lt;<a href=3D"mailto:[email protected]" t=
arget=3D"_blank">[email protected]</a>&gt; wrote:<br></div><blockquote=
 class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px so=
lid rgb(204,204,204);padding-left:1ex"><div dir=3D"ltr"><div>Hello Henderso=
n,</div><div><br></div><div>Thank you for that lead, I changed the code by =
reading through the code mentioned at <br></div><div><br></div><div><a href=
=3D"https://www3.ntu.edu.sg/home/ehchua/programming/cpp/gcc_make.html#zz-2.=
1" target=3D"_blank">https://www3.ntu.edu.sg/home/ehchua/programming/cpp/gc=
c_make.html#zz-2.1</a></div><div><br></div><div>Now created the sample exam=
ple and did the following</div><div>**********</div><div>// hello.c<br>#inc=
lude &lt;stdio.h&gt;<br><br>int main() {<br>=C2=A0 =C2=A0 printf(&quot;Hell=
o, world!\n&quot;);<br>=C2=A0 =C2=A0 return 0;<br>}</div><div>**********</d=
iv><div><br></div><div>Make file with the below contents:</div><div><br></d=
iv><div>***************</div><div>all: hello.exe<br><br>hello.exe: hello.o<=
br>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0gcc -o hello.exe hello.o<br><br>hello.=
o: hello.c<br>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0gcc -c hello.c<br><br>clean=
:<br>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0rm hello.o hello.exe</div><div>*****=
***********</div><div><br></div><div>Ran the build withe the make file usin=
g the below command:</div><div><br></div><div>******************</div><div>=
root@ip-172-31-24-96:/data/cprg# ls<br>hello.c =C2=A0makefile<br>root@ip-17=
2-31-24-96:/data/cprg# pump make -j8 CC=3Ddistcc --debug<br>__________Using=
 distcc-pump from /usr/local/bin<br>__________Found 2 available distcc serv=
ers<br>GNU Make 4.1<br>Built for x86_64-pc-linux-gnu<br>Copyright (C) 1988-=
2014 Free Software Foundation, Inc.<br>License GPLv3+: GNU GPL version 3 or=
 later &lt;<a href=3D"http://gnu.org/licenses/gpl.html" target=3D"_blank">h=
ttp://gnu.org/licenses/gpl.html</a>&gt;<br>This is free software: you are f=
ree to change and redistribute it.<br>There is NO WARRANTY, to the extent p=
ermitted by law.<br>Reading makefiles...<br>Updating goal targets....<br>=
=C2=A0File &#39;all&#39; does not exist.<br>=C2=A0 =C2=A0File &#39;hello.ex=
e&#39; does not exist.<br>=C2=A0 =C2=A0 =C2=A0File &#39;hello.o&#39; does n=
ot exist.<br>=C2=A0 =C2=A0 Must remake target &#39;hello.o&#39;.<br>gcc -c =
hello.c<br>=C2=A0File &#39;all&#39; does not exist.<br>=C2=A0 =C2=A0File &#=
39;hello.exe&#39; does not exist.<br>=C2=A0 Must remake target &#39;hello.e=
xe&#39;.<br>gcc -o hello.exe hello.o<br>=C2=A0File &#39;all&#39; does not e=
xist.<br>Must remake target &#39;all&#39;.<br>Successfully remade target fi=
le &#39;all&#39;.<br>__________Shutting down distcc-pump include server<br>=
root@ip-172-31-24-96:/data/cprg# ls -la<br>total 32<br>drwxr-xr-x 2 root ro=
ot 4096 May 10 11:51 .<br>drwxr-xr-x 5 root root 4096 May 10 11:48 ..<br>-r=
w-r--r-- 1 root root =C2=A0 92 May 10 11:48 hello.c<br>-rwxr-xr-x 1 root ro=
ot 8304 May 10 11:51 hello.exe<br>-rw-r--r-- 1 root root 1544 May 10 11:51 =
hello.o<br>-rw-r--r-- 1 root root =C2=A0133 May 10 11:49 makefile<br>root@i=
p-172-31-24-96:/data/cprg# vi hello.c<br>root@ip-172-31-24-96:/data/cprg# v=
i makefile<br>root@ip-172-31-24-96:/data/cprg#<br></div><div>**************=
****<br></div><div><br></div><div>So here it looks like it has build correc=
tly, But I&#39;m yet to ascertain, If all the servers were really used duri=
ng the compile operation which lands me back to the original question.</div=
><div><br></div><div>Thank you,</div><div>Anish<br></div></div><br><div cla=
ss=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail_attr">On Mon, May 10, 20=
21 at 5:08 PM Fergus Henderson &lt;<a href=3D"mailto:[email protected]" tar=
get=3D"_blank">[email protected]</a>&gt; wrote:<br></div><blockquote class=
=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rg=
b(204,204,204);padding-left:1ex"><div dir=3D"auto">Your makefile is not doi=
ng any actual C or C++ compilation. If you want to test whether distcc is s=
et up correctly, you need to actually compile something.</div><br><div clas=
s=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail_attr">On Mon, 10 May 2021=
, 12:33 anish anil via distcc, &lt;<a href=3D"mailto:[email protected]=
" target=3D"_blank">[email protected]</a>&gt; wrote:<br></div><blockqu=
ote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px=
 solid rgb(204,204,204);padding-left:1ex"><div dir=3D"ltr">
<button>
           =20
        </button>
   =20

   =20
        <div><div>

</div>
        </div>

       =20

<div>
   =20
    <div>
               =20
<p>I&#39;m first time using distcc and have gone through the Readme.</p>
<p>To setup I have three Ubuntu Servers:
Master and Client:</p>
<p>As per the readme it sound like we need to install them on all theree ma=
chines. which i have completed.
<a href=3D"https://github.com/distcc/distcc/blob/master/INSTALL" rel=3D"nof=
ollow noreferrer noreferrer" target=3D"_blank">https://github.com/distcc/di=
stcc/blob/master/INSTALL</a></p>
<p>Ran the command on all three servers:</p>
<p>sudo apt-get install gcc make python3 python3-dev libiberty-dev</p>
<p>./autogen.sh
./configure
make install</p>
<p>They completed without any errors.</p>
<p>Create ssh keys across the three machines and added then to the authoriz=
ed host section.
Did a ssh and confirmed they are able to login from the master to the Agent=
 systems without any password</p>
<p>Now from the Master Server i ran the below pointing two the two clients:=
</p>
<pre><code>Export DISTCC_POTENTIAL_HOSTS=3D&#39;localhost 172.31.33.11 172.=
31.37.109&#39;
</code></pre>
<p>Created a hello world make file:</p>
<pre><code>    #.DEFAULT_GOAL :=3D generate
    .PHONY: all say_hello generate clean

    all: say_hello generate

    say_hello:
            @echo &quot;Hello World&quot;

    generate:
            @echo &quot;Creating empty text files...&quot;
            touch file-{1..10}.txt

    clean:
            @echo &quot;Cleaning up.....&quot;
            rm -f *.txt
</code></pre>
<p>Ran a build using the below command</p>
<pre><code> make
 Hello World
 Creating empty text files...
 touch file-{1..10}.txt
 root@ip-172-31-24-96:/data/helloworls#
</code></pre>
<p>So here it does look to have worked as expected.</p>
<p>Ran the command as specified in the documentation:</p>
<pre><code>pump make -j40 CC=3D&quot;distcc gcc&quot; --debug
__________Using distcc-pump from /usr/local/bin
__________Found 1 available distcc servers
GNU Make 4.1
Built for x86_64-pc-linux-gnu
Copyright (C) 1988-2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later &lt;<a href=3D"http://gnu.org/li=
censes/gpl.html" rel=3D"noreferrer" target=3D"_blank">http://gnu.org/licens=
es/gpl.html</a>&gt;
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Reading makefiles...
Updating goal targets....
 File &#39;all&#39; does not exist.
   File &#39;say_hello&#39; does not exist.
  Must remake target &#39;say_hello&#39;.
   File &#39;generate&#39; does not exist.
  Must remake target &#39;generate&#39;.
Hello World
Creating empty text files...
touch file-{1..10}.txt
 File &#39;all&#39; does not exist.
 File &#39;all&#39; does not exist.
Must remake target &#39;all&#39;.
Successfully remade target file &#39;all&#39;.
__________Shutting down distcc-pump include server
root@ip-172-31-24-96:/data/helloworls# ls
Makefile  file-{1..10}.txt
root@ip-172-31-24-96:/data/helloworls#
</code></pre>
<p>Question:</p>
<pre><code>1&gt; How do we really know that the two client servers have bee=
n used during this build
2&gt; Is setting the client servers same as that of the master, If no is th=
ere a difference
3&gt; How do we see the UI distcc Monitor
4&gt; How can i join a range of machines which does not have DistCC install=
ed
</code></pre>
<p>Thank you</p>
    </div></div>

</div>
__<br>
distcc mailing list=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 <a href=3D"htt=
p://distcc.samba.org/" rel=3D"noreferrer noreferrer" target=3D"_blank">http=
://distcc.samba.org/</a><br>
To unsubscribe or change options:<br>
<a href=3D"https://lists.samba.org/mailman/listinfo/distcc" rel=3D"noreferr=
er noreferrer" target=3D"_blank">https://lists.samba.org/mailman/listinfo/d=
istcc</a><br>
</blockquote></div>
</blockquote></div>
</blockquote></div><br clear=3D"all"><div><br></div>-- <br><div dir=3D"ltr"=
><div dir=3D"ltr"><div>Fergus Henderson &lt;<a href=3D"mailto:fergus@google=
.com" target=3D"_blank">[email protected]</a>&gt;</div></div></div>
</blockquote></div>

--000000000000cdab8305c1f9a912--


--===============8952306654288026596==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

__
distcc mailing list            http://distcc.samba.org/
To unsubscribe or change options:
https://lists.samba.org/mailman/listinfo/distcc

--===============8952306654288026596==--