mailing list of musl libc
 help / color / mirror / code / Atom feed
* llvm-3.3 memory exhausted error
@ 2013-06-18 13:03 plan9assembler
  2013-06-18 13:42 ` Szabolcs Nagy
  0 siblings, 1 reply; 2+ messages in thread
From: plan9assembler @ 2013-06-18 13:03 UTC (permalink / raw)
  To: musl

[-- Attachment #1: Type: text/plain, Size: 542 bytes --]

Hi,

i am using latest musl git version,
when i trying to build llvm-3.3, i got follow error message:

../llvm/configure --prefix=/usr --build=x86_64-linux-musl
make
...
Linking Debug+Asserts executable clang
/llvm-build/Debug+Asserts/lib/libLLVMCodeGen.a: could not read symbols:
Memory exhausted
collect2: error: ld returned 1 exit status
...

my previous llvm compilation was succeed about 3 weeks ago,
although it got runtime error, but build was fine.

musl git version works fine, because, compile & install util-linux-2.23.1
was fine.

[-- Attachment #2: Type: text/html, Size: 737 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: llvm-3.3 memory exhausted error
  2013-06-18 13:03 llvm-3.3 memory exhausted error plan9assembler
@ 2013-06-18 13:42 ` Szabolcs Nagy
  0 siblings, 0 replies; 2+ messages in thread
From: Szabolcs Nagy @ 2013-06-18 13:42 UTC (permalink / raw)
  To: musl

* plan9assembler <plan9assembler@gmail.com> [2013-06-18 22:03:53 +0900]:
> Linking Debug+Asserts executable clang
> /llvm-build/Debug+Asserts/lib/libLLVMCodeGen.a: could not read symbols:
> Memory exhausted
> collect2: error: ld returned 1 exit status
> ...

gnu ld ran out of memory as usual
(i dont think this issue is musl related)

google had the same problem so they wrote the gold linker
(you can try that, it's in binutils)

you can also try the magic flags
-Wl,--no-keep-memory,--reduce-memory-overheads
(this will make linking even slower)

you can try to run ld under valgrind to see if there are leaks
and report the bugs to binutils

alternatively buy more ram

or report the bug to llvm that their code is too bloated


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-06-18 13:42 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-06-18 13:03 llvm-3.3 memory exhausted error plan9assembler
2013-06-18 13:42 ` Szabolcs Nagy

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).