Has anyone had any success getting Rstan working on the new M2 chip. Running Ventura on a new M2 MacBook Air.
example(stan_model, package = "rstan", run.dontrun = TRUE)
Gets me this:
Compilation ERROR, function(s)/method(s) not created!
Error in compileCode(f, code, language = language, verbose = verbose) :
typedef double local_scalar_t__; ^36 warnings generated.error: unknown target CPU 'apple-a12'note: valid target CPU values are: i386, i486, winchip-c6, winchip2, c3, i586, pentium, pentium-mmx, pentiumpro, i686, pentium2, pentium3, pentium3m, pentium-m, c3-2, yonah, pentium4, pentium4m, prescott, nocona, core2, penryn, bonnell, atom, silvermont, slm, goldmont, goldmont-plus, tremont, nehalem, corei7, westmere, sandybridge, corei7-avx, ivybridge, core-avx-i, haswell, core-avx2, broadwell, skylake, skylake-avx512, skx, cascadelake, cooperlake, cannonlake, icelake-client, rocketlake, icelake-server, tigerlake, sapphirerapids, alderlake, knl, knm, lakemont, k6, k6-2, k6-3, athlon, athlon-tbird, athlon-xp, athlon-mp, athlon-4, k8, athlon64, athlon-fx, opteron, k8-sse3, athlon64-sse3, opteron-sse3, amdfam10, barcelona, btver1, btver2, bdver1, bdver2, bdver3, bdver4, znver1, znver2, znver3, x86-64, geodemake: * [file414619c043e.o] Error 1
System details:
Operating System: Ventura 13.0
Interface Version: Rstan 2.21.7
Compiler/Toolkit: gfortran 12.2 for Ventura (macOS 13)
xcode-select --version
xcode-select version 2396.
clang --version
Apple clang version 14.0.0 (clang-1400.0.29.202)
Is it just too new to be working properly?
thank you!