Richard Fish wrote:
> BTW, -O3 uses *a lot* more ram to compile compared to -O2.  Indeed,
> gcc will sometimes take 200-500MB of RAM to compile a single C++
> module.  So combined with MAKEOPTS=-j2, and only 512MB of RAM total,
> yeah, I think you ran out of memory.
> 
> In fact, you may want to drop to MAKEOPTS=-j1 permanently.  Swapping
> is simply not something you want to do when compiling...it is too damn
> slow.  If you run so many jobs that some get pushed to swap, it would
> be far faster to run one job at a time without swapping!

Thanks for the advice Richard!

R
-- 
[email protected] mailing list

Reply via email to