Errors building STAN program in CmdStan 2.20 & 2.19.1

Hi,
there is a related thread which lists a bunch of things to try: Trouble building the Bernoulli example (Windows 10, cmdstan 2.19.1) most notably upgrading RTools to 3.5. Does any of the proposed steps work for you?

Hope that helps!