after multiple runs of trying to install CMDStan (via make build -j4; mingw32-make -j4) I always get the same error message: ( a shortened version of the error messages is displayed below).
Please note that I have includes Rtools mingw32 and windows/system in my PATH.
Operating System: Windows
CmdStan Version: 2-22.1
Compiler/Toolkit: Rtools33
Any help would be appreciated. Thank you very much!
Thank you very much for your reply. I did not use git - I downloaded and extracted the tar/gz files and followed the instructions in the cmd-stan guide.
I also tried - as a workaround - to install cmd stan via python - but then I got a huge (almost never ending) screen of messages and an error.
Thank you for your suggestions - I relocated the CMD installation to a different folder - but this did not solve my problem. (Btw: The rtools version was indeed a typo - sorry. I use the newest version that is currently recommended). If it helps in diagnosing the problem, I should also mention that there are lines in the error output (I wonât paste the whole output - its huge) like this:
and even after incorporating âclean-allâ I get a large output with content like:
âcc1plus.exe: sorry, unimplemented: 64-bit mode not compiled inâŠâ
Do you have any further ideas what could resolve this problem?
When running mingw-64-install.exe , you have to choose the x86_64 architecture on the settings screen. With this architecture, 64-bit is also the default target. If you run g++ -v , you should get something like:
C:\>g++ -v
Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=C:/Program\ Files/mingw-w64/x86_64-5.3.0-posix-seh-rt_v4-rev0/mingw64/bin/../libexec/gcc/x86_64-w64-mingw32/5.3.0/lto-wrapper.exe
Target: x86_64-w64-mingw32
what does g++ -v say on your machine, specifically, Target: ?
I have installed CmdStan recently on Windows 10 and struggled my way through multiple discussions forums to finally install it. I am a not an expert but I hope I can help with what I did during installation.
1.The output of g++ --version you shared doesnât seem the same as mentioned by Mitzi in the comment above. You may want to check your installation of mingw-64-install.exe.
2. I uninstalled MingW completely then I ran the installer mingw-64-install.exe. I choose x86_64 architecture and posix in the Threads options.
3. Add bind directory of MinGW-W64 to the Environment Variables. For me it looks something like C:\mingw-w64\mingw64\bin (The name might be different for you depending on which folder or directory you install in)
PS : @bbbales2@mitzimorris please donât down vote me. I am a beginner myself and I am happy to remove the comment if it doesnât seem correct according to you
Dont be discouraged from helping. If something worked for you, feel free to post.
Yeah, this seems to be a problem with environment variables and mingw.
I tend to just advise people to install RTools 3.5 (Rtools 4.0 support hasnt been properly tested yet) and uninstall any separate minGW installs. Rtools comes with everything you need for Stan/Cmdstan and we know it works on a clean system every time.
Anyone reading this in the future: If you need MinGW for some other project you are working on, see advice from @sam_learner. If not, uninstalling mingw and installing RTools is usually the easier route to cmdstan hapiness.
I think I had this problem before. I installed RTools 3.5 and then had to check that everything in PATH is correct until I got the output for g++ -v that @mitzimorris quoted (Target: x86_64-w64-mingw32).