Trouble with installing cmdstan on Mac OS X - Big Sur

I totally believe you guys, as I had it working before on this same M1 machine with Big Sur, and it was great. And I didn’t have to mess with the Makevars or anything to get it working.

I had already installed Xcode and everything is in /Library/Developer/CommandLineTools/usr/bin. And PATH is set to /Library/Developer/CommandLineTools/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/TeX/texbin:/Library/Apple/usr/bin:/Applications/RStudio.app/Contents/MacOS/postback, (and there is no longer a Makevars file) but I am still getting the same error messages:

The C++ toolchain required for CmdStan is setup properly!
* Latest CmdStan release is v2.26.1
* Installing CmdStan v2.26.1 in /Users/keith/.cmdstanr/cmdstan-2.26.1
* Downloading cmdstan-2.26.1.tar.gz from GitHub...
* Download complete
* Unpacking archive...
* Building CmdStan binaries...
cp bin/mac-stanc bin/stanc
clang++ -std=c++1y -Wno-unknown-warning-option -Wno-tautological-compare -Wno-sign-compare -D_REENTRANT -Wno-ignored-attributes      -I stan/lib/stan_math/lib/tbb_2019_U8/include   -O3 -I src -I stan/src -I lib/rapidjson_1.1.0/ -I lib/CLI11-1.9.1/ -I stan/lib/stan_math/ -I stan/lib/stan_math/lib/eigen_3.3.9 -I stan/lib/stan_math/lib/boost_1.72.0 -I stan/lib/stan_math/lib/sundials_5.6.1/include    -DBOOST_DISABLE_ASSERTS         -c -fvisibility=hidden -o bin/cmdstan/stansummary.o src/cmdstan/stansummary.cpp
chmod +x bin/stanc
clang++ -std=c++1y -Wno-unknown-warning-option -Wno-tautological-compare -Wno-sign-compare -D_REENTRANT -Wno-ignored-attributes      -I stan/lib/stan_math/lib/tbb_2019_U8/include   -O3 -I src -I stan/src -I lib/rapidjson_1.1.0/ -I lib/CLI11-1.9.1/ -I stan/lib/stan_math/ -I stan/lib/stan_math/lib/eigen_3.3.9 -I stan/lib/stan_math/lib/boost_1.72.0 -I stan/lib/stan_math/lib/sundials_5.6.1/include    -DBOOST_DISABLE_ASSERTS         -c -fvisibility=hidden -o bin/cmdstan/print.o src/cmdstan/print.cpp
In file included from src/cmdstan/stansummary.cpp:1:
In file included from src/cmdstan/stansummary_helper.hpp:4:
In file included from stan/src/stan/mcmc/chains.hpp:4:
In file included from stan/src/stan/io/stan_csv_reader.hpp:4:
In file included from stan/lib/stan_math/lib/boost_1.72.0/boost/algorithm/string.hpp:23:
In file included from stan/lib/stan_math/lib/boost_1.72.0/boost/algorithm/string/split.hpp:16:
In file included from stan/lib/stan_math/lib/boost_1.72.0/boost/algorithm/string/iter_find.hpp:27:
In file included from stan/lib/stan_math/lib/boost_1.72.0/boost/algorithm/string/find_iterator.hpp:24:
In file included from stan/lib/stan_math/lib/boost_1.72.0/boost/algorithm/string/detail/find_iterator.hpp:18:
In file included from stan/lib/stan_math/lib/boost_1.72.0/boost/function.hpp:30:
In file included from stan/lib/stan_math/lib/boost_1.72.0/boost/function/detail/prologue.hpp:17:
In file included from stan/lib/stan_math/lib/boost_1.72.0/boost/function/function_base.hpp:21:
In file included from stan/lib/stan_math/lib/boost_1.72.0/boost/type_index.hpp:29:
In file included from stan/lib/stan_math/lib/boost_1.72.0/boost/type_index/stl_type_index.hpp:47:
In file included from stan/lib/stan_math/lib/boost_1.72.0/boost/container_hash/hash.hpp:21:
In file included from stan/lib/stan_math/lib/boost_1.72.0/boost/container_hash/detail/hash_float.hpp:14:
In file included from stan/lib/stan_math/lib/boost_1.72.0/boost/container_hash/detail/float_functions.hpp:14:
In file included from stan/lib/stan_math/lib/boost_1.72.0/boost/config/no_tr1/cmath.hpp:21:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/cmath:321:9: error: no member named 'signbit' in the global namespace
using ::signbit;
      ~~^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/cmath:322:9: error: no member named 'fpclassify' in the global namespace
