Compilation ERROR, after successful install
Nobody has claimed this yet.
- Dominant language
- R
- Stars
- 1.1k
- Forks
- 266
- Avg merge
- 2h 56m
- Merged PRs (30d)
- 1
Description
Summary:
After following the instructions on https://github.com/stan-dev/rstan/wiki/Installing-RStan-on-Mac-or-Linux, I get a compile error when I try to run any of the demos or my own model.
Description:
After executing the demo, it downloads and begins to run, declaring variables etc. And then it stops and a long screen of text issues with the final error message shown below.
On my other mac the demo seems to run ok. Both macs have the same setup apart from the version of StanHeaders, which is 2.18.0 on the mac that fails, and 2.17.2 on the mac that works. I would like to install and test 2.17.2 on the problem mac but I don't know how to download and install an older version of StanHeaders.
Reproducible Steps:
install.packages("rstan", repos = "https://cloud.r-project.org/", dependencies=TRUE)
library(rstan)
stan_demo(461)
Current Output:
Error in compileCode(f, code, language = language, verbose = verbose) :
Compilation ERROR, function(s)/method(s) not created! In file included from file9a17a1e3827.cpp:8:
In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/StanHeaders/include/src/stan/model/model_header.hpp:4:
In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/StanHeaders/include/stan/math.hpp:4:
In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/StanHeaders/include/stan/math/rev/mat.hpp:4:
In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/StanHeaders/include/stan/math/rev/core.hpp:4:
In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/StanHeaders/include/stan/math/rev/core/autodiffstackstorage.hpp:4:
/Library/Frameworks/R.framework/Versions/3.5/Resources/library/StanHeaders/include/stan/math/memory/stack_alloc.hpp:145:10: warning: 'auto' type specifier is a C++11 extension [-Wc++11-extensions]
for (auto& bloc
In addition: Warning messages:
1: In stan_model(MODELS, model_name = model) :
StanHeaders version is ahead of rstan version; update to latest rstan
2: In system(cmd, intern = !verbose) :
running command '/Library/Frameworks/R.framework/Resources/bin/R CMD SHLIB file9a17a1e3827.cpp 2> file9a17a1e3827.cpp.err.txt' had status 1
Expected Output:
If applicable, the output you expected from RStan.
RStan Version:
The version of RStan you are running (e.g., from packageVersion("rstan"))
‘2.17.4’
R Version:
The version of R you are running (e.g., from R.version.string)
"R version 3.5.1 (2018-07-02)"
Operating System:
Your operating system (e.g., OS X 10.11.3)
macOS Mojave 10.14
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing stan_demo(461) after installing rstan 2.17.4 and StanHeaders 2.18.0 on macOS Mojave with R 3.5.1. Read the reported compileCode output and the StanHeaders-ahead-of-rstan warning, then compare the working StanHeaders 2.17.2 setup. Done means the version compatibility or compilation failure is reproducibly diagnosed and documented.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- r
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100