<div>You're right that setting DISTCCD_PATH will overwrite PATH as far as distccd is concerned.</div><div><div><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.800000190734863px;background-color:rgb(255,255,255)">But are you setting DISTCCD_PATH before starting distccd?</span></div>

</div><div><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.800000190734863px;background-color:rgb(255,255,255)">How are you starting distccd -- manually, or via a system service?</span></div><div>

<span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.800000190734863px;background-color:rgb(255,255,255)"><br></span></div>The error message from dcc_execvp comes after executing execvp() failed.<div>

execvp() is a system call which just executes the named executable,</div><div>in this case "<span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.800000190734863px;background-color:rgb(255,255,255)">i686-pc-linux-gnu-gcc", from the PATH.</span></div>

<div><font color="#222222" face="arial, sans-serif">So at the point where the error occurs, the PATH definitely does not contain an "</font><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.800000190734863px;background-color:rgb(255,255,255)">i686-pc-linux-gnu-gcc" program that can be executed.</span></div>

<div><font color="#222222" face="arial, sans-serif">And distccd will indeed set PATH from DISTCCD_PATH.</font></div><div><br></div><div>Is this perhaps a permissions error? If the distccd program is running as user "distcc", and <span style="background-color:rgb(255,255,255);color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.800000190734863px">i686-pc-linux-gnu-gcc is a symbolic link to a file in a directory that the "distcc" user doesn't have permission to access, that might explain it.</span></div>

<div><br></div><div><div class="gmail_quote">On Tue, Sep 4, 2012 at 8:10 AM, Dainius (GreatEmerald) <span dir="ltr"><<a href="mailto:pastas4@gmail.com" target="_blank">pastas4@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Now I tested by copying the i586-pc-linux-gnu-gcc to /usr/local/bin as<br>
i686-pc-linux-gnu-gcc to make absolutely certain (as /usr/local/bin is<br>
in the PATH by default), but I still get the same error... I also set<br>
DISTCCD_PATH to /usr/local/bin, and still the exact same error.<br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div>Fergus Henderson <<a href="mailto:fergus@google.com" target="_blank">fergus@google.com</a>></div><div><br></div><div><div><span style="font-family:arial,sans-serif;font-size:13px;border-collapse:collapse">"Defend the user, exclude no one, and create magic." -- Eric Schmidt.</span></div>

</div><div><span style="font-family:arial,sans-serif;font-size:13px;border-collapse:collapse"><br></span></div><br>
</div>