<div dir="ltr"><div><div>I have a 7 years old computer with 1 GB RAM and I was able to build clang in debug mode. I created a swap file of 4 GB I think, and I've stopped using the computer at all, just grab some tea and wait.<br>

<br></div>This link shows you how you can create a swap file:<br><a href="http://askubuntu.com/questions/178712/how-to-increase-swap-space">http://askubuntu.com/questions/178712/how-to-increase-swap-space</a><br><br></div>

At least for me it worked well.<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">2014-06-02 15:46 GMT+02:00 Nancy <span dir="ltr"><<a href="mailto:nancydreaming@gmail.com" target="_blank">nancydreaming@gmail.com</a>></span>:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">$cd llvm-build<br>
$../llvm/configure --enable-targets=x86<br>
<br>
<br>
make[4]:正在离开目录 `/home/nancy/work/build-llvm/tools/clang/tools/libclang'<br>
make[4]: 正在进入目录 `/home/nancy/work/build-llvm/tools/clang/tools/c-index-test'<br>
llvm[4]: Linking Debug+Asserts executable c-index-test<br>
llvm[4]: ======= Finished Linking Debug+Asserts Executable c-index-test<br>
make[4]:正在离开目录 `/home/nancy/work/build-llvm/tools/clang/tools/c-index-test'<br>
make[4]: 正在进入目录 `/home/nancy/work/build-llvm/tools/clang/tools/c-arcmt-test'<br>
llvm[4]: Linking Debug+Asserts executable c-arcmt-test<br>
llvm[4]: ======= Finished Linking Debug+Asserts Executable c-arcmt-test<br>
make[4]:正在离开目录 `/home/nancy/work/build-llvm/tools/clang/tools/c-arcmt-test'<br>
make[4]: 正在进入目录 `/home/nancy/work/build-llvm/tools/clang/tools/driver'<br>
llvm[4]: Linking Debug+Asserts executable clang<br>
/usr/bin/ld: 最终连接失败: 内存耗尽 ( in english : Memory exhausted)<br>
collect2: error: ld returned 1 exit status<br>
make[4]: *** [/home/nancy/work/build-llvm/Debug+Asserts/bin/clang] 错误 1<br>
make[4]:正在离开目录 `/home/nancy/work/build-llvm/tools/clang/tools/driver'<br>
make[3]: *** [driver/.makeall] 错误 2<br>
make[3]:正在离开目录 `/home/nancy/work/build-llvm/tools/clang/tools'<br>
make[2]: *** [all] 错误 1<br>
make[2]:正在离开目录 `/home/nancy/work/build-llvm/tools/clang'<br>
make[1]: *** [clang/.makeall] 错误 2<br>
make[1]:正在离开目录 `/home/nancy/work/build-llvm/tools'<br>
make: *** [all] 错误 1<br>
<br>
<br>
What should I do to make debug enabled compiling successful? Anyone<br>
can tell me a tiny configuration which can save memory? I only have 3G<br>
RAM, Ubuntu kylin.<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
--<br>
Best Regards,<br>
Yu Rong Tan<br>
<br>
_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</a>         <a href="http://llvm.cs.uiuc.edu" target="_blank">http://llvm.cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br>
</div></div></blockquote></div><br></div>