[HELP] distcc fails to distribute. Missing configuration?
Berthin Torres CallaƱaupa via distcc <[email protected]> Sun, 16 Feb 2020 11:11:08 +0000
| Newsgroups | gmane.comp.compilers.distcc |
|---|---|
| Message-ID | <DM6PR16MB31147C68A66ED509B0E0B61291170@DM6PR16MB3114.namprd16.prod.outlook.com> |
--===============6014974038084784829==
Content-Language: en-US
Content-Type: multipart/alternative;
boundary="_000_DM6PR16MB31147C68A66ED509B0E0B61291170DM6PR16MB3114namp_"
--_000_DM6PR16MB31147C68A66ED509B0E0B61291170DM6PR16MB3114namp_
Content-Type: text/plain; charset="Windows-1252"
Content-Transfer-Encoding: quoted-printable
Hi,
I am testing distcc with a small project using Makefiles, and basically I h=
ave a rule to compile the source files like:
$(OBJ_DIR)/%.o : $(OBJ_DIR)/%.c
gcc -Wall -c $< -o $@
and then from what I=92ve seen, to use distcc is just a matter of adding =
=93distcc=94 as a prefix, so my recipe changed to:
$(OBJ_DIR)/%.o : $(OBJ_DIR)/%.c
distcc gcc -Wall -c $< -o $@
However, I keep getting errors, and I don=92t know what exactly I am doing =
wrong.
distcc[27525] ERROR: compile /home/user/sandbox/distcc-makefiles/Lib/Print.=
c on 172.17.0.2/2 failed
distcc[27524] ERROR: compile /home/user/sandbox/distcc-makefiles/Boot/Main.=
c on 172.17.0.2/2 failed
distcc[27525] (dcc_build_somewhere) Warning: remote compilation of '/home/u=
ser/sandbox/distcc-makefiles/Lib/Print.c' failed, retrying locally
distcc[27524] (dcc_build_somewhere) Warning: remote compilation of '/home/u=
ser/sandbox/distcc-makefiles/Boot/Main.c' failed, retrying locally
distcc[27525] Warning: failed to distribute /home/user/sandbox/distcc-makef=
iles/Lib/Print.c to 172.17.0.2/2, running locally instead
distcc[27524] Warning: failed to distribute /home/user/sandbox/distcc-makef=
iles/Boot/Main.c to 172.17.0.2/2, running locally instead
distcc[27525] (dcc_please_send_email_after_investigation) Warning: remote c=
ompilation of '/home/user/sandbox/distcc-makefiles/Lib/Print.c' failed, ret=
ried loca
lly and got a different result.
distcc[27524] (dcc_please_send_email_after_investigation) Warning: remote c=
ompilation of '/home/user/sandbox/distcc-makefiles/Boot/Main.c' failed, ret=
ried loca
lly and got a different result.
make[1]: Leaving directory '/home/user/sandbox/distcc-makefiles'
I posted this question in StackOverflow ( https://stackoverflow.com/questio=
ns/60238207/configuring-distcc-for-makefiles ), but looks like the distcc c=
ommunity is not that active. So, I am wondering if you can help me out.
One additional test I did was to use CMake to create the makefiles and it w=
orked using distcc, then I looked the generated makefiles but I don=92t see=
why it works while my Makefile doesn=92t.
Thanks,
Berthin
--_000_DM6PR16MB31147C68A66ED509B0E0B61291170DM6PR16MB3114namp_
Content-Type: text/html; charset="Windows-1252"
Content-Transfer-Encoding: quoted-printable
<html>
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3DWindows-1=
252">
<style type=3D"text/css" style=3D"display:none;"> P {margin-top:0;margin-bo=
ttom:0;} </style>
</head>
<body dir=3D"ltr">
<div style=3D"font-family: Calibri, Helvetica, sans-serif; font-size: 12pt;=
color: rgb(0, 0, 0);">
<p style=3D"margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri=
, sans-serif;margin-bottom:12.0pt">
Hi,<br>
<br>
I am testing distcc with a small project using Makefiles, and basically I h=
ave a rule to compile the source files like:<br>
<span style=3D"font-size:10.0pt;font-family:Consolas"><br>
$(OBJ_DIR)/%.o : $(OBJ_DIR)/%.c<br>
gcc -Wall -c $< -o $@</span><br>
<br>
and then from what I=92ve seen, to use distcc is just a matter of adding =
=93distcc=94 as a prefix, so my recipe changed to:<br>
<span style=3D"font-size:10.0pt;font-family:Consolas">$(OBJ_DIR)/%.o : $(OB=
J_DIR)/%.c<br>
distcc gcc -Wall -c $< -o $@</span><br>
<br>
However, I keep getting errors, and I don=92t know what exactly I am doing =
wrong.</p>
<p style=3D"margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri=
, sans-serif">
<span style=3D"font-size:10.0pt;font-family:Consolas">distcc[27525] ERROR: =
compile /home/user/sandbox/distcc-makefiles/Lib/Print.c on 172.17.0.2/2 fai=
led</span></p>
<p style=3D"margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri=
, sans-serif">
<span style=3D"font-size:10.0pt;font-family:Consolas">distcc[27524] ERROR: =
compile /home/user/sandbox/distcc-makefiles/Boot/Main.c on 172.17.0.2/2 fai=
led</span></p>
<p style=3D"margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri=
, sans-serif">
<span style=3D"font-size:10.0pt;font-family:Consolas">distcc[27525] (dcc_bu=
ild_somewhere) Warning: remote compilation of '/home/user/sandbox/distcc-ma=
kefiles/Lib/Print.c' failed, retrying locally</span></p>
<p style=3D"margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri=
, sans-serif">
<span style=3D"font-size:10.0pt;font-family:Consolas">distcc[27524] (dcc_bu=
ild_somewhere) Warning: remote compilation of '/home/user/sandbox/distcc-ma=
kefiles/Boot/Main.c' failed, retrying locally</span></p>
<p style=3D"margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri=
, sans-serif">
<span style=3D"font-size:10.0pt;font-family:Consolas">distcc[27525] Warning=
: failed to distribute /home/user/sandbox/distcc-makefiles/Lib/Print.c to 1=
72.17.0.2/2, running locally instead</span></p>
<p style=3D"margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri=
, sans-serif">
<span style=3D"font-size:10.0pt;font-family:Consolas">distcc[27524] Warning=
: failed to distribute /home/user/sandbox/distcc-makefiles/Boot/Main.c to 1=
72.17.0.2/2, running locally instead</span></p>
<p style=3D"margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri=
, sans-serif">
<span style=3D"font-size:10.0pt;font-family:Consolas">distcc[27525] (dcc_pl=
ease_send_email_after_investigation) Warning: remote compilation of '/home/=
user/sandbox/distcc-makefiles/Lib/Print.c' failed, retried loca</span></p>
<p style=3D"margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri=
, sans-serif">
<span style=3D"font-size:10.0pt;font-family:Consolas">lly and got a differe=
nt result.</span></p>
<p style=3D"margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri=
, sans-serif">
<span style=3D"font-size:10.0pt;font-family:Consolas">distcc[27524] (dcc_pl=
ease_send_email_after_investigation) Warning: remote compilation of '/home/=
user/sandbox/distcc-makefiles/Boot/Main.c' failed, retried loca</span></p>
<p style=3D"margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri=
, sans-serif">
<span style=3D"font-size:10.0pt;font-family:Consolas">lly and got a differe=
nt result.</span></p>
<p style=3D"margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri=
, sans-serif">
<span style=3D"font-size:10.0pt;font-family:Consolas">make[1]: Leaving dire=
ctory '/home/user/sandbox/distcc-makefiles'</span></p>
<p style=3D"margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri=
, sans-serif">
<span style=3D"font-size:10.0pt;font-family:Consolas"><o:p> </o:p></sp=
an></p>
<p style=3D"margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri=
, sans-serif">
I posted this question in StackOverflow ( <a href=3D"https://stackoverflow.=
com/questions/60238207/configuring-distcc-for-makefiles">
https://stackoverflow.com/questions/60238207/configuring-distcc-for-makefil=
es</a> ), but looks like the distcc community is not that active. So, I am =
wondering if you can help me out.<br>
<br>
One additional test I did was to use CMake to create the makefiles and it w=
orked using distcc, then I looked the generated makefiles but I don=92t see=
why it works while my Makefile doesn=92t.<br>
<br>
Thanks,<br>
Berthin</p>
<br>
</div>
</body>
</html>
--_000_DM6PR16MB31147C68A66ED509B0E0B61291170DM6PR16MB3114namp_--
--===============6014974038084784829==
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
--===============6014974038084784829==--