rmcelreath / rethinking

Statistical Rethinking course and book package
2.1k stars 596 forks source link

Problem with R code 9.14 on Mac OS #401

Open bardolater opened 1 year ago

bardolater commented 1 year ago

I believe I have followed the directions for installing the different packages necessary to call the ulam() function in R code 9.14 in the book. I have installed {rstan} so I believe I have the necessary R packages for this code to run. I also recently installed the command line tools for XCode. I cannot figure out what to do from here. Here is my error message in the console:

Compiling Stan program... clang: warning: argument unused during compilation: '-mrtm' [-Wunused-command-line-argument]

In file included from ../tbb_2020.3/src/tbb/itt_notify.cpp:43: In file included from ../tbb_2020.3/src/tbb/tools_api/ittnotify_static.c:17: ../tbb_2020.3/src/tbb/tools_api/ittnotify_config.h:338:12: error: use of undeclared identifier 'TBB_machine_fetchadd4' return TBB_machine_fetchadd4(ptr, 1) + 1L; ^

1 error generated. make[1]: *** [itt_notify_malloc.o] Error 1

make: *** [stan/lib/stan_math/lib/tbb/tbbmalloc.def] Error 2