using ::fpclassify;
      ~~^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/cmath:323:9: error: no member named 'isfinite' in the global namespace
using ::isfinite;
      ~~^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/cmath:324:9: error: no member named 'isinf' in the global namespace
using ::isinf;
      ~~^
In file included from src/cmdstan/print.cpp:2:
In file included from src/cmdstan/stansummary_helper.hpp:4:
In file included from stan/src/stan/mcmc/chains.hpp:4:
In file included from stan/src/stan/io/stan_csv_reader.hpp:4:
In file included from stan/lib/stan_math/lib/boost_1.72.0/boost/algorithm/string.hpp:23:
In file included from stan/lib/stan_math/lib/boost_1.72.0/boost/algorithm/string/split.hpp:16:
In file included from stan/lib/stan_math/lib/boost_1.72.0/boost/algorithm/string/iter_find.hpp:27:
In file included from stan/lib/stan_math/lib/boost_1.72.0/boost/algorithm/string/find_iterator.hpp:24:
In file included from stan/lib/stan_math/lib/boost_1.72.0/boost/algorithm/string/detail/find_iterator.hpp:18:
In file included from stan/lib/stan_math/lib/boost_1.72.0/boost/function.hpp:30:
In file included from stan/lib/stan_math/lib/boost_1.72.0/boost/function/detail/prologue.hpp:17:
In file included from stan/lib/stan_math/lib/boost_1.72.0/boost/function/function_base.hpp:21:
In file included from stan/lib/stan_math/lib/boost_1.72.0/boost/type_index.hpp:29:
In file included from stan/lib/stan_math/lib/boost_1.72.0/boost/type_index/stl_type_index.hpp:47:
In file included from stan/lib/stan_math/lib/boost_1.72.0/boost/container_hash/hash.hpp:21:
In file included from stan/lib/stan_math/lib/boost_1.72.0/boost/container_hash/detail/hash_float.hpp:14:
In file included from stan/lib/stan_math/lib/boost_1.72.0/boost/container_hash/detail/float_functions.hpp:14:
In file included from stan/lib/stan_math/lib/boost_1.72.0/boost/config/no_tr1/cmath.hpp:21:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/cmath:321:9: error: no member named 'signbit' in the global namespace
using ::signbit;
      ~~^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/cmath:325:9: error: no member named 'isnan' in the global namespace
using ::isnan;
      ~~^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/cmath:322:9: error: no member named 'fpclassify' in the global namespace
using ::fpclassify;
      ~~^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/cmath:326:9: error: no member named 'isnormal' in the global namespace
using ::isnormal;
      ~~^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/cmath:323:9: error: no member named 'isfinite' in the global namespace
using ::isfinite;
      ~~^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/cmath:327:7: error: no member named 'isgreater' in the global namespace; did you mean '::std::greater'?
using ::isgreater;
      ^~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/functional:738:29: note: '::std::greater' declared here
struct _LIBCPP_TEMPLATE_VIS greater : binary_function<_Tp, _Tp, bool>
                            ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/cmath:324:9: error: no member named 'isinf' in the global namespace
using ::isinf;
      ~~^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/cmath:325:9: error: no member named 'isnan' in the global namespace
using ::isnan;
      ~~^
