<html>
<head></head>
<body>
<p>Thank you very much, Manuel, but should I have to make again the rest of the instructions?</p>
<p>I made what you told me and now, when I run</p>
<pre style="overflow-x: auto; overflow-y: hidden; border: thin dotted #0c3762; margin: 0px 0px 12px; padding: 0.8em; background-color: #f0f0f0; color: #333333;">cmake -G Ninja ../llvm -DLLVM_BUILD_TESTS=ON</pre><p>I get the next error:</p>
<p><span style="font-size: 12.727272033691406px;">CMake Error: The source "/usr/llvm/llvm/CMakeLists.txt" does not match the source "/usr/llvm/CMakeLists.txt" used to generate cache.  Re-run cmake with a different source directory.</span></p>
<p><span style="font-size: 12.727272033691406px;">Do you think i should start from scratch?</span></p>
<div><em>El dia 04 feb 2013 12:58, Manuel Klimek <klimek@google.com> escribió:</em></div><blockquote class="replyBlock" style="border-left: 2px solid #000083; margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div dir="ltr">If you follow those steps:<div>mkdir ~/clang-llvm && cd ~/clang-llvm<br />git clone <a href="http://llvm.org/git/llvm.git">http://llvm.org/git/llvm.git</a></div><div>You'll have a directory ~/clang-llvm/llvm</div><div>Then, after</div><p>cd ~/clang-llvm<br/>
mkdir build && cd build</p>
<div>you'll have a ../llvm directory.</div><div>If you change the paths you'll need to adapt the commands to still work :)</div></div><div class="gmail_extra"><br /><br /><div class="gmail_quote">On Mon, Feb 4, 2013 at 12:39 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>Hello everyone,</p>
<p>I've been following the Tutorial for building tools using LibTooling and LibASTMatchers:</p>
<p><a href="http://clang.llvm.org/docs/LibASTMatchersTutorial.html" target="_blank">http://clang.llvm.org/docs/LibASTMatchersTutorial.html</a></p>
<p>I didn't accomplish the Step 0 as I had followed the "getting started guide" before to get llvm and clang. Then, everything was right until I reached to the instruction:</p>
<br/>
<pre style="overflow-x: auto; overflow-y: hidden; border: thin dotted #0c3762; margin: 0px 0px 12px; padding: 0.8em; background-color: #f0f0f0; color: #333333;">cmake -G Ninja ../llvm -DLLVM_BUILD_TESTS=ON</pre><br/>
<p>Then, I got the next errors:</p>
<blockquote style="border-left: 2px solid #000083; margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><p><span style="font-size: 12.727272033691406px;">-- The C compiler identification is GNU 4.6.3</span><br style="font-size: 12.727272033691406px;" /><span style="font-size: 12.727272033691406px;">-- Check for working C compiler using: Ninja</span><br style="font-size: 12.727272033691406px;" /><span style="font-size: 12.727272033691406px;">-- Check for working C compiler using: Ninja -- works</span><br style="font-size: 12.727272033691406px;" /><span style="font-size: 12.727272033691406px;">-- Detecting C compiler ABI info</span><br style="font-size: 12.727272033691406px;" /><span style="font-size: 12.727272033691406px;">-- Detecting C compiler ABI info - done</span><br style="font-size: 12.727272033691406px;" /><span style="font-size: 12.727272033691406px;">-- The CXX compiler identification is GNU 4.6.3</span><br style="font-size: 12.727272033691406px;" /><span style="font-size: 12.727272033691406px;">-- Check for working CXX compiler using: Ninja</span><br style="font-size: 12.727272033691406px;" /><span style="font-size: 12.727272033691406px;">-- Check for working CXX compiler using: Ninja -- works</span><br style="font-size: 12.727272033691406px;" /><span style="font-size: 12.727272033691406px;">-- Detecting CXX compiler ABI info</span><br style="font-size: 12.727272033691406px;" /><span style="font-size: 12.727272033691406px;">-- Detecting CXX compiler ABI info - done</span><br style="font-size: 12.727272033691406px;" /><span style="font-size: 12.727272033691406px;">CMake Error at CMakeLists.txt:23 (include):</span><br style="font-size: 12.727272033691406px;" /><span style="font-size: 12.727272033691406px;">  include could not find load file:</span><br style="font-size: 12.727272033691406px;" /><br style="font-size: 12.727272033691406px;" /><span style="font-size: 12.727272033691406px;">    VersionFromVCS</span><br style="font-size: 12.727272033691406px;" /><br style="font-size: 12.727272033691406px;" /><br style="font-size: 12.727272033691406px;" /><span style="font-size: 12.727272033691406px;">CMake Error at CMakeLists.txt:153 (include):</span><br style="font-size: 12.727272033691406px;" /><span style="font-size: 12.727272033691406px;">  include could not find load file:</span><br style="font-size: 12.727272033691406px;" /><br style="font-size: 12.727272033691406px;" /><span style="font-size: 12.727272033691406px;">    AddLLVMDefinitions</span><br style="font-size: 12.727272033691406px;" /><br style="font-size: 12.727272033691406px;" /><br style="font-size: 12.727272033691406px;" /><span style="font-size: 12.727272033691406px;">CMake Error at CMakeLists.txt:239 (include):</span><br style="font-size: 12.727272033691406px;" /><span style="font-size: 12.727272033691406px;">  include could not find load file:</span><br style="font-size: 12.727272033691406px;" /><br style="font-size: 12.727272033691406px;" /><span style="font-size: 12.727272033691406px;">    config-ix</span><br style="font-size: 12.727272033691406px;" /><br style="font-size: 12.727272033691406px;" /><br style="font-size: 12.727272033691406px;" /><span style="font-size: 12.727272033691406px;">CMake Error at CMakeLists.txt:247 (include):</span><br style="font-size: 12.727272033691406px;" /><span style="font-size: 12.727272033691406px;">  include could not find load file:</span><br style="font-size: 12.727272033691406px;" /><br style="font-size: 12.727272033691406px;" /><span style="font-size: 12.727272033691406px;">    HandleLLVMOptions</span><br style="font-size: 12.727272033691406px;" /><br style="font-size: 12.727272033691406px;" /><br style="font-size: 12.727272033691406px;" /><span style="font-size: 12.727272033691406px;">-- Found PythonInterp: /usr/bin/python (found version "2.7.3") </span><br style="font-size: 12.727272033691406px;" /><span style="font-size: 12.727272033691406px;">-- Constructing LLVMBuild project information</span><br style="font-size: 12.727272033691406px;" /><span style="font-size: 12.727272033691406px;">CMake Error at CMakeLists.txt:306 (message):</span><br style="font-size: 12.727272033691406px;" /><span style="font-size: 12.727272033691406px;">  Unexpected failure executing llvm-build: Usage: llvm-build [options]</span><br style="font-size: 12.727272033691406px;" /><br style="font-size: 12.727272033691406px;" /><span style="font-size: 12.727272033691406px;">  </span><br style="font-size: 12.727272033691406px;" /><br style="font-size: 12.727272033691406px;" /><span style="font-size: 12.727272033691406px;">  llvm-build: error: invalid native target: '' (not in project)</span><br style="font-size: 12.727272033691406px;" /><br style="font-size: 12.727272033691406px;" /><br style="font-size: 12.727272033691406px;" /><span style="font-size: 12.727272033691406px;">-- Configuring incomplete, errors occurred!</span></p>
</blockquote><p>What's happening?</p>
<p>By the way, the directory would be ../../llvm, wouldn't it? I'm in /usr/llvm/build and when I write ../llvm it says: "The source directory /usr/llvm/llvm does not exist" </p>
<p>Thanks in advance,</p>
<p>Pedro.</p>
</div><br/>
<p>_______________________________________________<br/>
cfe-dev mailing list<br/>
cfe-dev@cs.uiuc.edu</p>
</blockquote></div></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>