Installing LLVM Tools

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: 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.


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


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?