In file included from src/cmdstan/stansummary.cpp:1:
In file included from src/cmdstan/stansummary_helper.hpp:4:
In file included from stan/src/stan/mcmc/chains.hpp:4:
In file included from stan/src/stan/io/stan_csv_reader.hpp:4:
In file included from stan/lib/stan_math/lib/boost_1.72.0/boost/algorithm/string.hpp:23:
In file included from stan/lib/stan_math/lib/boost_1.72.0/boost/algorithm/string/split.hpp:16:
In file included from stan/lib/stan_math/lib/boost_1.72.0/boost/algorithm/string/iter_find.hpp:27:
In file included from stan/lib/stan_math/lib/boost_1.72.0/boost/algorithm/string/find_iterator.hpp:24:
In file included from stan/lib/stan_math/lib/boost_1.72.0/boost/algorithm/string/detail/find_iterator.hpp:18:
In file included from stan/lib/stan_math/lib/boost_1.72.0/boost/function.hpp:30:
In file included from stan/lib/stan_math/lib/boost_1.72.0/boost/function/detail/prologue.hpp:17:
In file included from stan/lib/stan_math/lib/boost_1.72.0/boost/function/function_base.hpp:21:
In file included from stan/lib/stan_math/lib/boost_1.72.0/boost/type_index.hpp:29:
In file included from stan/lib/stan_math/lib/boost_1.72.0/boost/type_index/stl_type_index.hpp:47:
In file included from stan/lib/stan_math/lib/boost_1.72.0/boost/container_hash/hash.hpp:21:
In file included from stan/lib/stan_math/lib/boost_1.72.0/boost/container_hash/detail/hash_float.hpp:14:
In file included from stan/lib/stan_math/lib/boost_1.72.0/boost/container_hash/detail/float_functions.hpp:14:
In file included from stan/lib/stan_math/lib/boost_1.72.0/boost/config/no_tr1/cmath.hpp:21:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/cmath:328:7: error: no member named 'isgreaterequal' in the global namespace; did you mean '::std::greater_equal'?
using ::isgreaterequal;
      ^~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/functional:767:29: note: '::std::greater_equal' declared here
struct _LIBCPP_TEMPLATE_VIS greater_equal : binary_function<_Tp, _Tp, bool>
                            ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/cmath:326:9: error: no member named 'isnormal' in the global namespace
using ::isnormal;
      ~~^
In file included from src/cmdstan/stansummary.cpp:1:
In file included from src/cmdstan/stansummary_helper.hpp:4:
In file included from stan/src/stan/mcmc/chains.hpp:4:
In file included from stan/src/stan/io/stan_csv_reader.hpp:4:
In file included from stan/lib/stan_math/lib/boost_1.72.0/boost/algorithm/string.hpp:23:
In file included from stan/lib/stan_math/lib/boost_1.72.0/boost/algorithm/string/split.hpp:16:
In file included from stan/lib/stan_math/lib/boost_1.72.0/boost/algorithm/string/iter_find.hpp:27:
In file included from stan/lib/stan_math/lib/boost_1.72.0/boost/algorithm/string/find_iterator.hpp:24:
In file included from stan/lib/stan_math/lib/boost_1.72.0/boost/algorithm/string/detail/find_iterator.hpp:18:
In file included from stan/lib/stan_math/lib/boost_1.72.0/boost/function.hpp:30:
In file included from stan/lib/stan_math/lib/boost_1.72.0/boost/function/detail/prologue.hpp:17:
In file included from stan/lib/stan_math/lib/boost_1.72.0/boost/function/function_base.hpp:21:
In file included from stan/lib/stan_math/lib/boost_1.72.0/boost/type_index.hpp:29:
In file included from stan/lib/stan_math/lib/boost_1.72.0/boost/type_index/stl_type_index.hpp:47:
In file included from stan/lib/stan_math/lib/boost_1.72.0/boost/container_hash/hash.hpp:21:
In file included from stan/lib/stan_math/lib/boost_1.72.0/boost/container_hash/detail/hash_float.hpp:14:
In file included from stan/lib/stan_math/lib/boost_1.72.0/boost/container_hash/detail/float_functions.hpp:14:
In file included from stan/lib/stan_math/lib/boost_1.72.0/boost/config/no_tr1/cmath.hpp:21:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/cmath:329:7: error: no member named 'isless' in the global namespace; did you mean 'boost::is_less'?
using ::isless;
      ^~
