LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware - ARM (https://www.linuxquestions.org/questions/slackware-arm-108/)
-   -   distcc "....... Is the server configured to access the compiler?" (https://www.linuxquestions.org/questions/slackware-arm-108/distcc-is-the-server-configured-to-access-the-compiler-4175652054/)

justwantin 04-12-2019 11:04 PM

distcc "....... Is the server configured to access the compiler?"
 
I've been using distcc-3.3 on my b'pro client running current to my 64bit desktop server running current with negligible compiling on the server and frequent errors on the client as below:
Code:

distcc[17097] (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?
By adding another option to the distccd command in rc,local-addition, as below, I have an increased the workload on my server.
Code:

/usr/bin/distccd \
  --verbose \
  --make-me-a-botnet \
  --log-file /tmp/distcc.log \
  -j 12 \
  --daemon \
  --allow 192.168.1.10

My client no longer presents error messages as above, however, when compiling kerenel modules, there is still quite a bit that is pre processed locally as per the message below. I'm on a small home network and not bothered about running distccd with the option --make-me-a-botnet.
Code:

CC [M]  drivers/gpu/drm/amd/amdgpu/../display/dc/virtual/virtual_link_encoder.o
distcc[7354] (dcc_perhaps_adjust_cpp_where_and_protover) Warning: cannot use distcc_pump with any of environment variables CPATH, C_INCLUDE_PATH or CPLUS_INCLUDE_PATH set, preprocessing locally

There's nothing to be done about this as pump mode allows preprocessing on the server although I distccmon-text still shows some happening locally and this is probably due to the environment variables in the warning above. Note that to use pump mode you have to use append cpp and lzo to every host listed.
Code:

# export DISTCC_HOSTS='192.168.1.2,cpp,lzo'
# pump make CC=distcc modules

I hope someone finds this helpful.
Code:

  CC [M]  drivers/gpu/drm/amd/amdgpu/../display/dc/virtual/virtual_link_encoder.o
distcc[7354] (dcc_perhaps_adjust_cpp_where_and_protover) Warning: cannot use distcc_pump with any of environment variables CPATH, C_INCLUDE_PATH or CPLUS_INCLUDE_PATH set, preprocessing locally
  LD [M]  drivers/iio/imu/st_lsm6dsx/st_lsm6dsx.o
distcc[7201] (dcc_perhaps_adjust_cpp_where_and_protover) Warning: cannot use distcc_pump with any of environment variables CPATH, C_INCLUDE_PATH or CPLUS_INCLUDE_PATH set, preprocessing locally
  CC [M]  drivers/gpu/drm/amd/amdgpu/../display/dc/virtual/virtual_stream_encoder.o
  CC [M]  drivers/iio/light/bh1750.o
distcc[7393] (dcc_perhaps_adjust_cpp_where_and_protover) Warning: cannot use distcc_pump with any of environment variables CPATH, C_INCLUDE_PATH or CPLUS_INCLUDE_PATH set, preprocessing locally
  CC [M]  drivers/media/common/b2c2/flexcop-fe-tuner.o
  CC [M]  drivers/iio/light/cm3323.o

EDIT 14//2019: The additional distccd option in the rc.local-additions script in this post was originally--enable-tcp-insecure. Slackwarearm current as of 04/28/2019 ships with distcc-3.3 which uses --make-me-a-botnet. Distcc-3.3.2 will instead use --enable-tcp-insecure. I have changed this post accordingly.


All times are GMT -5. The time now is 04:37 PM.