Compilation ERROR, function(s)/method(s) not created!
Nobody has claimed this yet.
- Dominant language
- R
- Stars
- 1.1k
- Forks
- 266
- Avg merge
- 2h 56m
- Merged PRs (30d)
- 1
Description
Description:
I'm trying to do the kidney example in [https://cran.r-project.org/web/packages/brms/vignettes/brms_overview.pdf] but everytime I run the code the same error shows
the r code
data("kidney")
head(kidney, n = 3)
fit1 <- brm(formula = time | cens(censored) ~ age * sex + disease
+ (1 + age|patient),
data = kidney, family = lognormal(),
prior = c(set_prior("normal(0,5)", class = "b"),
set_prior("cauchy(0,2)", class = "sd"),
set_prior("lkj(2)", class = "cor")),
warmup = 1000, iter = 2000, chains = 4,
control = list(adapt_delta = 0.95))
the error:
Compiling the C++ model
Error in compileCode(f, code, language = language, verbose = verbose) :
Compilation ERROR, function(s)/method(s) not created! file29d442da49f5.cpp:1:0: sorry, unimplemented: 64-bit mode not compiled in
^
make: *** [C:/PROGRA1/R/R-361.0/etc/x64/Makeconf:215: file29d442da49f5.o] Error 1
In addition: Warning message:
In system(cmd, intern = !verbose) :
running command 'C:/PROGRA1/R/R-361.0/bin/x64/R CMD SHLIB file29d442da49f5.cpp 2> file29d442da49f5.cpp.err.txt' had status 1
Error in sink(type = "output") : invalid connection
RStan Version: ‘2.18.2’
R Version:
R version 3.6.0 (2019-04-26)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows >= 8 x64 (build 9200)
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 kidney example from the linked brms overview PDF with RStan 2.18.2 on the reported Windows and R versions. Inspect the R CMD SHLIB invocation, the generated file29d442da49f5.cpp error, and the referenced R-3.6.0 x64 Makeconf line. Done means the model compiles without the 64-bit mode error.
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