Rstan on Apple M2 chip

I think the error is a clang error with the unknown target CPU. Maybe this thread Problem compling rstan models on Mac M1 with clang 13.0.0