while a package is being compiled, the compilation exceeded the available memory.
We are working to both make more memory available and to build & cache more packages, but at this time there isn't a good work around when you hit this. Apologies.
I get the same g++: internal compiler error: Killed (program cc1plus) error as above and the package is clearly installed from source:
> install.packages("quanteda")
Installing package into ‘/home/rstudio-user/R/x86_64-pc-linux-gnu-library/3.4’
(as ‘lib’ is unspecified)
trying URL 'http://package-proxy/src/contrib/quanteda_1.3.0.tar.gz'
Content type 'application/gzip' length 4224707 bytes (4.0 MB)
==================================================
downloaded 4.0 MB
* installing *source* package ‘quanteda’ ...
** package ‘quanteda’ successfully unpacked and MD5 sums checked
** libs
g++ -std=gnu++11 -I/opt/R/3.4.4/lib/R/include -DNDEBUG -DARMA_DONT_PRINT_OPENMP_WARNING -I"/home/rstudio-user/R/x86_64-pc-linux-gnu-library/3.4/Rcpp/include" -I"/home/rstudio-user/R/x86_64-pc-linux-gnu-library/3.4/RcppParallel/include" -I"/home/rstudio-user/R/x86_64-pc-linux-gnu-library/3.4/RcppArmadillo/include" -I/usr/local/include -DARMA_64BIT_WORD=1 -fpic -g -O2 -c RcppExports.cpp -o RcppExports.o
g++: internal compiler error: Killed (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-5/README.Bugs> for instructions.
make: *** [RcppExports.o] Error 4
/opt/R/3.4.4/lib/R/etc/Makeconf:168: recipe for target 'RcppExports.o' failed
ERROR: compilation failed for package ‘quanteda’
* removing ‘/home/rstudio-user/R/x86_64-pc-linux-gnu-library/3.4/quanteda’
Warning in install.packages :
installation of package ‘quanteda’ had non-zero exit status
The downloaded source packages are in
‘/tmp/RtmpAyS9RO/downloaded_packages’
I just checked, and saw that the last version was published on CRAN after you built the binary. So that might be the reason why RSpectra is installed from cache and quanteda is not .
Ok, thanks. For future reference: is there a way to pre-build a package and upload it? The cloud is using Ubuntu 16.04, I'm using Ubuntu 18.04 so they shouldn't be too different?