Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compile error on Mac #2

Open
ltipton opened this issue Mar 12, 2021 · 1 comment
Open

Compile error on Mac #2

ltipton opened this issue Mar 12, 2021 · 1 comment

Comments

@ltipton
Copy link

ltipton commented Mar 12, 2021

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
@jlorenzetti
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants