Error in rstan_2.16.2 after upgrading to R 3.4.1 with Clang 4.0.0

Thank you very much. I managed to get simple models to run by configuring the makevars file the following way. I pieced together information from here:
https://cran.r-project.org/doc/manuals/r-release/R-admin.html#Clang

I still have issues running more complex models but I suspect I haven’t grasped some finer points of constructing the design matrix yet.

Your research looks very interesting, btw. I look forward to reading it more closely when things calm down.

CC=clang -Wall
CXX=clang++
OBJC=clang
CFLAGS=-mtune=native -g -O2 -Wall -pedantic -Wconversion
CXXFLAGS=’-Wall -g -O2’
FLIBS = -Lgfortran -print-file-name=libgfortran.dylib | xargs dirname