<html>
<head></head>
<body>
<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 class="replyBlock" 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>
</body>
</html>