bug-gnuzilla
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-gnuzilla] Compiling Icecat-24


From: Ivan Zaigralin
Subject: Re: [Bug-gnuzilla] Compiling Icecat-24
Date: Fri, 10 Oct 2014 15:17:43 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.8.1

I have no idea really, but may be this is related:

From the Slackware build script for firefox:

if [ "$ARCH" = "i486" ]; then
  SLKCFLAGS=""
  LIBDIRSUFFIX=""
  OPTIMIZE=" --enable-optimize=-O2 "
  # On IA32, use gold since GNU ld runs out of memory linking libxul.so:
  PATH="$(pwd)/gold:$PATH"
  export CC="gcc -B$(pwd)/gold"
  export CXX="g++ -B$(pwd)/gold"

On 10/07/2014 11:46 PM, Narcis Garcia wrote:
> "Memory exhausted" was the result for me too, when trying to compile in
> a 32-bit system with 16GiB of RAM.
> Probably it wasn't a memory problem.
> 
> 
> El 13/09/14 a les 08:22, Michał Masłowski ha escrit:
>>> Hi, when compiling Icecat-24 I have four times done
>>> './configure' successfully
>>> but always failed at the end of 'make' with error msg
>>>
>>> /usr/bin/ld: final link failed: Memory exhausted
>> [...]
>>> My system has 3.1 Gb memory and I have tried to minimise
>>> memory load. 
>>
>> It's a 32-bit system?  The problem is amount of virtual memory, not RAM,
>> assuming you have several gigabytes of swap.
>>
>> Possible solutions:
>>
>> - cross compile on a 64-bit system with more memory/swap
>>
>> - compile with -Wl,--reduce-memory-overheads and/or
>>   -Wl,--no-keep-memory: makes linking slower, but might fit in memory
>>   (there are also some other options that reduce resource usage at cost
>>   of the built binary's speed)
>>
>> - compile with the -g0 option, disable debug symbols: will make the
>>   resulting build impossible to debug, but will vastly reduce its size
>>
>> You can easily find what compiler flags are used by the Icecat build
>> system.  Looking for values like -O2 or -g in scripts and makefiles
>> should help; I think it didn't trust the user-supplied options.
>>
>> I had the same issue when linking WebKit with debug symbols on MIPS N32
>> (64-bit registers, 32-bit pointers: only 2 GiB of virtual memory).
>> Linking without debug symbols worked, while it wasn't useful when the
>> binary crashed deep in WebKit code (memory alignment issue: it enabled
>> alignment required by any MIPS on O32 only).  With the above linker
>> flags and debug symbols, linking took 17 minutes (1 GiB of RAM, a
>> gigabyte of swap used), while it worked.  I think Icecat enables debug
>> symbols by default.
>>
>>
>>
>> --
>> http://gnuzilla.gnu.org
>>
> 
> --
> http://gnuzilla.gnu.org
> 

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]