title: clang + icecc + ccache
body: <p>I'm trying to build with clang + icecc + ccache. But I can't get it to work. I successfully build with gcc + icecc + ccache on the same network.</p>
  
  <p>Here are the softs versions :</p>
  
  <pre><code>Clang version  : Ubuntu clang version 3.2-9 (tags/RELEASE_32/final) (based on LLVM 3.2) 
  ccache version : 3.1.7
  icecc version  : ICECC 0.9.7
  </code></pre>
  
  <p>I have in /usr/lib/ccache the clang sym links :</p>
  
  <pre><code>$ ls -l /usr/lib/ccache/clang*
  /usr/lib/ccache/clang -&gt; ../../bin/ccache*
  /usr/lib/ccache/clang++ -&gt; ../../bin/ccache*
  </code></pre>
  
  <p>I have in /usr/lib/icecc/bin the clang sym links :</p>
  
  <pre><code>$ ls -l /usr/lib/icecc/bin/clang*
  /usr/lib/icecc/bin/clang -&gt; ../../../bin/icecc*
  /usr/lib/icecc/bin/clang++ -&gt; ../../../bin/icecc*
  </code></pre>
  
  <p>So here is what I have tried :</p>
  
  <p>I've tried having ccache as first in my PATH env var :</p>
  
  <pre><code>export PATH=/usr/lib/ccache:/usr/lib/icecc/bin/:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
  </code></pre>
  
  <p>but it just doesn't distribute the compilation.</p>
  
  <p>I've tried having icecc as first :</p>
  
  <pre><code>export PATH=/usr/lib/icecc/bin/:/usr/lib/ccache:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
  </code></pre>
  
  <p>and it gives me this output:</p>
  
  <pre><code>ICECC[5240] 14:27:17: icecream seems to have invoked itself recursively!
  </code></pre>
  
  <p>according to this thread <a href="https://bugzilla.redhat.com/show_bug.cgi?id=377761" rel="nofollow">https://bugzilla.redhat.com/show_bug.cgi?id=377761</a> it's normal.</p>
  
  <p>I've tried having icecc only :</p>
  
  <pre><code>export PATH=/usr/lib/icecc/bin/:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
  </code></pre>
  
  <p>but it just doesn't distribute the compilation.</p>
  
  <p>So I'm kind of stuck here, and I can't find anything saying it's impossible, so if anyone have a solution, or a replacement solution (something different than icecc).</p>
  
  <p>Thanks.</p>