About gold32: fatal error: out/Debug/chrome: mmap: failed to allocate

654 views
Skip to first unread message

Xing Xu

unread,
Dec 27, 2012, 10:20:05 PM12/27/12
to Chromium-dev
Hi, I download the latest code of chromium and trying to build under ubuntu 10.04/i386.My PC has 16GB ram and pae is enabled.
But the compile was fail.

The compile errors:
out/Debug/../../third_party/gold/gold32: fatal error: out/Debug/chrome: mmap: failed to allocate 1542041948 bytes for output file: Cannot allocate memory
collect2: ld returned 1 exit status
make: *** [out/Debug/chrome] Error 1


The memory information of my PC:
free -m
             total       used       free     shared    buffers     cached
Mem:         16065       3394      12671          0        466       1798
-/+ buffers/cache:       1128      14936
Swap:        10655          0      10655

Torne (Richard Coles)

unread,
Dec 28, 2012, 4:38:29 AM12/28/12
to open...@gmail.com, Chromium-dev

Use a 64-bit machine. The 32-bit linker can't map more than 3gb into its address space.

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

Reid Kleckner

unread,
Dec 28, 2012, 1:37:52 PM12/28/12
to to...@google.com, open...@gmail.com, Chromium-dev
I haven't tried this, but you can probably also turn off debug symbols for WebKit and reduce the size of the final binary enough to link.  See https://code.google.com/p/chromium/wiki/LinuxFasterBuilds#Build_WebKit_without_debug_symbols
Reply all
Reply to author
Forward
0 new messages