<html>
<head></head>
<body>
<p>I had some problems when running make and I was recommended to try a release build. This did work, but now i'm not sure if it is a good option as I want to develop a tool using clang as a library. Please, could you tell me how is the best way to configure llvm for this purpose?</p>
<p>In addition, I'm following the instructions in <a href="http://clang.llvm.org/get_started.html " target="_blank">http://clang.llvm.org/get_started.html </a> and I don't know if I have to do what it is explained in:<br/>
<em>Simultaneously Building Clang and LLVM</em></p>
<p>Finally, I've been trying to test if I can run the example shown in <a href="http://clang.llvm.org/docs/RAVFrontendAction.html" target="_blank">http://clang.llvm.org/docs/RAVFrontendAction.html</a>, but when I reach to the part the document prompts me to create a CmakeLists I lose the path as I don't know what I have to do in this point. </p>
<p>As you can see, I'm newbie and I'm a quite lost.</p>
<p>Thanks in advance,</p>
<p>Pedro.</p>
<div><em>El dia 15 ene 2013 19:43, Matthieu Monrocq <matthieu.monrocq@gmail.com> escribió:</em></div><blockquote class="replyBlock" style="border-left: 2px solid #000083; margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><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;"><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>
</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<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/>
</div><br/>
<p>_______________________________________________<br/>
cfe-dev mailing list<br/>
cfe-dev@cs.uiuc.edu</p>
</blockquote></div><p><a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev</a></p>
</blockquote>
</body>
</html>