Because distccd is launched via start-stop-daemon and is not run in a login shell, /etc/profile.env is never sourced. Thus the system GCC_SPECS, set by gcc-config, is not honored. GCC_SPECS remains undeclared at startup. I personally solved it by adding the following line to /etc/init.d/distccd before distccd is run: eval $(/bin/grep GCC_SPECS /etc/profile.env) but perhaps the entire profile.env should be included, which would also remove the need for: PATH="$(gcc-config --get-bin-path):${PATH}" just before distccd is launched via start-stop-daemon. Reproducible: Always
fixed in cvs.