/usr/bin/ld out of memory (on ubuntu)

1,025 views
Skip to first unread message

Wayne

unread,
Dec 21, 2010, 5:41:31 AM12/21/10
to Chromium-dev

I ran into this error:

LINK(target) out/Debug/unit_tests

/usr/bin/ld: out of memory allocating 1000 bytes after a total of
937193472 bytes
collect2: ld returned 1 exit status

the system is

$ uname -rv
2.6.32-26-generic-pae #48-Ubuntu SMP

Any ideas?

Thanks,
W. Shao

Mattias Nissler

unread,
Dec 21, 2010, 5:49:06 AM12/21/10
to wsh...@gmail.com, Chromium-dev
Get a 64 bit development environment :) Building on 32 bit systems is really not supported.

The problem is that the debug version of the unit_tests binary links big libraries that exhaust ld's address space. You can try and build only the chrome target, which might still be small enough for a 32 bit linker to handle.
 

Thanks,
W. Shao

--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
   http://groups.google.com/a/chromium.org/group/chromium-dev

Evan Martin

unread,
Dec 21, 2010, 12:24:05 PM12/21/10
to wsh...@gmail.com, Chromium-dev
You are running out of memory, but I can still successfully build on a
32-bit machine.
http://code.google.com/p/chromium/wiki/LinuxFasterBuilds lists some ideas.
Definitely try using gold.

Chris Evans

unread,
Dec 21, 2010, 12:40:20 PM12/21/10
to ev...@chromium.org, wsh...@gmail.com, Chromium-dev
On Tue, Dec 21, 2010 at 9:24 AM, Evan Martin <ev...@chromium.org> wrote:
You are running out of memory, but I can still successfully build on a
32-bit machine.
http://code.google.com/p/chromium/wiki/LinuxFasterBuilds lists some ideas.
Definitely try using gold.

I was hitting this recently on 32-bit Linux. gold is a great start. To link the chrome binary itself in debug mode, I had to use the shared library build.

Cheers
Chris
Reply all
Reply to author
Forward
0 new messages