antoine-sachet/rocker-ML

Compile error on Mac

Opened this issue · 1 comments

While running the rocker-stan Docker on a Mac, my students get the error message below. All Windows users have been able to run the Docker and R script fine. All of the troubleshooting directly for brms and rstan send us round in circles trying to edit the Makevars file, which seems to be in a different location on the Docker. Any suggestions as to why this error only occurs on Macs would be much appreciated.

For reference, we are attempting to run fit8.1 from Doing Bayesian Data Analysis https://bookdown.org/content/3686/jags-brms.html#a-complete-example

Error in compileCode(f, code, language = language, verbose = verbose) : 

  /usr/local/lib/R/site-library/RcppEigen/include/Eigen/src/Core/DenseCoeffsBase.h:55:30: warning: ignoring attributes on template argument ‘Eigen::internal::packet_traits<double>::type’ {aka ‘__vector(2) double’} [-Wignored-attributes]   55 |                      >::type PacketReturnType;      |                              ^~~~~~~~~~~~~~~~g++: fatal error: Killed signal terminated program cc1pluscompilation terminated.make: *** [/usr/local/lib/R/etc/Makeconf:181: file2c26b238c17.o] Error 1

Error in sink(type = "output") : invalid connection

I've had the same problem. It turned out to be nothing more than an out of memory issue: increasing Docker memory limit to 3GB fixed it.