llvm-installation

hello sir,
in llvm installation ./configure command worked properly but while giving
make -j 4 command in ubuntu

everything got build properly but at last it showed error as

llvm[4]: Linking Debug+Asserts executable clang
collect2: ld terminated with signal 9 [Killed]
make[4]: *** [/home/manoj/Desktop/LLVM/
build/Debug+Asserts/bin/clang] Error 1
make[4]: Leaving directory /home/manoj/Desktop/LLVM/build/tools/clang/tools/driver' make[3]: *** [all] Error 1 make[3]: Leaving directory /home/manoj/Desktop/LLVM/build/tools/clang/tools’
make[2]: *** [all] Error 1
make[2]: Leaving directory /home/manoj/Desktop/LLVM/build/tools/clang' make[1]: *** [clang/.makeall] Error 2 make[1]: Leaving directory /home/manoj/Desktop/LLVM/build/tools’
make: *** [all] Error 1
it stopped building later by showing prompt simply.please help me to proceed.

You should use make -j with a number lower than 4, it looks like you ran out of memory when linking.

What I did for x86_64 bit system was
set hostas x86_64,
disable assert
and enable optimsed, (For All these config options was collected after going through ./configure --help)
and then simply make
followed by make install

I did the following which might not the best I am not clang developer yet.

./configure --enable-optimized --disable-assertions --enable-targets=x86_64