[LLVMdev] How much memory clang llvm needs for debug compiling?

Anton Korobeynikov anton at korobeynikov.info
Mon Jun 2 08:08:40 PDT 2014


Also, here the problem is ld. Switching to gold may help to resolve the problem.

On Mon, Jun 2, 2014 at 6:42 PM, David Tweed <david.tweed at arm.com> wrote:
> Hi,
>
> Just a question: are you doing the actual build on a 32-bit x86 machine (not
> a 64-bit x86-64 machine)? This seems to be sensible, but I've rarely had
> problems doing a debug build on x86 within 2GB of memory (after ensuring
> only one link at once); it's always been the x86-64 builds that are tricky
> under low memory.
>
> Regards,
> Dave
>
> -----Original Message-----
> From: llvmdev-bounces at cs.uiuc.edu [mailto:llvmdev-bounces at cs.uiuc.edu] On
> Behalf Of Nancy
> Sent: 02 June 2014 14:47
> To: llvmbugs at cs.uiuc.edu; llvmdev at cs.uiuc.edu
> Subject: Re: [LLVMdev] How much memory clang llvm needs for debug compiling?
>
> $cd llvm-build
> $../llvm/configure --enable-targets=x86
>
>
> make[4]:正在离开目录
> `/home/nancy/work/build-llvm/tools/clang/tools/libclang'
> make[4]: 正在进入目录
> `/home/nancy/work/build-llvm/tools/clang/tools/c-index-test'
> llvm[4]: Linking Debug+Asserts executable c-index-test
> llvm[4]: ======= Finished Linking Debug+Asserts Executable c-index-test
> make[4]:正在离开目录
> `/home/nancy/work/build-llvm/tools/clang/tools/c-index-test'
> make[4]: 正在进入目录
> `/home/nancy/work/build-llvm/tools/clang/tools/c-arcmt-test'
> llvm[4]: Linking Debug+Asserts executable c-arcmt-test
> llvm[4]: ======= Finished Linking Debug+Asserts Executable c-arcmt-test
> make[4]:正在离开目录
> `/home/nancy/work/build-llvm/tools/clang/tools/c-arcmt-test'
> make[4]: 正在进入目录 `/home/nancy/work/build-llvm/tools/clang/tools/driver'
> llvm[4]: Linking Debug+Asserts executable clang
> /usr/bin/ld: 最终连接失败: 内存耗尽 ( in english : Memory exhausted)
> collect2: error: ld returned 1 exit status
> make[4]: *** [/home/nancy/work/build-llvm/Debug+Asserts/bin/clang] 错误 1
> make[4]:正在离开目录 `/home/nancy/work/build-llvm/tools/clang/tools/driver'
> make[3]: *** [driver/.makeall] 错误 2
> make[3]:正在离开目录 `/home/nancy/work/build-llvm/tools/clang/tools'
> make[2]: *** [all] 错误 1
> make[2]:正在离开目录 `/home/nancy/work/build-llvm/tools/clang'
> make[1]: *** [clang/.makeall] 错误 2
> make[1]:正在离开目录 `/home/nancy/work/build-llvm/tools'
> make: *** [all] 错误 1
>
>
> What should I do to make debug enabled compiling successful? Anyone
> can tell me a tiny configuration which can save memory? I only have 3G
> RAM, Ubuntu kylin.
>
>
> --
> Best Regards,
> Yu Rong Tan
>
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>
>
>
>
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev



-- 
With best regards, Anton Korobeynikov
Faculty of Mathematics and Mechanics, Saint Petersburg State University




More information about the llvm-dev mailing list