It looks like your Makevars file was configured under an Intel Mac installation, which is why it has the -arch x86_64
, so given that your current R installation is using Apple Silicon (aarch64
) we’ll try resetting your Makevars.
Can you run:
cat("CXX14FLAGS += -O3 -arch arm64 -ftemplate-depth-256",
file = "~/.R/Makevars", sep = "\n", append = FALSE)
And then try the rstan example model again?