<html>
<head></head>
<body>
<p>I'm following <a href="http://clang.llvm.org/get_started.html" target="_blank">http://clang.llvm.org/get_started.html</a> and i have a problem in the step 6. Build llvm and clang.</p>
<p>When I run ../llvm/configure</p>
<p>I got the next error:</p>
<p><span style="font-size: 10pt;"><em>> configure: error: Selected compiler could not find or parse C++ standard library headers.  Rerun > with CC=c-compiler CXX=c++-compiler ./configure ...</em></span></p>
<p>I was looking for information and came across with these two threads:<br/>
<a href="http://lists.cs.uiuc.edu/pipermail/cfe-dev/2011-August/016464.html" target="_blank">http://lists.cs.uiuc.edu/pipermail/cfe-dev/2011-August/016464.html</a><br/>
and<br/>
<a href="http://lists.cs.uiuc.edu/pipermail/llvmdev/2011-October/044841.html" target="_blank">http://lists.cs.uiuc.edu/pipermail/llvmdev/2011-October/044841.html</a></p>
<p>If I do<br/>
$which clang++<br/>
/usr/bin/clang++</p>
<p>And<br/>
$g++ --version<br/>
g++ (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3<br/>
$which g++-4.6<br/>
/usr/bin/g++-4.6</p>
<p>So i rerun <br/>
../llvm/configure CXX="/usr/bin"</p>
<p>and also with<em> CXXFLAGS=-stdlib=libc++, but both ways now I get the same error:</em></p>
<pre>><em> checking tool compatibility... configure: error: g++|clang++|icc required </em>><em> but not found<br /><br /></em><br /><span style="font-size: 11pt;">I don't know what's the problem. Please, I need help because I don't know what can I do.<br /></span>Maybe, i haven't set environment variables correctly.<br /><br /><br /><em><br /></em></pre><br/>
<br/>
<br/>
<br/>
<br/>
<br/>
</body>
</html>