Compilation ERROR
Nobody has claimed this yet.
- Dominant language
- R
- Stars
- 1.1k
- Forks
- 266
- Avg merge
- 2h 56m
- Merged PRs (30d)
- 1
Description
Summary:
I get a Compilation ERROR when I run a Rstan function.
Description:
I get a Compilation ERROR when I run a Rstan function:
"Error in compileCode(f, code, language = language, verbose = verbose) :
Compilation ERROR, function(s)/method(s) not created! make: getcwd: : Bad address
make: stat:file1278243b3548.dll: Bad address
make: stat:file1278243b3548.o: Bad address
make: *** No rule to make target file1278243b3548.o', needed by file1278243b3548.dll'. Stop."
Reproducible Steps:
install.packages("rstan", type = "source")
library(rstan)
fx <- inline::cxxfunction( signature(x = "integer", y = "numeric" ) , '
return ScalarReal( INTEGER(x)[0] * REAL(y)[0] ) ;
' )
fx( 2L, 5 ) # should be 10
Current Output:
Loading required package: ggplot2
Want to understand how all the pieces fit together? Buy the ggplot2 book: http://ggplot2.org/book/
Loading required package: StanHeaders
rstan (Version 2.15.1, packaged: 2017-04-19 05:03:57 UTC, GitRev: 2e1f913d3ca3)
For execution on a local, multicore CPU with excess RAM we recommend calling
rstan_options(auto_write = TRUE)
options(mc.cores = parallel::detectCores())
make: getcwd: : Bad address
make: stat:file13c058b06f4d.dll: Bad address
make: stat:file13c058b06f4d.o: Bad address
make: *** No rule to make target file13c058b06f4d.o', needed by file13c058b06f4d.dll'. Stop.
Error in compileCode(f, code, language = language, verbose = verbose) :
Compilation ERROR, function(s)/method(s) not created! make: getcwd: : Bad address
make: stat:file13c058b06f4d.dll: Bad address
make: stat:file13c058b06f4d.o: Bad address
make: *** No rule to make target file13c058b06f4d.o', needed by file13c058b06f4d.dll'. Stop.
Expected Output:
If applicable, the output you expected from RStan.
RStan Version:
‘2.15.1’
R Version:
"R version 3.3.3 (2017-03-06)"
Operating System:
Windows 7.
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 the inline::cxxfunction example with RStan 2.15.1, R 3.3.3, and Windows 7, then inspect the reported make getcwd and missing-object errors. Done means identifying the cause of the compilation failure and documenting a confirmed fix or workaround.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- r
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100