Segementation fault when linking clang


I’m trying to build clean checkout of clang on VirtualBox with Xubuntu installed on it. I use the following script do do it:

svn co llvm
cd llvm/tools
svn co clang
cd clang/tools
svn co extra
cd …/…/…/…
cd llvm/projects
svn co compiler-rt
cd …/…
mkdir build
cd build
sudo make install

I get the following error:

llvm[4]: Linking Debug+Asserts executable clang
collect2: error: ld terminated with signal 11 [Segmentation fault], core dumped
make[4]: *** [/home/grbartos/clang/build/Debug+Asserts/bin/clang] Error 1
make[4]: Leaving directory /home/grbartos/clang/build/tools/clang/tools/driver' make[3]: *** [driver/.makeall] Error 2 make[3]: Leaving directory /home/grbartos/clang/build/tools/clang/tools’
make[2]: *** [all] Error 1
make[2]: Leaving directory /home/grbartos/clang/build/tools/clang' make[1]: *** [clang/.makeall] Error 2 make[1]: Leaving directory /home/grbartos/clang/build/tools’
make: *** [all] Error 1

I did it a few times before and never had such problems. Thanks for any help.

Could it run out of memory?