Skip to content

CRAN version of readr crashes the compiler on small-RAM Ubuntu 16.04 system #544

@znmeb

Description

@znmeb

I'm building a system on a Ubuntu 16.04LTS base. On a 1024 MB (64-bit) virtual machine I get this:

> install.packages("readr")
Installing package into ‘/home/ubuntu/R/x86_64-pc-linux-gnu-library/3.3’
(as ‘lib’ is unspecified)
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  191k  100  191k    0     0   505k      0 --:--:-- --:--:-- --:--:--  505k
* installing *source* package ‘readr’ ...
** package ‘readr’ successfully unpacked and MD5 sums checked
** libs
g++ -I/usr/share/R/include -DNDEBUG   -I"/home/ubuntu/R/x86_64-pc-linux-gnu-library/3.3/Rcpp/include" -I"/home/ubuntu/R/x86_64-pc-linux-gnu-library/3.3/BH/include"   -fpic  -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g  -c Collector.cpp -o Collector.o
virtual memory exhausted: Cannot allocate memory
/usr/lib/R/etc/Makeconf:141: recipe for target 'Collector.o' failed
make: *** [Collector.o] Error 1
ERROR: compilation failed for package ‘readr’
* removing ‘/home/ubuntu/R/x86_64-pc-linux-gnu-library/3.3/readr’
* restoring previous ‘/home/ubuntu/R/x86_64-pc-linux-gnu-library/3.3/readr’

The downloaded source packages are in
    ‘/tmp/RtmpnY2dFK/downloaded_packages’
Warning message:
In install.packages("readr") :
  installation of package ‘readr’ had non-zero exit status
> 

If I push the RAM up to 1536 MB it compiles. But if I enable two-job "make" it crashes again.

$ gcc --version
gcc (Ubuntu 5.4.0-6ubuntu1~16.04.2) 5.4.0 20160609

This is in a Vagrant box, so I can try various experiments.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions