Can no longer compile models

I have been using r/rstudio/rstan for a few years now and not had any real issues. Starting this past weekend I started getting errors when trying to compile any of my models. I reinstalled R/Rstudio/rstan everything but keep getting this error:

Error in compileCode(f, code, language = language, verbose = verbose) :
from filec283bb131eb.cpp:14:C:/Program Files/R/R-4.1.0/library/StanHeaders/include/stan/math/rev/core/set_zero_all_adjoints.hpp: At global scope:C:/Program Files/R/R-4.1.0/library/StanHeaders/include/stan/math/rev/core/set_zero_all_adjoints.hpp:14:13: warning: ‘void stan::math::set_zero_all_adjoints()’ defined but not used [-Wunused-function] static void set_zero_all_adjoints() { ^~~~~~~~~~~~~~~~~~~~~make: *** [C:/PROGRA~1/R/R-41~1.0/etc/x64/Makeconf:245: filec283bb131eb.o] Error 1

The example model (i.e. “example(stan_model, package = “rstan”, run.dontrun = TRUE)”) runs fine without any errors. My google searches have not been fruitful. Any help would be greatly appreciated. Thanks.

Hi Quinn,

Can you post a model you’re using that’s causing the error? Then I can see if I can reproduce locally