<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div><span><div>$ ls /usr/local/include/<br></div><div>llvm  llvm-c</div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; "><br></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; ">Does this mean Clang wasn't installed properly on my Ubuntu machine?</div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; "><br></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; ">I did a make install in my ~/build directory and I thought this would install Clang.  At least there is a /usr/bin/clang.</div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; "><br></div><div style="font-family: 'times new roman', 'new york', times, serif;
 font-size: 12pt; ">When I do make in my ~/build/tools/clang directory, I get:</div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; "><br></div><div><div>~/build/tools/clang$ make</div><div>make[1]: Entering directory `/home/username/build/tools/clang/utils/TableGen'</div><div>make[1]: Nothing to be done for `all'.</div><div>make[1]: Leaving directory `/home/username/build/tools/clang/utils/TableGen'</div><div>make: *** [all] Error 1</div></div></span></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; "><br></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; "><br></div>  <div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; "> <div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; "> <div dir="ltr"> <font size="2" face="Arial"> <hr size="1">  <b><span
 style="font-weight:bold;">From:</span></b> Chad Rosier <mcrosier@apple.com><br> <b><span style="font-weight: bold;">To:</span></b> NY Knicks Fan <nyknicksfan92009@yahoo.com> <br><b><span style="font-weight: bold;">Cc:</span></b> Ashok Nalkund <ashoknn@qualcomm.com>; llvmdev@cs.uiuc.edu <br> <b><span style="font-weight: bold;">Sent:</span></b> Monday, July 9, 2012 4:09 PM<br> <b><span style="font-weight: bold;">Subject:</span></b> Re: [LLVMdev] Unable to do even basic Clang tutorial<br> </font> </div> <br><br>On Jul 9, 2012, at 4:00 PM, Ashok Nalkund wrote:<br><br>> The "make install" should collect everything into your <install path>. <br>> The <install path> will then have bin, lib and include dirs.<br><br>And you should be able to specify the install path with the --prefix option when configuring.  I believe the default is /usr/local (see: configure --help to verify).<br><br> Chad<br><br>> On 7/9/2012 3:52
 PM, NY Knicks Fan wrote:<br>>> Hi Ashok,<br>>> <br>>> The documentation suggests that I put clang inside of llvm/tools and so<br>>> I have two separate include directories.  I tried both of them and<br>>> neither worked:<br>>> <br>>> $ clang++ -I llvm/include tutorial1.cpp<br>>> In file included from tutorial1.cpp:5:<br>>> In file included from llvm/include/llvm/Support/raw_ostream.h:17:<br>>> In file included from llvm/include/llvm/ADT/StringRef.h:13:<br>>> llvm/include/llvm/Support/type_traits.h:20:10: fatal error:<br>>> 'llvm/Support/DataTypes.h' file not found<br>>> #include "llvm/Support/DataTypes.h"<br>>>          ^<br>>> 1 error generated.<br>>> <br>>> $ clang++ -I llvm/tools/clang/include/ tutorial1.cpp<br>>> tutorial1.cpp:5:10: fatal error: 'llvm/Support/raw_ostream.h' file not found<br>>> #include
 "llvm/Support/raw_ostream.h"<br>>>          ^<br>>> 1 error generated.<br>>> <br>>> Any help you can provide is very much appreciated.<br>>> <br>>> ------------------------------------------------------------------------<br>>> *From:* Ashok Nalkund <<a ymailto="mailto:ashoknn@qualcomm.com" href="mailto:ashoknn@qualcomm.com">ashoknn@qualcomm.com</a>><br>>> *To:* NY Knicks Fan <<a ymailto="mailto:nyknicksfan92009@yahoo.com" href="mailto:nyknicksfan92009@yahoo.com">nyknicksfan92009@yahoo.com</a>>; "<a ymailto="mailto:llvmdev@cs.uiuc.edu" href="mailto:llvmdev@cs.uiuc.edu">llvmdev@cs.uiuc.edu</a>"<br>>> <<a ymailto="mailto:llvmdev@cs.uiuc.edu" href="mailto:llvmdev@cs.uiuc.edu">llvmdev@cs.uiuc.edu</a>><br>>> *Sent:* Monday, July 9, 2012 3:30 PM<br>>> *Subject:* Re: [LLVMdev] Unable to do even basic Clang tutorial<br>>> <br>>> Use the
 -I<install path>/include .<br>>> <br>>> This directory <install path>/include should look something like:<br>>> <br>>> clang/  clang-c/  llvm/ llvm-c/<br>>> <br>>> HTH<br>>> ashok<br>>> <br>>> On 7/9/2012 3:15 PM, NY Knicks Fan wrote:<br>>>> I downloaded the 3.1 LLVM and Clang sources.<br>>>> <br>>>> I followed the directions at: <a href="http://clang.llvm.org/get_started.html" target="_blank">http://clang.llvm.org/get_started.html</a><br>>>> <br>>>> I am able to use Clang to compile stuff, but I could already do that<br>>>> with GCC.<br>>>> <br>>>> I'm trying to use Clang for parsing code, but I can't even get started.<br>>>> <br>>>> Can you tell me how to "include the installed location ofclang/llvm<br>>>> headers directories in your include path"?<br>>>>
 <br>>>> Thanks!<br>>>> <br>>>> <br>>>> ------------------------------------------------------------------------<br>>>> *From:* Ashok Nalkund <<a ymailto="mailto:ashoknn@qualcomm.com" href="mailto:ashoknn@qualcomm.com">ashoknn@qualcomm.com</a><br>>> <mailto:<a ymailto="mailto:ashoknn@qualcomm.com" href="mailto:ashoknn@qualcomm.com">ashoknn@qualcomm.com</a>>><br>>>> *To:* NY Knicks Fan <<a ymailto="mailto:nyknicksfan92009@yahoo.com" href="mailto:nyknicksfan92009@yahoo.com">nyknicksfan92009@yahoo.com</a><br>>> <mailto:<a ymailto="mailto:nyknicksfan92009@yahoo.com" href="mailto:nyknicksfan92009@yahoo.com">nyknicksfan92009@yahoo.com</a>>><br>>>> *Cc:* Chad Rosier <<a ymailto="mailto:mcrosier@apple.com" href="mailto:mcrosier@apple.com">mcrosier@apple.com</a> <mailto:<a ymailto="mailto:mcrosier@apple.com"
 href="mailto:mcrosier@apple.com">mcrosier@apple.com</a>>>;<br>>> "<a ymailto="mailto:llvmdev@cs.uiuc.edu" href="mailto:llvmdev@cs.uiuc.edu">llvmdev@cs.uiuc.edu</a> <mailto:<a ymailto="mailto:llvmdev@cs.uiuc.edu" href="mailto:llvmdev@cs.uiuc.edu">llvmdev@cs.uiuc.edu</a>>"<br>>>> <<a ymailto="mailto:llvmdev@cs.uiuc.edu" href="mailto:llvmdev@cs.uiuc.edu">llvmdev@cs.uiuc.edu</a> <mailto:<a ymailto="mailto:llvmdev@cs.uiuc.edu" href="mailto:llvmdev@cs.uiuc.edu">llvmdev@cs.uiuc.edu</a>>><br>>>> *Sent:* Monday, July 9, 2012 2:39 PM<br>>>> *Subject:* Re: [LLVMdev] Unable to do even basic Clang tutorial<br>>>> <br>>>> On 7/9/2012 1:42 PM, Chad Rosier wrote:<br>>>>> Have you looked here: <a href="http://clang.llvm.org/get_started.html" target="_blank">http://clang.llvm.org/get_started.html</a><br>>>>> <br>>>>> Chad<br>>>>> <br>>>>>
 <br>>>>> On Jul 9, 2012, at 11:33 AM, NY Knicks Fan wrote:<br>>>>> <br>>>>>> I'm trying to do the tutorials at:<br>>>>>> <br>>>>>> <a href="https://github.com/loarabia/Clang-tu...i/TutorialOrig" target="_blank">https://github.com/loarabia/Clang-tu...i/TutorialOrig</a><br>>>>>> <<a href="https://github.com/loarabia/Clang-tutorial/wiki/TutorialOrig" target="_blank">https://github.com/loarabia/Clang-tutorial/wiki/TutorialOrig</a>><br>>>>>> <br>>>>>> and I can't even do the first tutorial. I installed LLVM 3.1 and<br>>> Clang<br>>>>>> 3.1 and when I do:<br>>>>>> <br>>>>>> ~/loarabia-Clang-tutorial-3d79443$ clang++ tutorial1.cpp In file<br>>>>>> included from tutorial1.cpp:5: In file included from<br>>>>>>
 ./llvm/Support/raw_ostream.h:17:<br>>>>>> ./llvm/Support/llvm/ADT/StringRef.h:13:10: fatal error:<br>>>>>> 'llvm/Support/type_traits.h' file not found<br>>>>>> <br>>>>>> include "llvm/Support/type_traits.h"<br>>>>>> ^<br>>>>>> 1 error generated.<br>>>>>> <br>>>>>> Do you know what I am doing wrong? I'm not sure what is the best way<br>>>>>> to handle this header file problem.<br>>>>>> <br>>>>>> I'm running Ubuntu 12.04.<br>>>>>> <br>>>>>> Thank you.<br>>>> <br>>>> Did you build it or "install" it from a package? If you build it, then<br>>>> you need do a 'make install' and include the installed location of<br>>>> clang/llvm headers directories in your include path.<br>>>> <br>>>> <br>>>>
 <br>>>> <br>>>> <br>>>> <br>>>> _______________________________________________<br>>>> LLVM Developers mailing list<br>>>> <a ymailto="mailto:LLVMdev@cs.uiuc.edu" href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</a> <mailto:<a ymailto="mailto:LLVMdev@cs.uiuc.edu" href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</a>><br>>> <a href="http://llvm.cs.uiuc.edu/" target="_blank">http://llvm.cs.uiuc.edu</a> <<a href="http://llvm.cs.uiuc.edu/" target="_blank">http://llvm.cs.uiuc.edu/</a>><br>>>> <a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br>>>> <br>>> <br>>> <br>>> <br>> <br>> _______________________________________________<br>> LLVM Developers mailing list<br>> <a ymailto="mailto:LLVMdev@cs.uiuc.edu"
 href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</a>         <a href="http://llvm.cs.uiuc.edu/" target="_blank">http://llvm.cs.uiuc.edu</a><br>> <a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br><br><br><br> </div> </div>  </div></body></html>