<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<p style="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 have a rule to compile the source files like:<br>
<span style="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’ve seen, to use distcc is just a matter of adding “distcc” as a prefix, so my recipe changed to:<br>
<span style="font-size:10.0pt;font-family:Consolas">$(OBJ_DIR)/%.o : $(OBJ_DIR)/%.c<br>
      distcc gcc -Wall -c $< -o $@</span><br>
<br>
However, I keep getting errors, and I don’t know what exactly I am doing wrong.</p>
<p style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif">
<span style="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 failed</span></p>
<p style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif">
<span style="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 failed</span></p>
<p style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif">
<span style="font-size:10.0pt;font-family:Consolas">distcc[27525] (dcc_build_somewhere) Warning: remote compilation of '/home/user/sandbox/distcc-makefiles/Lib/Print.c' failed, retrying locally</span></p>
<p style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif">
<span style="font-size:10.0pt;font-family:Consolas">distcc[27524] (dcc_build_somewhere) Warning: remote compilation of '/home/user/sandbox/distcc-makefiles/Boot/Main.c' failed, retrying locally</span></p>
<p style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif">
<span style="font-size:10.0pt;font-family:Consolas">distcc[27525] Warning: failed to distribute /home/user/sandbox/distcc-makefiles/Lib/Print.c to 172.17.0.2/2, running locally instead</span></p>
<p style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif">
<span style="font-size:10.0pt;font-family:Consolas">distcc[27524] Warning: failed to distribute /home/user/sandbox/distcc-makefiles/Boot/Main.c to 172.17.0.2/2, running locally instead</span></p>
<p style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif">
<span style="font-size:10.0pt;font-family:Consolas">distcc[27525] (dcc_please_send_email_after_investigation) Warning: remote compilation of '/home/user/sandbox/distcc-makefiles/Lib/Print.c' failed, retried loca</span></p>
<p style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif">
<span style="font-size:10.0pt;font-family:Consolas">lly and got a different result.</span></p>
<p style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif">
<span style="font-size:10.0pt;font-family:Consolas">distcc[27524] (dcc_please_send_email_after_investigation) Warning: remote compilation of '/home/user/sandbox/distcc-makefiles/Boot/Main.c' failed, retried loca</span></p>
<p style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif">
<span style="font-size:10.0pt;font-family:Consolas">lly and got a different result.</span></p>
<p style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif">
<span style="font-size:10.0pt;font-family:Consolas">make[1]: Leaving directory '/home/user/sandbox/distcc-makefiles'</span></p>
<p style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif">
<span style="font-size:10.0pt;font-family:Consolas"><o:p> </o:p></span></p>
<p style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif">
I posted this question in StackOverflow ( <a href="https://stackoverflow.com/questions/60238207/configuring-distcc-for-makefiles">
https://stackoverflow.com/questions/60238207/configuring-distcc-for-makefiles</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 worked using distcc, then I looked the generated makefiles but I don’t see why it works while my Makefile doesn’t.<br>
<br>
Thanks,<br>
Berthin</p>
<br>
</div>
</body>
</html>