[distcc] [HELP] distcc fails to distribute. Missing configuration?

Berthin Torres Callañaupa berthin.torres at outlook.com
Sun Feb 16 11:11:08 UTC 2020


Hi,

I am testing distcc with a small project using Makefiles, and basically I have a rule to compile the source files like:

$(OBJ_DIR)/%.o : $(OBJ_DIR)/%.c
      gcc -Wall -c $< -o $@

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:
$(OBJ_DIR)/%.o : $(OBJ_DIR)/%.c
      distcc gcc -Wall -c $< -o $@

However, I keep getting errors, and I don’t 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/user/sandbox/distcc-makefiles/Lib/Print.c' failed, retrying locally

distcc[27524] (dcc_build_somewhere) Warning: remote compilation of '/home/user/sandbox/distcc-makefiles/Boot/Main.c' failed, retrying locally

distcc[27525] Warning: failed to distribute /home/user/sandbox/distcc-makefiles/Lib/Print.c to 172.17.0.2/2, running locally instead

distcc[27524] Warning: failed to distribute /home/user/sandbox/distcc-makefiles/Boot/Main.c to 172.17.0.2/2, running locally instead

distcc[27525] (dcc_please_send_email_after_investigation) Warning: remote compilation of '/home/user/sandbox/distcc-makefiles/Lib/Print.c' failed, retried loca

lly and got a different result.

distcc[27524] (dcc_please_send_email_after_investigation) Warning: remote compilation of '/home/user/sandbox/distcc-makefiles/Boot/Main.c' failed, retried 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/questions/60238207/configuring-distcc-for-makefiles ), but looks like the distcc community 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 worked using distcc, then I looked the generated makefiles but I don’t see why it works while my Makefile doesn’t.

Thanks,
Berthin

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.samba.org/pipermail/distcc/attachments/20200216/f2600079/attachment.htm>


More information about the distcc mailing list