llvm/clang compile error with Memory exhausted

前端 未结 2 1820
醉梦人生
醉梦人生 2021-02-03 23:38

I am trying to build the latest llvm/clang code on my ubuntu 14.04 vm, which has 2GB memory.

What I did is a normal configure/make procedure, without any parameters to t

相关标签:
2条回答
  • 2021-02-03 23:58

    Another consideration: If you have Make running parallel jobs (e.g., make -j8), the concurrently executing jobs may require too much memory.

    0 讨论(0)
  • 2021-02-04 00:06

    You need to do one of the following:

    1. Add more RAM to your VM, or
    2. Use gold instead of ld as a linker, or
    3. Build Release(-DCMAKE_BUILD_TYPE=Release), not Debug build
    0 讨论(0)
提交回复
热议问题