So I just started looking into LLVM and I was wondering how to install the LLVM tools suite. (Such as the llvm-as or lli commands in the terminal described here: http://llvm.org/docs/CommandGuide (http://llvm.org/docs/CommandGuide/)). I have downloaded LLVM, Clang, the test suite, and have run the build and make commands. I have looked around on the website but I have not found a sufficient explanation of how to install the tools. If it is on there, feel free to send a link, but if not I would greatly appreciate any help. Thanks, Kyle -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20130524/b5a78f07/attachment.html>
On Fri, May 24, 2013 at 3:27 PM, Kyle Holzinger <kholz at bu.edu> wrote:> So I just started looking into LLVM and I was wondering how to install the > LLVM tools suite. (Such as the llvm-as or lli commands in the terminal > described here: http://llvm.org/docs/CommandGuide). I have downloaded > LLVM, Clang, the test suite, and have run the build and make commands. I > have looked around on the website but I have not found a sufficient > explanation of how to install the tools. If it is on there, feel free to > send a link, but if not I would greatly appreciate any help. > >Kyle, once you've built the tools they are in the bin/ directory in the build location. You can also run "make install" to install them, as usual. Alternatively, you can just invoke them directly from that bin/ directory. Eli -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20130524/aa416808/attachment.html>
Kyle, I install llvm with cmake, and there are llvm tools installed default. The following is related commands. cmake -DCMAKE_BUILD_TYPE="Debug" -DCMAKE_INSTALL_PREFIX=/home/xxx/software/llvmsvn -DCMAKE_EXPORT_COMPILE_COMMANDS=ON /home/xxx/software/llvm-3.2-svn make -j32 make install -j32 If you don't want to execute "make install", the related bins are in some-dir-to-build/bin Eric On Sat, May 25, 2013 at 7:02 AM, Eli Bendersky <eliben at google.com> wrote:> > > > On Fri, May 24, 2013 at 3:27 PM, Kyle Holzinger <kholz at bu.edu> wrote: > >> So I just started looking into LLVM and I was wondering how to install >> the LLVM tools suite. (Such as the llvm-as or lli commands in the terminal >> described here: http://llvm.org/docs/CommandGuide). I have downloaded >> LLVM, Clang, the test suite, and have run the build and make commands. I >> have looked around on the website but I have not found a sufficient >> explanation of how to install the tools. If it is on there, feel free to >> send a link, but if not I would greatly appreciate any help. >> >> > Kyle, once you've built the tools they are in the bin/ directory in the > build location. You can also run "make install" to install them, as usual. > Alternatively, you can just invoke them directly from that bin/ directory. > > Eli > > > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev > >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20130527/5057c357/attachment.html>
David Tweed
2013-May-28 08:11 UTC
[LLVMdev] Should there be official advice for 3.3 to definitely remove old llvm?
Hi, slightly related By the way, I ran in to a gotcha over the last weekend. I was doing some (not very thorough) testing of the prerelase using a machine that I hadn't used in a while on which I'd installed the repo at around just before the 3.1 release and did an update to the current trunk for 3.3, rebuilt and invoked "make install". When trying to run some compile programs I got some very confusing error messages, and it took me a while to realise that 1. This update crossed the "refactor some of the headers locations into subdirectories" change, and 2. my test program was old and so happened to use some of the old paths. In this case every file, both old and new, can be found so there's no illuminating "file not found" error to indicate the test program is out-of-date; instead the mix of things totally confuses the compiler processing them. I'm not sure if this is a case of a "stupid user who doesn't follow elementary precautions" (ie, always run make uninstall) or if it's worth noting in the release notes that, due to the user visible headers location change, users should be especially careful to uninstall any old llvm before installing the new version. Does anyone think this would be worthwhile? Cheers, Dave From: llvmdev-bounces at cs.uiuc.edu [mailto:llvmdev-bounces at cs.uiuc.edu] On Behalf Of Eli Bendersky Sent: 25 May 2013 00:02 To: Kyle Holzinger Cc: LLVM Developers Mailing List Subject: Re: [LLVMdev] Installing LLVM Tools On Fri, May 24, 2013 at 3:27 PM, Kyle Holzinger <kholz at bu.edu> wrote: So I just started looking into LLVM and I was wondering how to install the LLVM tools suite. (Such as the llvm-as or lli commands in the terminal described here: http://llvm.org/docs/CommandGuide <http://llvm.org/docs/CommandGuide/> ). I have downloaded LLVM, Clang, the test suite, and have run the build and make commands. I have looked around on the website but I have not found a sufficient explanation of how to install the tools. If it is on there, feel free to send a link, but if not I would greatly appreciate any help. Kyle, once you've built the tools they are in the bin/ directory in the build location. You can also run "make install" to install them, as usual. Alternatively, you can just invoke them directly from that bin/ directory. Eli -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20130528/292565df/attachment.html>