Skip to content
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

Update doc to use stock RTools toolchain #765

Merged
merged 2 commits into from
Apr 22, 2024
Merged

Conversation

andrjohns
Copy link
Contributor

Submission Checklist

  • Builds locally
  • New functions marked with <<{ since VERSION }>>
  • Declare copyright holder and open-source license: see below

Summary

As of this Math PR, CmdStan and models can build and sample with the stock RTools toolchain (no need to install mingw32-make or gcc via msys2).

This PR updates the docs to remove all references to mingw32-make, and simplifies the windows toolchain setup to simply installing RTools43 and adding the folders to PATH

I've also removed the instructions for RTools40 and RTools42, since I don't think we want to continue maintaining instructions for every version of RTools that is released (this is mostly my opinion, happy to revert)

Copyright and Licensing

Please list the copyright holder for the work you are submitting (this will be you or your assignee, such as a university or company): Andrew Johnson

By submitting this pull request, the copyright holder is agreeing to license the submitted work under the following licenses:


Both RTools42 & RTools43 provide 64-bit UCRT toolchains, where RTools42 provides g++-10 and
RTools43 provides g++-12. The installation/configuration is identical for both toolchains.
RTools43 provides a 64-bit UCRT toolchains with GCC 12.3.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think only describing rtools43 is fine. This is probably a bit too short and technical to be useful to most users, though.

  1. Are we sure that the x86_64-w64-mingw32.static.posix folder even is UCRT based?
  2. If it is, we should probably retain the note that the UCRT requires windows 10+?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep it's definitely UCRT, mentioned in the toolchain doc.

Good point on keeping the Windows 10 note, didn't mean to delete that.

Any thoughts on changes for making it less technical? I'm not sure what would be useful here

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The best thing might be to say something like "RTools 43 provides all of the necessary tools to build Stan, including a C++ compiler and the make tool" and then link to those docs for more specifics?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good shout, will do

@andrjohns andrjohns merged commit df662ed into master Apr 22, 2024
@andrjohns andrjohns deleted the rtools-toolchain branch April 22, 2024 19:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants