Cmdstanr::install_cmdstan failing on M1 Mac Ventura

I just yesterday got rstan back up and running on my M1 Mac running Ventura (thanks to some great help from @andrjohns !). However, I’m now failing to install cmdstanr. Everything looks good when I install cmdstan and check the C++ toolchain, but when I try to install I get a variety of linker errors. These errors seem related to the issues I ran into when trying to get rstan working. I’ve also installed Rosetta.

clang: warning: -Wl,-L,/Users/andrew/.cmdstan/cmdstan-2.32.2/stan/lib/stan_math/lib/tbb: 'linker' input unused [-Wunused-command-line-argument]
clang: warning: -Wl,-rpath,/Users/andrew/.cmdstan/cmdstan-2.32.2/stan/lib/stan_math/lib/tbb: 'linker' input unused [-Wunused-command-line-argument]

...Many lines go here...

ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [bin/stansummary] Error 1
make: *** Waiting for unfinished jobs....

Warning message:
There was a problem during installation. See the error message(s) above.

So over here MacOS - #2 by torkar we chat about some of the issues and solutions to getting up and running on the M1 chips under Ventura.

1 Like