<br><br><div class="gmail_quote">On Tue, Jan 15, 2013 at 1:40 PM, Pedro Delgado Perez <span dir="ltr"><<a href="mailto:pedro.delgadoperez@mail.uca.es" target="_blank">pedro.delgadoperez@mail.uca.es</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div>
<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"><i>> configure: error: Selected compiler could not find or parse C++ standard library headers.  Rerun > with CC=c-compiler CXX=c++-compiler ./configure ...</i></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></div></blockquote><div><br>I always thought CC and CXX needed to point at the compiler *directly*, and not just the path the compiler sits in (especially when there are several compilers sitting there).<br>
<br>So I would say CC="/usr/bin/clang" and CXX="/usr/bin/clang++"<br><br>-- Matthieu<br> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>

<p>and also with<i> CXXFLAGS=-stdlib=libc++, but both ways now I get the same error:</i></p>
<pre>><i> checking tool compatibility... configure: error: g++|clang++|icc required </i>><i> but not found<br><br></i><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><i><br></i></pre><br>
<br>
<br>
<br>
<br>
<br>
</div>
<br>_______________________________________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@cs.uiuc.edu">cfe-dev@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev</a><br>
<br></blockquote></div><br>