LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   Have GCC use SWAP instead of/with RAM (http://www.linuxquestions.org/questions/linux-software-2/have-gcc-use-swap-instead-of-with-ram-891390/)

Jeff91 07-12-2011 10: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.

~Jeff

syg00 07-12-2011 10: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 01:16 AM

Alternatively consider cross-compiling on your big-rig.


All times are GMT -5. The time now is 11:13 PM.