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.
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
On Mon, Jun 2, 2014 at 6:42 PM, David Tweed <david...@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...@cs.uiuc.edu [mailto:llvmdev...@cs.uiuc.edu] On
> Behalf Of Nancy
> Sent: 02 June 2014 14:47
> To: llvm...@cs.uiuc.edu; llv...@cs.uiuc.edu
> Subject: Re: [LLVMdev] How much memory clang llvm needs for debug compiling?
>
--
With best regards, Anton Korobeynikov
Faculty of Mathematics and Mechanics, Saint Petersburg State University
-eric