-
-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Windows 11 issue: precompiled headers Error 1 #1048
Comments
Sorry for the issue. So there's no error message when installing/building CmdStan itself, only when compiling a model? What happens if you rebuild CmdStan using e.g. Unfortunately I'm a bit out of my depth when it comes to debugging Windows issues installation issues and I think the CmdStanR developers more comfortable with Windows are pretty busy at the moment. @WardBrian any ideas? If this is related to mingw32-make, then could it potentially help to use the development version of CmdStanR from GitHub, which would allow the user to set it to use regular |
That looks like a truncated message from |
Not sure about brms, but if this is an issue with CmdStan/CmdStanR that is independent of brms then @qdread you could try compiling a regular CmdStanR model and using # quiet is passed to the compile() method
mod <- cmdstan_model(file, quiet = FALSE) That should print everything I think. |
Thank you for your messages and sorry for the late reply. I am passing these recommendations on to the client and we will see if any of it helps or at least helps to diagnose the error. |
Hi there, I had the client first try rebuild_cmdstan console output
cmdstan_model console output
|
@jgabry does quiet=False also show standard error? Even with that flag the above look like they’re not actually containing all that much information |
Hmm, in theory I think it should print standard error. We use the
(quoted from https://processx.r-lib.org/reference/run.html#arguments) If it would be helpful, I could make a branch of cmdstanr where the |
I am assisting a client installing cmdstan and cmdstanr on a Windows 11 machine. I have tried various strategies for installing CmdStan, none of which have been successful. We've tried the standard procedure of using
cmdstanr::install_cmdstan()
as well as installing cmdstan via Anaconda, and setting cmdstan path to the instance of cmdstan installed by Anaconda. When usinginstall_cmdstan()
, it verifies that the toolchain is set up properly, and Rtools appears as expected in the PATH variable.Unfortunately both ways of installing lead to the same error message when we try to run a model: mingw32-make Error 1 in model_header.hpp.gch. Below is a representative console + error log when we try to run a brms model with cmdstanr backend.
By the way I also tried running
install_cmdstan
with PRECOMPILED_HEADERS=FALSE but that did not seem to solve the problem either.OS is Windows 11 running R 4.4.1 and installing latest stable versions of CmdStan and CmdStanR.
Console & error log:
The text was updated successfully, but these errors were encountered: