Anyone have any idea what I should do to fix this problem?
~/dev/rstan/rstan (develop)> mk check
if test -d tmpstanlib; then ln -s ../../../tmpstanlib/ ./rstan/inst/include/stanlib; else ln -s ../../../../stan/lib ./rstan/inst/include/stanlib; fi
ln -s ../../../../stan/src ./rstan/inst/include/stansrc
R --vanilla CMD build rstan --md5 # --no-build-vignettes --no-manual
* checking for file ‘rstan/DESCRIPTION’ ... OK
* preparing ‘rstan’:
* checking DESCRIPTION meta-information ... OK
* cleaning src
* installing the package to process help pages
* saving partial Rd database
* creating vignettes ...sh: line 1: 35217 Segmentation fault: 11 '/Library/Frameworks/R.framework/Resources/bin/Rscript' --vanilla --default-packages= -e "tools::buildVignettes(dir = '.', tangle = TRUE)" > '/var/folders/z7/4wl_4ypj03g3fvr82p135bn00000gn/T//Rtmp2P0RnC/xshell89087e481239' 2>&1
ERROR
Loading required package: Rcpp
Loading required package: inline
Attaching package: ‘inline’
The following object is masked from ‘package:Rcpp’:
registerPlugin
rstan (Version 2.2.0, packaged: , GitRev: 68c183a6b42c)
*** caught segfault ***
address 0x20, cause ‘memory not mapped’
Traceback:
1: .Call(Module__functions_names, xp)
2: Module(module, mustStart = TRUE)
3: .getModulePointer(x)
4: <S4 object of class "Module">$stan_fit4model89912cdbada0_schools
5: <S4 object of class "Module">$stan_fit4model89912cdbada0_schools
6: eval(expr, envir, enclos)
7: eval(call("$", mod, paste("stan_fit4", model_cppname, sep = "")))
8: .local(object, ...)
9: sampling(sm, data, pars, chains, iter, warmup, thin, seed, init, check_data = TRUE, sample_file = sample_file, diagnostic_file = diagnostic_file, verbose = verbose, algorithm = match.arg(algorithm), control = control, ...)
10: sampling(sm, data, pars, chains, iter, warmup, thin, seed, init, check_data = TRUE, sample_file = sample_file, diagnostic_file = diagnostic_file, verbose = verbose, algorithm = match.arg(algorithm), control = control, ...)
11: stan(file = "schools.stan", data = schools_data, iter = 100, chains = 4)
12: eval(expr, envir, enclos)
13: eval(expr, .GlobalEnv)
14: withVisible(eval(expr, .GlobalEnv))
15: doTryCatch(return(expr), name, parentenv, handler)
16: tryCatchOne(expr, names, parentenv, handlers[[1L]])
17: tryCatchList(expr, classes, parentenv, handlers)
18: tryCatch(expr, error = function(e) { call <- conditionCall(e) if (!is.null(call)) { if (identical(call[[1L]], quote(doTryCatch))) call <- sys.call(-4L) dcall <- deparse(call)[1L] prefix <- paste("Error in", dcall, ": ") LONG <- 75L msg <- conditionMessage(e) sm <- strsplit(msg, "\n")[[1L]] w <- 14L + nchar(dcall, type = "w") + nchar(sm[1L], type = "w") if (
is.na(w)) w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L], type = "b") if (w > LONG) prefix <- paste0(prefix, "\n ") } else prefix <- "Error : " msg <- paste0(prefix, conditionMessage(e), "\n") .Internal(seterrmessage(msg[1L])) if (!silent && identical(getOption("show.error.messages"), TRUE)) { cat(msg, file = stderr()) .Internal(printDeferredWarnings()) } invisible(structure(msg, class = "try-error", condition = e))})
19: try(withVisible(eval(expr, .GlobalEnv)), silent = TRUE)
20: evalFunc(ce, options)
21: tryCatchList(expr, classes, parentenv, handlers)
22: tryCatch(evalFunc(ce, options), finally = { cat("\n") sink()})
23: driver$runcode(drobj, chunk, chunkopts)
24: utils::Sweave(...)
25: engine$weave(file, quiet = quiet)
26: doTryCatch(return(expr), name, parentenv, handler)
27: tryCatchOne(expr, names, parentenv, handlers[[1L]])
28: tryCatchList(expr, classes, parentenv, handlers)
29: tryCatch({ engine$weave(file, quiet = quiet) setwd(startdir) find_vignette_product(name, by = "weave", engine = engine)}, error = function(e) { stop(gettextf("processing vignette ‘%s’ failed with diagnostics:\n%s", file, conditionMessage(e)), domain = NA, call. = FALSE)})
30: tools::buildVignettes(dir = ".", tangle = TRUE)
aborting ...
make: *** [rstan_2.2.0.tar.gz] Error 1