On Mon, 2021-04-05 at 18:29 +0200, k...@aspodata.se wrote:
> 
> So, how much memory does R need to build ?
> I have:
> 
> $ free
>                total        used        free      shared  buff/cache   
> available
> Mem:         6103628     1807560     2631444      146376     1664624     
> 3107868
> Swap:        8788924      670108     8118816
> 

We have the same amount of RAM, but building dev-lang/R doesn't come
close to using it all on my machine, even with MAKEOPTS="-j4"...

> 
>  I already have (in make.conf):
> EMERGE_DEFAULT_OPTS="--jobs 1 ..."
> 
>   This seems to solved the issue:  
> # cat /etc/portage/env/j1 
> MAKEOPTS=-j1
> # cat /etc/portage/package.env/R 
> dev-lang/R j1

That will work around the issue, and you may have to use that trick for
some other packages like firefox/LLVM with "only" 6GB of RAM. But it
doesn't explain why I can build dev-lang/R and you can't.

What USE flags does "emerge -pv1 dev-lang/R" show? Are you willing to
watch "htop" in another window while the dev-lang/R build fails to see
how much memory is free?


Reply via email to