<html><body><div style="color:#000; background-color:#fff; 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; "><span>I followed the directions at </span><a href="http://clang.llvm.org/get_started.html" target="_blank" style="font-size: 12pt; ">http://clang.llvm.org/get_started.html</a> and after make, I did make install.</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; ">The only thing I didn't do though was make at the clang directory as the directions said clang would automatically get built.</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
 the clang directory, I get:</div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; "><br></div><div><div>~/llvm/tools/clang$ make</div><div>../../Makefile.common:61: ../../Makefile.config: No such file or directory</div><div>../../Makefile.common:69: /Makefile.rules: No such file or directory</div><div>make: *** No rule to make target `/Makefile.rules'.  Stop.</div><div><br></div><div>Do you think that the problem is with the distro I chose?  I'm using Ubuntu 12.04.</div></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> Ashok Nalkund
 <ashoknn@qualcomm.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> "llvmdev@cs.uiuc.edu" <llvmdev@cs.uiuc.edu> <br> <b><span style="font-weight: bold;">Sent:</span></b> Monday, July 9, 2012 4:00 PM<br> <b><span style="font-weight: bold;">Subject:</span></b> Re: [LLVMdev] Unable to do even basic Clang tutorial<br> </font> </div> <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>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><br> </div> </div>  </div></body></html>