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

llvm

follow the llvm getting started guide at [1]

note:

  • 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

libcxx

see manual on http://libcxx.llvm.org/

svn co http://llvm.org/svn/llvm-project/libcxx/trunk 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
./builit

installation of libcxx on linux

sudo su
ln -sf /home/schiejo/libcxx/include /usr/include/c++/v1
ln -s /home/schiejo/libcxx/lib/libc++.so.1.0 libc++.so.1   
ln -s /home/schiejo/libcxx/lib/libc++.so.1.0 libc++.so        

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]

links

Powered by MediaWiki