January 7, 2005

RAMming Speed: Adventures in MinGW Mozilla, Part One

*crunch*

I'd been stuck on gklayout.dll (linking layout is so fun) for at least twenty minutes, and then suddenly I start hearing my hard drive spin. I'm thinking, "okay, it's borrowing swap file."

There was only so much in the bank, though:
d:\MINGW\BIN\..\lib\gcc\mingw32\3.4.2\..\..\..\..\mingw32\bin\ld.exe: BFD 2.15.9
1 20040904 internal error, aborting at ../../src/bfd/cache.c line 495 in bfd_cache_lookup_worker
d:\MINGW\BIN\..\lib\gcc\mingw32\3.4.2\..\..\..\..\mingw32\bin\ld.exe: Please report this bug.
collect2: ld returned 1 exit status
make[4]: *** [gklayout.dll] Error 1

...

Those familiar with building Mozilla know the rest of the story.

I'm about to attempt it again, moving my swap file to the D drive I'm building on, and setting it up to 1800 MB. I hope it works...

Posted by WeirdAl at January 7, 2005 7:56 PM
Comments

when I compile moz I use the following in my LDFLAGS

LDFLAGS='-Wl,--no-keep-memory -Wl,--reduce-memory-overheads'

that should hopefully use less mem (and less swap). Though you might find the smaller dll/exe's abit slower at linking...

Posted by: basic at January 8, 2005 10:03 AM