stan/lib/stan_math/lib/boost_1.72.0/boost/algorithm/string/compare.hpp:191:22: note: 'boost::is_less' declared here
    using algorithm::is_less;
                     ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/cmath:327:7: error: no member named 'isgreater' in the global namespace; did you mean '::std::greater'?
using ::isgreater;
      ^~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/functional:738:29: note: '::std::greater' declared here
struct _LIBCPP_TEMPLATE_VIS greater : binary_function<_Tp, _Tp, bool>
                            ^
In file included from src/cmdstan/stansummary.cpp:1:
In file included from src/cmdstan/stansummary_helper.hpp:4:
In file included from stan/src/stan/mcmc/chains.hpp:4:
In file included from stan/src/stan/io/stan_csv_reader.hpp:4:
In file included from stan/lib/stan_math/lib/boost_1.72.0/boost/algorithm/string.hpp:23:
In file included from stan/lib/stan_math/lib/boost_1.72.0/boost/algorithm/string/split.hpp:16:
In file included from stan/lib/stan_math/lib/boost_1.72.0/boost/algorithm/string/iter_find.hpp:27:
In file included from stan/lib/stan_math/lib/boost_1.72.0/boost/algorithm/string/find_iterator.hpp:24:
In file included from stan/lib/stan_math/lib/boost_1.72.0/boost/algorithm/string/detail/find_iterator.hpp:18:
In file included from stan/lib/stan_math/lib/boost_1.72.0/boost/function.hpp:30:
In file included from stan/lib/stan_math/lib/boost_1.72.0/boost/function/detail/prologue.hpp:17:
In file included from stan/lib/stan_math/lib/boost_1.72.0/boost/function/function_base.hpp:21:
In file included from stan/lib/stan_math/lib/boost_1.72.0/boost/type_index.hpp:29:
In file included from stan/lib/stan_math/lib/boost_1.72.0/boost/type_index/stl_type_index.hpp:47:
In file included from stan/lib/stan_math/lib/boost_1.72.0/boost/container_hash/hash.hpp:21:
In file included from stan/lib/stan_math/lib/boost_1.72.0/boost/container_hash/detail/hash_float.hpp:14:
In file included from stan/lib/stan_math/lib/boost_1.72.0/boost/container_hash/detail/float_functions.hpp:14:
In file included from stan/lib/stan_math/lib/boost_1.72.0/boost/config/no_tr1/cmath.hpp:21:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/cmath:330:9: error: no member named 'islessequal' in the global namespace
using ::islessequal;
      ~~^
In file included from src/cmdstan/print.cpp:2:
In file included from src/cmdstan/stansummary_helper.hpp:4/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/cmath:331:9: error: no member named 'islessgreater' in the global namespace
using ::islessgreater;
      ~~^
:
In file included from stan/src/stan/mcmc/chains.hpp:4:
In file included from stan/src/stan/io/stan_csv_reader.hpp:4:
In file included from stan/lib/stan_math/lib/boost_1.72.0/boost/algorithm/string.hpp:23:
In file included from stan/lib/stan_math/lib/boost_1.72.0/boost/algorithm/string/split.hpp:16:
In file included from stan/lib/stan_math/lib/boost_1.72.0/boost/algorithm/string/iter_find.hpp:27:
In file included from stan/lib/stan_math/lib/boost_1.72.0/boost/algorithm/string/find_iterator.hpp:24:
In file included from stan/lib/stan_math/lib/boost_1.72.0/boost/algorithm/string/detail/find_iterator.hpp:18:
In file included from stan/lib/stan_math/lib/boost_1.72.0/boost/function.hpp:30:
In file included from stan/lib/stan_math/lib/boost_1.72.0/boost/function/detail/prologue.hpp:17:
In file included from stan/lib/stan_math/lib/boost_1.72.0/boost/function/function_base.hpp:21:
In file included from stan/lib/stan_math/lib/boost_1.72.0/boost/type_index.hpp:29:
In file included from stan/lib/stan_math/lib/boost_1.72.0/boost/type_index/stl_type_index.hpp:47:
In file included from stan/lib/stan_math/lib/boost_1.72.0/boost/container_hash/hash.hpp:21:
In file included from stan/lib/stan_math/lib/boost_1.72.0/boost/container_hash/detail/hash_float.hpp:14:
In file included from stan/lib/stan_math/lib/boost_1.72.0/boost/container_hash/detail/float_functions.hpp:14:
In file included from stan/lib/stan_math/lib/boost_1.72.0/boost/config/no_tr1/cmath.hpp:21:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/cmath:328:7: error: no member named 'isgreaterequal' in the global namespace; did you mean '::std::greater_equal'?
using ::isgreaterequal;
      ^~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/functional:767:29: note: '::std::greater_equal' declared here
