Friday, August 20, 2010

Chrome Build Failed During Linking

I left my computer compiling Chrome last night. I awoke to the following error message:

LINK(target) out/Debug/chrome
collect2: ld terminated with signal 9 [Killed]

This turns out to be a known issue with linking Chrome on systems with only 2G of RAM. I did install the "gold" linker which uses less memory than the standard linker, but even with it you need a bit more than 2G of RAM.

Apparently there are a couple of different work-arounds for this:
  1. Build using shared libraries instead of a huge pre-linked executable (which slows down Chrome at launch as it then needs to load the shared libraries).
  2. Add some swap space to increase virtual memory.

I actually tried #1 - building with shared libraries, and ended up with the same failure. I'll give it another try, and then move on to approach #2. Or maybe it's time to just buy a new machine with 6 or 8 Gig of RAM.

Post a Comment

Note: Only a member of this blog may post a comment.