-
-
Notifications
You must be signed in to change notification settings - Fork 69
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
document function rebuild_cmdstan
; add detection of need to rebuild gch headers; improve error message
#759
Comments
What version of cmdstan are you using and what is the error you’re getting? A couple versions ago we made a change to try to decrease the frequency of errors here but it’s not clear if we succeeded |
ask @bob-carpenter |
Here's the output I got. This time I cut and pasted and searched for 'PCH' and realized it did show up as a cmdstanpy warning. Why isn't this an ERROR since nothing can happen with an out of date PCH? Also, why are you asking people to open a bug report given that this is expected behavior for which we have no better solution?
Since the meaningful error message had scrolled off my screen:
When Mitzi and I were looking at the output, we only saw this:
Then we couldn't figure out which command to call to do that from Python. There's no doc I can find for |
If
The second is the bigger concern, which is also why we paste the full output now; in the past, if we thought the PCH was the issue, we would show only that warning, but we then had several issues where the error was actually something else, but just mentioned the pch file, so we misdiagnosed it in the code. Unfortunately, different versions of clang also feature very different error messages for this, so we can't really detect it with 100% accuracy. This is also why it is a warning rather than an error, because it might be wrong. Thanks for the error message. It seems like at some point apple clang started being pickier about the precompiled header even within the same compiler version. I think we can improve this by telling the cmdstan build system to re-build that file when system headers change - before we were explicitly only depending on our own files, but that doesn't work for this kind of artifact really. I added the change to a PR I already have on the PCH feature: stan-dev/cmdstan@c1d0cae |
|
Summary:
When compilation fails because the user needs to rebuild cmdstan, detect this failure and make a better error message.
Add troubleshooting section to the docs, and document function
rebuild_cmdstan
.Description:
This is very frustrating for MacOS users, because when Xcode changes, CmdStan needs to be rebuilt.
The text was updated successfully, but these errors were encountered: