-   Linux - Software (
-   -   Have GCC use SWAP instead of/with RAM (

Jeff91 07-12-2011 09:02 PM

Have GCC use SWAP instead of/with RAM
I'm trying to build firefox mobile (fennec) on a device that only has 256meg of RAM and it is failing out due to lack of RAM errors.

Is there a way I can force the GCC compiler to use SWAP space when compiling instead of RAM? I've got a fairly large swap file.


syg00 07-12-2011 09:29 PM

You cannot get stuff into swap without it being allocated in memory (RAM) and being evicted.
Check you don't have other users of RAM - /tmp for example. Make sure it isn't on a tmpfs (/dev/shm you can't do anything about).

Tinkster 07-13-2011 12:16 AM

Alternatively consider cross-compiling on your big-rig.

All times are GMT -5. The time now is 02:17 AM.