<br><br><div class="gmail_quote">On Wed, Mar 31, 2010 at 11:48 AM, Wadii Guedria <span dir="ltr">&lt;<a href="http://wadii.gd">wadii.gd</a>@<a href="http://gmail.com">gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

Hi all,<br><br>I installed distcc in two machines, I have distcc working with gcc but not with sh4-linux-gcc. I need sh4-linux-gcc for cross compilation.(sh4-linux-gcc under /opt/.../sh4/bin and installed in both machines)<br>


I made a masquerade link and exported it to the PATH, also exported /sh4/bin to the PATH<br><br>cd /usr/lib/bin/<br>mkdir distcc<br>cd distcc<br>ln -s /usr/bin/distcc sh4-linux-gcc<br>ln -s /usr/bin/distcc sh4-linux-g++<br>


ln -s /usr/bin/distcc sh4-linux-c++<br><br>When I launch the compilation with the compiler sh4-linux-gcc, I have this error<br><br>(dcc_execvp) ERROR: failed to exec sh4-linux-gcc: No such file or directory<br></blockquote>

<div><br></div><div>For masquerading, sh4-linux-gcc needs to be in the $PATH twice: the first one should be the symlink to /usr/bin/distcc, and the second entry in the path should be the real one, i.e. /opt/.../sh4/bin/sh4-linux-gcc.</div>

<div><br></div><div>If that&#39;s not the problem, please provide more information, e.g.</div><div>  - the value of your $PATH env var</div><div>  - the exact command that you invoked</div><div>  - the full output from the command</div>

</div>-- <br>Fergus Henderson &lt;<a href="mailto:fergus@google.com" target="_blank">fergus@google.com</a>&gt;<br>