struct _LIBCPP_TEMPLATE_VIS greater_equal : binary_function<_Tp, _Tp, bool>
                            ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/cmath:332:9: error: no member named 'isunordered' in the global namespace
using ::isunordered;
      ~~^
In file included from src/cmdstan/print.cpp:2:
In file included from src/cmdstan/stansummary_helper.hpp:4:
In file included from stan/src/stan/mcmc/chains.hpp:4:
In file included from stan/src/stan/io/stan_csv_reader.hpp:4:
In file included from stan/lib/stan_math/lib/boost_1.72.0/boost/algorithm/string.hpp:23:
In file included from stan/lib/stan_math/lib/boost_1.72.0/boost/algorithm/string/split.hpp:16:
In file included from stan/lib/stan_math/lib/boost_1.72.0/boost/algorithm/string/iter_find.hpp:27:
In file included from stan/lib/stan_math/lib/boost_1.72.0/boost/algorithm/string/find_iterator.hpp:24:
In file included from stan/lib/stan_math/lib/boost_1.72.0/boost/algorithm/string/detail/find_iterator.hpp:18:
In file included from stan/lib/stan_math/lib/boost_1.72.0/boost/function.hpp:30:
In file included from stan/lib/stan_math/lib/boost_1.72.0/boost/function/detail/prologue.hpp:17:
In file included from stan/lib/stan_math/lib/boost_1.72.0/boost/function/function_base.hpp:21:
In file included from stan/lib/stan_math/lib/boost_1.72.0/boost/type_index.hpp:29:
In file included from stan/lib/stan_math/lib/boost_1.72.0/boost/type_index/stl_type_index.hpp:47:
In file included from stan/lib/stan_math/lib/boost_1.72.0/boost/container_hash/hash.hpp:21:
In file included from stan/lib/stan_math/lib/boost_1.72.0/boost/container_hash/detail/hash_float.hpp:14:
In file included from stan/lib/stan_math/lib/boost_1.72.0/boost/container_hash/detail/float_functions.hpp:14:
In file included from stan/lib/stan_math/lib/boost_1.72.0/boost/config/no_tr1/cmath.hpp:21:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/cmath:329:7: error: no member named 'isless' in the global namespace; did you mean 'boost::is_less'?
using ::isless;
      ^~
stan/lib/stan_math/lib/boost_1.72.0/boost/algorithm/string/compare.hpp:191:22: note: 'boost::is_less' declared here
    using algorithm::is_less;
                     ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/cmath:333:9: error: no member named 'isunordered' in the global namespace
using ::isunordered;
      ~~^
