[distcc] Re: gcc: installation problem, cannot exec `as'

Wayne Davison wayned at users.sourceforge.net
Mon May 12 17:22:17 GMT 2003


On Mon, May 12, 2003 at 05:49:31PM +0200, Dimitri PAPADOPOULOS-ORFANOS wrote:
> distccd[11415] (dcc_set_path) setting PATH=/usr/bin/X11:/usr/X11R6/bin
> The default PATH for root is:
> /bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/usr/bin/X11:/usr/X11R6/bin:/root/bin

This can't be the PATH that was set when distccd was started, though.
It was probably something like this:

    /bin:/usr/bin:/usr/local/bin:/usr/bin/X11:/usr/X11R6/bin

> and for some reason most of the path is discarded.

Distccd (the daemon) assumes that you don't wish to call ccache for
compiling things (since it assumes that you want to use ccache before
distcc), so it trims the path to remove everything up through the ccache
masquerade dir it finds.  If you do really want to use ccache, you can
override this by setting the DISTCCD_PATH environment variable before
starting distccd.

One thing that baffles me in your setup is where the real compiler
exists on the PATH.  Since gcc is a symlink to ccache in /usr/local/bin,
there does not appear to be a directory after that on the PATH that
should contain the real gcc executable.  How does ccache know what
compiler to run?

..wayne..


More information about the distcc mailing list