Problem building LLVM + Clang

Hello guys,
I have followed LLVM + Clang build instructions from to build clang from source on 16-bit ubuntu 14.04. It compiled for more than 10hrs but the build exited with the following message.

Linking CXX shared library …/…/…/…/lib/
collect2: error: ld terminated with signal 9 [Killed]
make[2]: *** [lib/] Error 1
make[2]: *** Deleting file `lib/’
make[1]: *** [tools/clang/tools/libclang/CMakeFiles/libclang.dir/all] Error 2
make: *** [all] Error 2

Can anyone help??


Maybe you’ve ran out of memory? Try compiling with less cores or adding some extra swap space if that doesn’t work.


I had the same problem with Ubuntu 14. You just should enlarge swap file on your system.