In file included from src/cmdstan/print.cpp:2:
In file included from src/cmdstan/stansummary_helper.hpp:4:
In file included from stan/src/stan/mcmc/chains.hpp:4:
In file included from stan/src/stan/io/stan_csv_reader.hpp:4:
In file included from stan/lib/stan_math/lib/boost_1.72.0/boost/algorithm/string.hpp:23:
In file included from stan/lib/stan_math/lib/boost_1.72.0/boost/algorithm/string/split.hpp:16:
In file included from stan/lib/stan_math/lib/boost_1.72.0/boost/algorithm/string/iter_find.hpp:27:
In file included from stan/lib/stan_math/lib/boost_1.72.0/boost/algorithm/string/find_iterator.hpp:24:
In file included from stan/lib/stan_math/lib/boost_1.72.0/boost/algorithm/string/detail/find_iterator.hpp:18:
In file included from stan/lib/stan_math/lib/boost_1.72.0/boost/function.hpp:30:
In file included from stan/lib/stan_math/lib/boost_1.72.0/boost/function/detail/prologue.hpp:17:
In file included from stan/lib/stan_math/lib/boost_1.72.0/boost/function/function_base.hpp:21:
In file included from stan/lib/stan_math/lib/boost_1.72.0/boost/type_index.hpp:29:
In file included from stan/lib/stan_math/lib/boost_1.72.0/boost/type_index/stl_type_index.hpp:47:
In file included from stan/lib/stan_math/lib/boost_1.72.0/boost/container_hash/hash.hpp:21:
In file included from stan/lib/stan_math/lib/boost_1.72.0/boost/container_hash/detail/hash_float.hpp:14:
In file included from stan/lib/stan_math/lib/boost_1.72.0/boost/container_hash/detail/float_functions.hpp:14:
In file included from stan/lib/stan_math/lib/boost_1.72.0/boost/config/no_tr1/cmath.hpp:21:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/cmath:330:9: error: no member named 'islessequal' in the global namespace
using ::islessequal;
      ~~^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/cmath:331:9: error: no member named 'islessgreater' in the global namespace
using ::islessgreater;
      ~~^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/cmath:332:9: error: no member named 'isunordered' in the global namespace
using ::isunordered;
      ~~^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/cmath:333:9: error: no member named 'isunordered' in the global namespace
using ::isunordered;
      ~~^
In file included from src/cmdstan/stansummary.cpp:1:
In file included from src/cmdstan/stansummary_helper.hpp:4:
In file included from stan/src/stan/mcmc/chains.hpp:4:
In file included from stan/src/stan/io/stan_csv_reader.hpp:5:
In file included from stan/lib/stan_math/stan/math/prim.hpp:10:
In file included from stan/lib/stan_math/stan/math/prim/core.hpp:4:
In file included from stan/lib/stan_math/stan/math/prim/core/init_threadpool_tbb.hpp:4:
In file included from stan/lib/stan_math/stan/math/prim/err/invalid_argument.hpp:4:
In file included from stan/lib/stan_math/stan/math/prim/meta.hpp:175:
In file included from stan/lib/stan_math/stan/math/prim/meta/append_return_type.hpp:4:
In file included from stan/lib/stan_math/stan/math/prim/fun/Eigen.hpp:22:
In file included from stan/lib/stan_math/lib/eigen_3.3.9/Eigen/Dense:1:
In file included from stan/lib/stan_math/lib/eigen_3.3.9/Eigen/Core:374:
stan/lib/stan_math/lib/eigen_3.3.9/Eigen/src/Core/MathFunctions.h:722:16: error: no member named 'isfinite' in namespace 'std'
    using std::isfinite;
          ~~~~~^
stan/lib/stan_math/lib/eigen_3.3.9/Eigen/src/Core/MathFunctions.h:737:16: error: no member named 'isinf' in namespace 'std'
    using std::isinf;
          ~~~~~^
stan/lib/stan_math/lib/eigen_3.3.9/Eigen/src/Core/MathFunctions.h:752:16: error: no member named 'isnan' in namespace 'std'
    using std::isnan;
          ~~~~~^
In file included from src/cmdstan/print.cpp:2:
In file included from src/cmdstan/stansummary_helper.hpp:4:
In file included from stan/src/stan/mcmc/chains.hpp:4:
In file included from stan/src/stan/io/stan_csv_reader.hpp:5:
In file included from stan/lib/stan_math/stan/math/prim.hpp:10:
In file included from stan/lib/stan_math/stan/math/prim/core.hpp:4:
In file included from stan/lib/stan_math/stan/math/prim/core/init_threadpool_tbb.hpp:4:
In file included from stan/lib/stan_math/stan/math/prim/err/invalid_argument.hpp:4:
In file included from stan/lib/stan_math/stan/math/prim/meta.hpp:175:
In file included from stan/lib/stan_math/stan/math/prim/meta/append_return_type.hpp:4:
In file included from stan/lib/stan_math/stan/math/prim/fun/Eigen.hpp:22:
In file included from stan/lib/stan_math/lib/eigen_3.3.9/Eigen/Dense:1:
In file included from stan/lib/stan_math/lib/eigen_3.3.9/Eigen/Core:374:
stan/lib/stan_math/lib/eigen_3.3.9/Eigen/src/Core/MathFunctions.h:722:16: error: no member named 'isfinite' in namespace 'std'
    using std::isfinite;
          ~~~~~^
