I’m not sure where the best place is to post this, as most of the problems are with Bridgestan and I’m not sure whether these forums are supposed to cover that. However, I didn’t find a Bridgestan forum and the Github issue tracker for Bridgestan doesnt seem to be used for these types of things. If there is a better place to post this, I’d welcome a hint at that.
The short summary of the problem is:
- No Problems with RStan
- Cmdstanr throws lots of warnings during compile, but the model samples just fine.
- Bridgestan in R errors out of compilation with a code 2 error.
- Bridgestan in Julia seems to compile just fine, but then fails to load the created model file for sampling.
- Bridgestan invoked from the command line (when executing the “bridgestan installation test” from its manual) throws lots of warnings (similar to cmdstanr), and seems to compile sucessfully (I didnt try to sample from the resulting model).
Details:
What I’ve tried:
- Installed BridgeStan manually into C:\BridgeStan after Bridgestan in Julia auto-installed it to a path containing spaces (my windows user-name contains a space). I’m manually pointing Bridgestan in Julia (an in R) to that location.
- Reinstalled RTools exactly following the cmdstan toolchain install instructions, which the BridgeStan instruction point to. (including setting up PATH and running
“pacman -Sy mingw-w64-ucrt-x86_64-make mingw-w64-ucrt-x86_64-gcc” in msys2) - Tested with both RTools43 and RTools42 (currently both installed for testing purposes, but that wasnt the case when I started testing and the errors looked similar/identical back then).
- Lots of googling for the error messages.
What I’m not sure about:
- What versions of cmdstan, stan and stan-math and other dependencies each of the interfaces is using, or how to find out, and whether they are sharing this or each has its own installation. I’m assuming that these are things which users are not supposed to need to know about.
cmdstanr (version version 0.5.3, using CmdStan version: 2.30.1) returns this (the model samples just fine):
The “official BridgeStan installation test” returns this (i didnt try sampling the model):
Bridgestan in Julia (version 2.3.0) errors and returns this: (on a self-written (=possibly buggy) model, Julia version 1.10.0)
(the path is not a julia/package install path, its a folder where I test julia packages)
Bridgestan in R (version 2.3.0) errors and returns this: (on an official model, R version 4.2.1)
Operating System: Windows 10
I’m running out of ideas what I could try to resolve the problems! I hope someone here can help.