this is my manual how i install llvm on ubuntu 12.10 64 bit


follow the llvm getting started guide at [1]


  • linking some parts of llvm required about 3 gb of ram
  • compiling llvm required 8 gb disk space
  • compiling of llvm took about 1 day since it hit both formerly mentioned boundaries


see manual on

svn co libcxx

note: instead of using symlinks (as i did) you can also copy the respective files and directories.

afterwards i built it using

cd libcxx/lib

installation of libcxx on linux

sudo su
ln -sf /home/schiejo/libcxx/include /usr/include/c++/v1
ln -s /home/schiejo/libcxx/lib/   
ln -s /home/schiejo/libcxx/lib/        

additional files for libcxx

libcxx seems to not have cxxabi.h and lacks all files out of the two bits directory of libstdc++6-4.7-dev:amd64 (on ubuntu 64 bit linux)

sudo su
ln -s /usr/include/c++/4.7/cxxabi.h /home/schiejo/libcxx/include/cxxabi.h
ln -s /usr/include/c++/4.7/bits /home/schiejo/libcxx/include/
ln -s /usr/include/c++/4.7/x86_64-linux-gnu/bits/* /home/schiejo/libcxx/include/bits

note: thanks to Paul Koerbitz [2]


Powered by MediaWiki