Open Ari04T opened 1 year ago
Alright, so I discovered the problem. For some reason, the program is attempting to use tbb.dll from system32. I'm not even sure which program installed it there, but it's taking priority over the tbb.dll file that's in the cmdstan folder (and it has been included at the top of the path). Regardless of the path being set correctly, cmdstan still tries to use the tbb.dll file from system32. I'm not sure if this is caused by the Windows File Protection system but I'm guessing that's a possibility.
In any case, I changed the tbb.dll file name in system32 and the example model seems to run just fine. I'm not sure if there's a way to correct this directly in cmdstan or something but I'm leaving this comment here in case someone in the future gets the same problem. Maybe the title could be changed to tbb.dll error or similar? Thanks!
Describe the bug While attempting to run the
cmdstanr_example()
I get the following error:To Reproduce
Expected behavior Run the model
Operating system Running R 4.2.1 in Windows 10.
CmdStanR version number
Your CmdStanR version number (e.g. from
packageVersion("cmdstanr")
).Additional context The output is in Spanish but it just says that it can't find the _ZN3tbb... procedure point of entrance in the library of dynamic links.
I've tried reinstalling rstan and its headers as well as their dependencies from source. The output of the cmdstan toolchain is successful and the path seems to be in a normal local library. I've also tried to rebuild cmdstan with
rebuild_cmdstan()
but to no avail. Rstan works just fine. Runningexample(stan_model, package = "rstan", run.dontrun = TRUE)
compiles alright and it runs the resamples. Only when I try to use thecmdstan
backend I get the error that I just showed.