stan-dev / rstan

RStan, the R interface to Stan
https://mc-stan.org
1.04k stars 265 forks source link

Compilation ERROR #406

Open peterjohnsonR opened 7 years ago

peterjohnsonR commented 7 years ago

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 byfile1278243b3548.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 byfile13c058b06f4d.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 byfile13c058b06f4d.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.

bgoodri commented 7 years ago

Apparently it has been over 20 years since someone posted a message on the internet with the string

make: getcwd: : Bad address

so it is fair to say I have no idea what would cause this. Possibly try making sure that Rcpp is compiled with the same settings. Possibly your hardware is failing. Most likely something else.

On Tue, Apr 25, 2017 at 11:46 AM, peterjohnsonR notifications@github.com wrote:

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 byfile1278243b3548.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: 2e1f913 https://github.com/stan-dev/rstan/commit/2e1f913d3ca3678128f159b3d17d3d1f9b82704e ) 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 byfile13c058b06f4d.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 byfile13c058b06f4d.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.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/stan-dev/rstan/issues/406, or mute the thread https://github.com/notifications/unsubscribe-auth/ADOrqtZxqPU13bGIkeECfpThAYeKZJHnks5rzhU8gaJpZM4NHrrW .

alex-haden commented 6 years ago

Did you ever get around this error?