Problem building LLVM + Clang

Hello guys,
I have followed LLVM + Clang build instructions from http://clang.llvm.org/get_started.html 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/libclang.so
collect2: error: ld terminated with signal 9 [Killed]
make[2]: *** [lib/libclang.so.3.9] Error 1
make[2]: *** Deleting file `lib/libclang.so.3.9’
make[1]: *** [tools/clang/tools/libclang/CMakeFiles/libclang.dir/all] Error 2
make: *** [all] Error 2

Can anyone help??

Thanks
Sajjad

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

Cheers,
Erik

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