title: llvm/clang compile error with Memory exhausted
body: <p>I am trying to build the latest llvm/clang code on my ubuntu 14.04 vm, which has 2GB memory.</p>
  
  <p>What I did is a normal configure/make procedure, without any parameters to these two commands.</p>
  
  <p>at last, I have the following error:</p>
  
  <blockquote>
    <p>llvm[4]: Linking Debug+Asserts executable clang<br>
    /usr/bin/ld: failed to set dynamic section sizes: Memory exhausted<br>
    collect2: error: ld returned 1 exit status<br>
    make[4]: *** [/home/alex/Downloads/llvm_build/Debug+Asserts/bin/clang] Error 1<br>
    make[4]: Leaving directory <code>/home/alex/Downloads/llvm_build/tools/clang/tools/driver' 
    make[3]: *** [driver/.makeall] Error 2 
    make[3]: Leaving directory</code>/home/alex/Downloads/llvm_build/tools/clang/tools'<br>
    make[2]: <em>*</em> [all] Error 1<br>
    make[2]: Leaving directory <code>/home/alex/Downloads/llvm_build/tools/clang' 
    make[1]: *** [clang/.makeall] Error 2 
    make[1]: Leaving directory</code>/home/alex/Downloads/llvm_build/tools'<br>
    make: *** [all] Error 1  </p>
  </blockquote>
  
  <p>Does anyone know how to resolve this?</p>