First Brms would not compile the models and Rstudio crashed after compiling without any further notice. I tried the same in native R from terminal and the exact same happened. Next, I removed and reinstalled Rstan but it still didnt work. I removed the Makevars file (which was set up to use llvm in order for openMp support. Stil getting errors, but not crashes. Now, again tried to reinstall Rstan from source and I get the following error (posted below)-
Any idea where I go from here?
install.packages(ārstanā, type = āsourceā)
trying URL āhttps://cran.rstudio.com/src/contrib/rstan_2.21.2.tar.gzā
Content type āapplication/x-gzipā length 1152008 bytes (1.1 MB)
==================================================
downloaded 1.1 MB
- installing source package ārstanā ā¦
** package ārstanā successfully unpacked and MD5 sums checked
** using staged installation
** libs
clang++ -mmacosx-version-min=10.13 -std=gnu++14 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I"ā¦/inst/include" -I"ā¦/inst/include/boost_not_in_BH" -I"." -DBOOST_DISABLE_ASSERTS -DBOOST_PHOENIX_NO_VARIADIC_EXPRESSION -DBOOST_NO_AUTO_PTR -D_REENTRANT -DSTAN_THREADS -Iā/Library/Frameworks/R.framework/Versions/4.1/Resources/library/Rcpp/includeā -Iā/Library/Frameworks/R.framework/Versions/4.1/Resources/library/RcppEigen/includeā -Iā/Library/Frameworks/R.framework/Versions/4.1/Resources/library/BH/includeā -Iā/Library/Frameworks/R.framework/Versions/4.1/Resources/library/StanHeaders/includeā -Iā/Library/Frameworks/R.framework/Versions/4.1/Resources/library/RcppParallel/includeā -I/usr/local/include -fPIC -Wall -g -O2 -c Module.cpp -o Module.o
In file included from Module.cpp:1:
In file included from /Library/Frameworks/R.framework/Versions/4.1/Resources/library/Rcpp/include/Rcpp.h:27:
In file included from /Library/Frameworks/R.framework/Versions/4.1/Resources/library/Rcpp/include/RcppCommon.h:29:
In file included from /Library/Frameworks/R.framework/Versions/4.1/Resources/library/Rcpp/include/Rcpp/r/headers.h:67:
In file included from /Library/Frameworks/R.framework/Versions/4.1/Resources/library/Rcpp/include/Rcpp/platform/compiler.h:100:
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/cmath:321:9: error: no member named āsignbitā in the global namespace
using ::signbit;
~~^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/cmath:322:9: error: no member named āfpclassifyā in the global namespace
using ::fpclassify;
~~^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/cmath:323:9: error: no member named āisfiniteā in the global namespace; did you mean āfiniteā?
using ::isfinite;
~~^
/usr/local/include/math.h:752:12: note: āfiniteā declared here
extern int finite(double)
^
In file included from Module.cpp:1:
In file included from /Library/Frameworks/R.framework/Versions/4.1/Resources/library/Rcpp/include/Rcpp.h:27:
In file included from /Library/Frameworks/R.framework/Versions/4.1/Resources/library/Rcpp/include/RcppCommon.h:29:
In file included from /Library/Frameworks/R.framework/Versions/4.1/Resources/library/Rcpp/include/Rcpp/r/headers.h:67:
In file included from /Library/Frameworks/R.framework/Versions/4.1/Resources/library/Rcpp/include/Rcpp/platform/compiler.h:100:
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/cmath:324:9: error: no member named āisinfā in the global namespace
using ::isinf;
~~^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/cmath:325:9: error: no member named āisnanā in the global namespace
using ::isnan;
~~^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/cmath:326:9: error: no member named āisnormalā in the global namespace
using ::isnormal;
~~^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/cmath:327:9: error: no member named āisgreaterā in the global namespace
using ::isgreater;
~~^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/cmath:328:9: error: no member named āisgreaterequalā in the global namespace
using ::isgreaterequal;
~~^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/cmath:329:9: error: no member named āislessā in the global namespace
using ::isless;
~~^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/cmath:330:9: error: no member named āislessequalā in the global namespace
using ::islessequal;
~~^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/cmath:331:9: error: no member named āislessgreaterā in the global namespace
using ::islessgreater;
~~^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/cmath:332:9: error: no member named āisunorderedā in the global namespace
using ::isunordered;
~~^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/cmath:333:9: error: no member named āisunorderedā in the global namespace
using ::isunordered;
~~^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/cmath:339:9: error: no member named āabsā in the global namespace; did you mean āfabsā?
using ::abs;
~~^
/usr/local/include/math.h:417:15: note: āfabsā declared here
extern double fabs(double);
^
In file included from Module.cpp:1:
In file included from /Library/Frameworks/R.framework/Versions/4.1/Resources/library/Rcpp/include/Rcpp.h:27:
In file included from /Library/Frameworks/R.framework/Versions/4.1/Resources/library/Rcpp/include/RcppCommon.h:29:
In file included from /Library/Frameworks/R.framework/Versions/4.1/Resources/library/Rcpp/include/Rcpp/r/headers.h:67:
In file included from /Library/Frameworks/R.framework/Versions/4.1/Resources/library/Rcpp/include/Rcpp/platform/compiler.h:100:
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/cmath:644:26: error: no template named ānumeric_limitsā
bool _FloatBigger = (numeric_limits<_FloatT>::digits > numeric_limits<_IntT>::digits),
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/cmath:644:60: error: no template named ānumeric_limitsā
bool _FloatBigger = (numeric_limits<_FloatT>::digits > numeric_limits<_IntT>::digits),
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/cmath:645:18: error: no template named ānumeric_limitsā
int _Bits = (numeric_limits<_IntT>::digits - numeric_limits<_FloatT>::digits)>
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/cmath:645:50: error: no template named ānumeric_limitsā
int _Bits = (numeric_limits<_IntT>::digits - numeric_limits<_FloatT>::digits)>
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/cmath:650:17: error: no template named ānumeric_limitsā
static_assert(numeric_limits<_FloatT>::radix == 2, āFloatT has incorrect radixā);
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make: *** [Module.o] Error 1
ERROR: compilation failed for package ārstanā - removing ā/Library/Frameworks/R.framework/Versions/4.1/Resources/library/rstanā
Warning in install.packages :
installation of package ārstanā had non-zero exit status
The downloaded source packages are in
ā/private/var/folders/cq/1m6nc8p514n273gx7x1zl_rc0000gn/T/RtmplRoCTh/downloaded_packagesā
sessionInfo()
R version 4.1.0 (2021-05-18)
Platform: x86_64-apple-darwin17.0 (64-bit)
Running under: macOS Big Sur 11.4
Matrix products: default
LAPACK: /Library/Frameworks/R.framework/Versions/4.1/Resources/lib/libRlapack.dylib