stan/lib/stan_math/lib/eigen_3.3.9/Eigen/src/Core/MathFunctions.h:737:16: error: no member named 'isinf' in namespace 'std'
    using std::isinf;
          ~~~~~^
stan/lib/stan_math/lib/eigen_3.3.9/Eigen/src/Core/MathFunctions.h:752:16: error: no member named 'isnan' in namespace 'std'
    using std::isnan;
          ~~~~~^
In file included from src/cmdstan/stansummary.cpp:1:
In file included from src/cmdstan/stansummary_helper.hpp:4:
In file included from stan/src/stan/mcmc/chains.hpp:4:
In file included from stan/src/stan/io/stan_csv_reader.hpp:5:
In file included from stan/lib/stan_math/stan/math/prim.hpp:10:
In file included from stan/lib/stan_math/stan/math/prim/core.hpp:4:
In file included from stan/lib/stan_math/stan/math/prim/core/init_threadpool_tbb.hpp:6:
In file included from stan/lib/stan_math/lib/boost_1.72.0/boost/lexical_cast.hpp:32:
In file included from stan/lib/stan_math/lib/boost_1.72.0/boost/lexical_cast/try_lexical_convert.hpp:44:
In file included from stan/lib/stan_math/lib/boost_1.72.0/boost/lexical_cast/detail/converter_lexical.hpp:54:
In file included from stan/lib/stan_math/lib/boost_1.72.0/boost/lexical_cast/detail/converter_lexical_streams.hpp:63:
In file included from stan/lib/stan_math/lib/boost_1.72.0/boost/lexical_cast/detail/inf_nan.hpp:34:
stan/lib/stan_math/lib/boost_1.72.0/boost/math/special_functions/sign.hpp:30:17: error: no member named 'signbit' in namespace 'std'; did you mean simply 'signbit'?
        return (std::signbit)(x) ? 1 : 0;
                ^~~~~~~~~~~~
                signbit
stan/lib/stan_math/lib/boost_1.72.0/boost/math/special_functions/math_fwd.hpp:891:8: note: 'signbit' declared here
   int signbit BOOST_NO_MACRO_EXPAND(T x);
       ^
In file included from src/cmdstan/print.cpp:2:
In file included from src/cmdstan/stansummary_helper.hpp:4:
In file included from stan/src/stan/mcmc/chains.hpp:4:
In file included from stan/src/stan/io/stan_csv_reader.hpp:5:
In file included from stan/lib/stan_math/stan/math/prim.hpp:10:
In file included from stan/lib/stan_math/stan/math/prim/core.hpp:4:
In file included from stan/lib/stan_math/stan/math/prim/core/init_threadpool_tbb.hpp:6:
In file included from stan/lib/stan_math/lib/boost_1.72.0/boost/lexical_cast.hpp:32:
In file included from stan/lib/stan_math/lib/boost_1.72.0/boost/lexical_cast/try_lexical_convert.hpp:44:
In file included from stan/lib/stan_math/lib/boost_1.72.0/boost/lexical_cast/detail/converter_lexical.hpp:54:
In file included from stan/lib/stan_math/lib/boost_1.72.0/boost/lexical_cast/detail/converter_lexical_streams.hpp:63:
In file included from stan/lib/stan_math/lib/boost_1.72.0/boost/lexical_cast/detail/inf_nan.hpp:34:
stan/lib/stan_math/lib/boost_1.72.0/boost/math/special_functions/sign.hpp:30:17: error: no member named 'signbit' in namespace 'std'; did you mean simply 'signbit'?
        return (std::signbit)(x) ? 1 : 0;
                ^~~~~~~~~~~~
                signbit
stan/lib/stan_math/lib/boost_1.72.0/boost/math/special_functions/math_fwd.hpp:891:8: note: 'signbit' declared here
   int signbit BOOST_NO_MACRO_EXPAND(T x);
       ^
In file included from src/cmdstan/stansummary.cpp:1:
In file included from src/cmdstan/stansummary_helper.hpp:4:
In file included from stan/src/stan/mcmc/chains.hpp:4:
In file included from stan/src/stan/io/stan_csv_reader.hpp:5:
In file included from stan/lib/stan_math/stan/math/prim.hpp:10:
In file included from stan/lib/stan_math/stan/math/prim/core.hpp:4:
In file included from stan/lib/stan_math/stan/math/prim/core/init_threadpool_tbb.hpp:6:
In file included from stan/lib/stan_math/lib/boost_1.72.0/boost/lexical_cast.hpp:32:
In file included from stan/lib/stan_math/lib/boost_1.72.0/boost/lexical_cast/try_lexical_convert.hpp:44:
In file included from stan/lib/stan_math/lib/boost_1.72.0/boost/lexical_cast/detail/converter_lexical.hpp:54:
In file included from stan/lib/stan_math/lib/boost_1.72.0/boost/lexical_cast/detail/converter_lexical_streams.hpp:63:
In file included from stan/lib/stan_math/lib/boost_1.72.0/boost/lexical_cast/detail/inf_nan.hpp:35:
stan/lib/stan_math/lib/boost_1.72.0/boost/math/special_functions/fpclassify.hpp:155:12: error: no member named 'fpclassify' in namespace 'std'; did you mean simply 'fpclassify'?
   return (std::fpclassify)(t);
           ^~~~~~~~~~~~~~~
           fpclassify
stan/lib/stan_math/lib/boost_1.72.0/boost/math/special_functions/math_fwd.hpp:876:8: note: 'fpclassify' declared here
   int fpclassify BOOST_NO_MACRO_EXPAND(T t);
       ^
In file included from src/cmdstan/print.cpp:2:
In file included from src/cmdstan/stansummary_helper.hpp:4:
In file included from stan/src/stan/mcmc/chains.hpp:4:
In file included from stan/src/stan/io/stan_csv_reader.hpp:5:
In file included from stan/lib/stan_math/stan/math/prim.hpp:10:
In file included from stan/lib/stan_math/stan/math/prim/core.hpp:4:
In file included from stan/lib/stan_math/stan/math/prim/core/init_threadpool_tbb.hpp:6:
In file included from stan/lib/stan_math/lib/boost_1.72.0/boost/lexical_cast.hpp:32:
In file included from stan/lib/stan_math/lib/boost_1.72.0/boost/lexical_cast/try_lexical_convert.hpp:44:
In file included from stan/lib/stan_math/lib/boost_1.72.0/boost/lexical_cast/detail/converter_lexical.hpp:54:
In file included from stan/lib/stan_math/lib/boost_1.72.0/boost/lexical_cast/detail/converter_lexical_streams.hpp:63:
In file included from stan/lib/stan_math/lib/boost_1.72.0/boost/lexical_cast/detail/inf_nan.hpp:35:
stan/lib/stan_math/lib/boost_1.72.0/boost/math/special_functions/fpclassify.hpp:155:12: error: no member named 'fpclassify' in namespace 'std'; did you mean simply 'fpclassify'?
   return (std::fpclassify)(t);
           ^~~~~~~~~~~~~~~
           fpclassify
stan/lib/stan_math/lib/boost_1.72.0/boost/math/special_functions/math_fwd.hpp:876:8: note: 'fpclassify' declared here
   int fpclassify BOOST_NO_MACRO_EXPAND(T t);
       ^

        return (std::isfinite)(x);
                ^~~~~~~~~~~~~
                isfinite
stan/lib/stan_math/lib/boost_1.72.0/boost/math/special_functions/math_fwd.hpp:879:9: note: 'isfinite' declared here
   bool isfinite BOOST_NO_MACRO_EXPAND(T z);
        ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make: *** [bin/cmdstan/print.o] Error 1
make: *** Waiting for unfinished jobs....
20 errors generated.
make: *** [bin/cmdstan/stansummary.o] Error 1

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