I have managed to install CmdStanR itself and tried to install CmdStan from there. However it builds with errors and doesn’t work in result.
This is the error log:
> install_cmdstan(
+ dir = NULL,
+ cores = getOption("mc.cores", 4),
+ quiet = FALSE,
+ overwrite = TRUE,
+ timeout = 1200,
+ version = NULL,
+ release_url = NULL,
+ cpp_options = list("CXX" = "/opt/local/bin/g++-mp-7"),
+ check_toolchain = TRUE
+ )
The C++ toolchain required for CmdStan is setup properly!
* Latest CmdStan release is v2.28.1
* Installing CmdStan v2.28.1 in /Users/svacchanda/.cmdstanr/cmdstan-2.28.1
* Downloading cmdstan-2.28.1.tar.gz from GitHub...
* Removing the existing installation of CmdStan...
* Download complete
* Unpacking archive...
* Building CmdStan binaries...
cp bin/mac-stanc bin/stanc
/opt/local/bin/g++-mp-7 -pipe -D_REENTRANT -O3 -I stan/lib/stan_math/lib/sundials_5.7.0/include -DNO_FPRINTF_OUTPUT -O3 -c -x c -include stan/lib/stan_math/lib/sundials_5.7.0/include/stan_sundials_printf_override.hpp stan/lib/stan_math/lib/sundials_5.7.0/src/nvector/serial/nvector_serial.c -o stan/lib/stan_math/lib/sundials_5.7.0/src/nvector/serial/nvector_serial.o
/opt/local/bin/g++-mp-7 -pipe -D_REENTRANT -O3 -I stan/lib/stan_math/lib/sundials_5.7.0/include -DNO_FPRINTF_OUTPUT -O3 -c -x c -include stan/lib/stan_math/lib/sundials_5.7.0/include/stan_sundials_printf_override.hpp stan/lib/stan_math/lib/sundials_5.7.0/src/cvodes/cvodea.c -o stan/lib/stan_math/lib/sundials_5.7.0/src/cvodes/cvodea.o
/opt/local/bin/g++-mp-7 -pipe -D_REENTRANT -O3 -I stan/lib/stan_math/lib/sundials_5.7.0/include -DNO_FPRINTF_OUTPUT -O3 -c -x c -include stan/lib/stan_math/lib/sundials_5.7.0/include/stan_sundials_printf_override.hpp stan/lib/stan_math/lib/sundials_5.7.0/src/sundials/sundials_math.c -o stan/lib/stan_math/lib/sundials_5.7.0/src/sundials/sundials_math.o
chmod +x bin/stanc
/opt/local/bin/g++-mp-7 -pipe -D_REENTRANT -O3 -I stan/lib/stan_math/lib/sundials_5.7.0/include -DNO_FPRINTF_OUTPUT -O3 -c -x c -include stan/lib/stan_math/lib/sundials_5.7.0/include/stan_sundials_printf_override.hpp stan/lib/stan_math/lib/sundials_5.7.0/src/cvodes/cvodea_io.c -o stan/lib/stan_math/lib/sundials_5.7.0/src/cvodes/cvodea_io.o
/opt/local/bin/g++-mp-7 -pipe -D_REENTRANT -O3 -I stan/lib/stan_math/lib/sundials_5.7.0/include -DNO_FPRINTF_OUTPUT -O3 -c -x c -include stan/lib/stan_math/lib/sundials_5.7.0/include/stan_sundials_printf_override.hpp stan/lib/stan_math/lib/sundials_5.7.0/src/cvodes/cvodes.c -o stan/lib/stan_math/lib/sundials_5.7.0/src/cvodes/cvodes.o
/opt/local/bin/g++-mp-7 -pipe -D_REENTRANT -O3 -I stan/lib/stan_math/lib/sundials_5.7.0/include -DNO_FPRINTF_OUTPUT -O3 -c -x c -include stan/lib/stan_math/lib/sundials_5.7.0/include/stan_sundials_printf_override.hpp stan/lib/stan_math/lib/sundials_5.7.0/src/cvodes/cvodes_bandpre.c -o stan/lib/stan_math/lib/sundials_5.7.0/src/cvodes/cvodes_bandpre.o
/opt/local/bin/g++-mp-7 -pipe -D_REENTRANT -O3 -I stan/lib/stan_math/lib/sundials_5.7.0/include -DNO_FPRINTF_OUTPUT -O3 -c -x c -include stan/lib/stan_math/lib/sundials_5.7.0/include/stan_sundials_printf_override.hpp stan/lib/stan_math/lib/sundials_5.7.0/src/cvodes/cvodes_bbdpre.c -o stan/lib/stan_math/lib/sundials_5.7.0/src/cvodes/cvodes_bbdpre.o
/opt/local/bin/g++-mp-7 -pipe -D_REENTRANT -O3 -I stan/lib/stan_math/lib/sundials_5.7.0/include -DNO_FPRINTF_OUTPUT -O3 -c -x c -include stan/lib/stan_math/lib/sundials_5.7.0/include/stan_sundials_printf_override.hpp stan/lib/stan_math/lib/sundials_5.7.0/src/cvodes/cvodes_diag.c -o stan/lib/stan_math/lib/sundials_5.7.0/src/cvodes/cvodes_diag.o
/opt/local/bin/g++-mp-7 -pipe -D_REENTRANT -O3 -I stan/lib/stan_math/lib/sundials_5.7.0/include -DNO_FPRINTF_OUTPUT -O3 -c -x c -include stan/lib/stan_math/lib/sundials_5.7.0/include/stan_sundials_printf_override.hpp stan/lib/stan_math/lib/sundials_5.7.0/src/cvodes/cvodes_direct.c -o stan/lib/stan_math/lib/sundials_5.7.0/src/cvodes/cvodes_direct.o
/opt/local/bin/g++-mp-7 -pipe -D_REENTRANT -O3 -I stan/lib/stan_math/lib/sundials_5.7.0/include -DNO_FPRINTF_OUTPUT -O3 -c -x c -include stan/lib/stan_math/lib/sundials_5.7.0/include/stan_sundials_printf_override.hpp stan/lib/stan_math/lib/sundials_5.7.0/src/cvodes/cvodes_io.c -o stan/lib/stan_math/lib/sundials_5.7.0/src/cvodes/cvodes_io.o
/opt/local/bin/g++-mp-7 -pipe -D_REENTRANT -O3 -I stan/lib/stan_math/lib/sundials_5.7.0/include -DNO_FPRINTF_OUTPUT -O3 -c -x c -include stan/lib/stan_math/lib/sundials_5.7.0/include/stan_sundials_printf_override.hpp stan/lib/stan_math/lib/sundials_5.7.0/src/cvodes/cvodes_ls.c -o stan/lib/stan_math/lib/sundials_5.7.0/src/cvodes/cvodes_ls.o
/opt/local/bin/g++-mp-7 -pipe -D_REENTRANT -O3 -I stan/lib/stan_math/lib/sundials_5.7.0/include -DNO_FPRINTF_OUTPUT -O3 -c -x c -include stan/lib/stan_math/lib/sundials_5.7.0/include/stan_sundials_printf_override.hpp stan/lib/stan_math/lib/sundials_5.7.0/src/cvodes/cvodes_nls.c -o stan/lib/stan_math/lib/sundials_5.7.0/src/cvodes/cvodes_nls.o
/opt/local/bin/g++-mp-7 -pipe -D_REENTRANT -O3 -I stan/lib/stan_math/lib/sundials_5.7.0/include -DNO_FPRINTF_OUTPUT -O3 -c -x c -include stan/lib/stan_math/lib/sundials_5.7.0/include/stan_sundials_printf_override.hpp stan/lib/stan_math/lib/sundials_5.7.0/src/cvodes/cvodes_nls_sim.c -o stan/lib/stan_math/lib/sundials_5.7.0/src/cvodes/cvodes_nls_sim.o
/opt/local/bin/g++-mp-7 -pipe -D_REENTRANT -O3 -I stan/lib/stan_math/lib/sundials_5.7.0/include -DNO_FPRINTF_OUTPUT -O3 -c -x c -include stan/lib/stan_math/lib/sundials_5.7.0/include/stan_sundials_printf_override.hpp stan/lib/stan_math/lib/sundials_5.7.0/src/cvodes/cvodes_nls_stg.c -o stan/lib/stan_math/lib/sundials_5.7.0/src/cvodes/cvodes_nls_stg.o
/opt/local/bin/g++-mp-7 -pipe -D_REENTRANT -O3 -I stan/lib/stan_math/lib/sundials_5.7.0/include -DNO_FPRINTF_OUTPUT -O3 -c -x c -include stan/lib/stan_math/lib/sundials_5.7.0/include/stan_sundials_printf_override.hpp stan/lib/stan_math/lib/sundials_5.7.0/src/cvodes/cvodes_nls_stg1.c -o stan/lib/stan_math/lib/sundials_5.7.0/src/cvodes/cvodes_nls_stg1.o
/opt/local/bin/g++-mp-7 -pipe -D_REENTRANT -O3 -I stan/lib/stan_math/lib/sundials_5.7.0/include -DNO_FPRINTF_OUTPUT -O3 -c -x c -include stan/lib/stan_math/lib/sundials_5.7.0/include/stan_sundials_printf_override.hpp stan/lib/stan_math/lib/sundials_5.7.0/src/cvodes/cvodes_spils.c -o stan/lib/stan_math/lib/sundials_5.7.0/src/cvodes/cvodes_spils.o
/opt/local/bin/g++-mp-7 -pipe -D_REENTRANT -O3 -I stan/lib/stan_math/lib/sundials_5.7.0/include -DNO_FPRINTF_OUTPUT -O3 -c -x c -include stan/lib/stan_math/lib/sundials_5.7.0/include/stan_sundials_printf_override.hpp stan/lib/stan_math/lib/sundials_5.7.0/src/sundials/sundials_band.c -o stan/lib/stan_math/lib/sundials_5.7.0/src/sundials/sundials_band.o
/opt/local/bin/g++-mp-7 -pipe -D_REENTRANT -O3 -I stan/lib/stan_math/lib/sundials_5.7.0/include -DNO_FPRINTF_OUTPUT -O3 -c -x c -include stan/lib/stan_math/lib/sundials_5.7.0/include/stan_sundials_printf_override.hpp stan/lib/stan_math/lib/sundials_5.7.0/src/sundials/sundials_dense.c -o stan/lib/stan_math/lib/sundials_5.7.0/src/sundials/sundials_dense.o
/opt/local/bin/g++-mp-7 -pipe -D_REENTRANT -O3 -I stan/lib/stan_math/lib/sundials_5.7.0/include -DNO_FPRINTF_OUTPUT -O3 -c -x c -include stan/lib/stan_math/lib/sundials_5.7.0/include/stan_sundials_printf_override.hpp stan/lib/stan_math/lib/sundials_5.7.0/src/sundials/sundials_direct.c -o stan/lib/stan_math/lib/sundials_5.7.0/src/sundials/sundials_direct.o
/opt/local/bin/g++-mp-7 -pipe -D_REENTRANT -O3 -I stan/lib/stan_math/lib/sundials_5.7.0/include -DNO_FPRINTF_OUTPUT -O3 -c -x c -include stan/lib/stan_math/lib/sundials_5.7.0/include/stan_sundials_printf_override.hpp stan/lib/stan_math/lib/sundials_5.7.0/src/sundials/sundials_futils.c -o stan/lib/stan_math/lib/sundials_5.7.0/src/sundials/sundials_futils.o
/opt/local/bin/g++-mp-7 -pipe -D_REENTRANT -O3 -I stan/lib/stan_math/lib/sundials_5.7.0/include -DNO_FPRINTF_OUTPUT -O3 -c -x c -include stan/lib/stan_math/lib/sundials_5.7.0/include/stan_sundials_printf_override.hpp stan/lib/stan_math/lib/sundials_5.7.0/src/sundials/sundials_iterative.c -o stan/lib/stan_math/lib/sundials_5.7.0/src/sundials/sundials_iterative.o
/opt/local/bin/g++-mp-7 -pipe -D_REENTRANT -O3 -I stan/lib/stan_math/lib/sundials_5.7.0/include -DNO_FPRINTF_OUTPUT -O3 -c -x c -include stan/lib/stan_math/lib/sundials_5.7.0/include/stan_sundials_printf_override.hpp stan/lib/stan_math/lib/sundials_5.7.0/src/sundials/sundials_linearsolver.c -o stan/lib/stan_math/lib/sundials_5.7.0/src/sundials/sundials_linearsolver.o
/opt/local/bin/g++-mp-7 -pipe -D_REENTRANT -O3 -I stan/lib/stan_math/lib/sundials_5.7.0/include -DNO_FPRINTF_OUTPUT -O3 -c -x c -include stan/lib/stan_math/lib/sundials_5.7.0/include/stan_sundials_printf_override.hpp stan/lib/stan_math/lib/sundials_5.7.0/src/sundials/sundials_matrix.c -o stan/lib/stan_math/lib/sundials_5.7.0/src/sundials/sundials_matrix.o
/opt/local/bin/g++-mp-7 -pipe -D_REENTRANT -O3 -I stan/lib/stan_math/lib/sundials_5.7.0/include -DNO_FPRINTF_OUTPUT -O3 -c -x c -include stan/lib/stan_math/lib/sundials_5.7.0/include/stan_sundials_printf_override.hpp stan/lib/stan_math/lib/sundials_5.7.0/src/sundials/sundials_memory.c -o stan/lib/stan_math/lib/sundials_5.7.0/src/sundials/sundials_memory.o
/opt/local/bin/g++-mp-7 -pipe -D_REENTRANT -O3 -I stan/lib/stan_math/lib/sundials_5.7.0/include -DNO_FPRINTF_OUTPUT -O3 -c -x c -include stan/lib/stan_math/lib/sundials_5.7.0/include/stan_sundials_printf_override.hpp stan/lib/stan_math/lib/sundials_5.7.0/src/sundials/sundials_nonlinearsolver.c -o stan/lib/stan_math/lib/sundials_5.7.0/src/sundials/sundials_nonlinearsolver.o
/opt/local/bin/g++-mp-7 -pipe -D_REENTRANT -O3 -I stan/lib/stan_math/lib/sundials_5.7.0/include -DNO_FPRINTF_OUTPUT -O3 -c -x c -include stan/lib/stan_math/lib/sundials_5.7.0/include/stan_sundials_printf_override.hpp stan/lib/stan_math/lib/sundials_5.7.0/src/sundials/sundials_nvector.c -o stan/lib/stan_math/lib/sundials_5.7.0/src/sundials/sundials_nvector.o
/opt/local/bin/g++-mp-7 -pipe -D_REENTRANT -O3 -I stan/lib/stan_math/lib/sundials_5.7.0/include -DNO_FPRINTF_OUTPUT -O3 -c -x c -include stan/lib/stan_math/lib/sundials_5.7.0/include/stan_sundials_printf_override.hpp stan/lib/stan_math/lib/sundials_5.7.0/src/sundials/sundials_nvector_senswrapper.c -o stan/lib/stan_math/lib/sundials_5.7.0/src/sundials/sundials_nvector_senswrapper.o
/opt/local/bin/g++-mp-7 -pipe -D_REENTRANT -O3 -I stan/lib/stan_math/lib/sundials_5.7.0/include -DNO_FPRINTF_OUTPUT -O3 -c -x c -include stan/lib/stan_math/lib/sundials_5.7.0/include/stan_sundials_printf_override.hpp stan/lib/stan_math/lib/sundials_5.7.0/src/sundials/sundials_version.c -o stan/lib/stan_math/lib/sundials_5.7.0/src/sundials/sundials_version.o
/opt/local/bin/g++-mp-7 -pipe -D_REENTRANT -O3 -I stan/lib/stan_math/lib/sundials_5.7.0/include -DNO_FPRINTF_OUTPUT -O3 -c -x c -include stan/lib/stan_math/lib/sundials_5.7.0/include/stan_sundials_printf_override.hpp stan/lib/stan_math/lib/sundials_5.7.0/src/sunmatrix/band/sunmatrix_band.c -o stan/lib/stan_math/lib/sundials_5.7.0/src/sunmatrix/band/sunmatrix_band.o
/opt/local/bin/g++-mp-7 -pipe -D_REENTRANT -O3 -I stan/lib/stan_math/lib/sundials_5.7.0/include -DNO_FPRINTF_OUTPUT -O3 -c -x c -include stan/lib/stan_math/lib/sundials_5.7.0/include/stan_sundials_printf_override.hpp stan/lib/stan_math/lib/sundials_5.7.0/src/sunmatrix/dense/sunmatrix_dense.c -o stan/lib/stan_math/lib/sundials_5.7.0/src/sunmatrix/dense/sunmatrix_dense.o
/opt/local/bin/g++-mp-7 -pipe -D_REENTRANT -O3 -I stan/lib/stan_math/lib/sundials_5.7.0/include -DNO_FPRINTF_OUTPUT -O3 -c -x c -include stan/lib/stan_math/lib/sundials_5.7.0/include/stan_sundials_printf_override.hpp stan/lib/stan_math/lib/sundials_5.7.0/src/sunlinsol/band/sunlinsol_band.c -o stan/lib/stan_math/lib/sundials_5.7.0/src/sunlinsol/band/sunlinsol_band.o
/opt/local/bin/g++-mp-7 -pipe -D_REENTRANT -O3 -I stan/lib/stan_math/lib/sundials_5.7.0/include -DNO_FPRINTF_OUTPUT -O3 -c -x c -include stan/lib/stan_math/lib/sundials_5.7.0/include/stan_sundials_printf_override.hpp stan/lib/stan_math/lib/sundials_5.7.0/src/sunlinsol/dense/sunlinsol_dense.c -o stan/lib/stan_math/lib/sundials_5.7.0/src/sunlinsol/dense/sunlinsol_dense.o
/opt/local/bin/g++-mp-7 -pipe -D_REENTRANT -O3 -I stan/lib/stan_math/lib/sundials_5.7.0/include -DNO_FPRINTF_OUTPUT -O3 -c -x c -include stan/lib/stan_math/lib/sundials_5.7.0/include/stan_sundials_printf_override.hpp stan/lib/stan_math/lib/sundials_5.7.0/src/sunnonlinsol/newton/sunnonlinsol_newton.c -o stan/lib/stan_math/lib/sundials_5.7.0/src/sunnonlinsol/newton/sunnonlinsol_newton.o
/opt/local/bin/g++-mp-7 -pipe -D_REENTRANT -O3 -I stan/lib/stan_math/lib/sundials_5.7.0/include -DNO_FPRINTF_OUTPUT -O3 -c -x c -include stan/lib/stan_math/lib/sundials_5.7.0/include/stan_sundials_printf_override.hpp stan/lib/stan_math/lib/sundials_5.7.0/src/sunnonlinsol/fixedpoint/sunnonlinsol_fixedpoint.c -o stan/lib/stan_math/lib/sundials_5.7.0/src/sunnonlinsol/fixedpoint/sunnonlinsol_fixedpoint.o
/opt/local/bin/g++-mp-7 -pipe -D_REENTRANT -O3 -I stan/lib/stan_math/lib/sundials_5.7.0/include -DNO_FPRINTF_OUTPUT -O3 -c -x c -include stan/lib/stan_math/lib/sundials_5.7.0/include/stan_sundials_printf_override.hpp stan/lib/stan_math/lib/sundials_5.7.0/src/idas/idaa.c -o stan/lib/stan_math/lib/sundials_5.7.0/src/idas/idaa.o
/opt/local/bin/g++-mp-7 -pipe -D_REENTRANT -O3 -I stan/lib/stan_math/lib/sundials_5.7.0/include -DNO_FPRINTF_OUTPUT -O3 -c -x c -include stan/lib/stan_math/lib/sundials_5.7.0/include/stan_sundials_printf_override.hpp stan/lib/stan_math/lib/sundials_5.7.0/src/idas/idaa_io.c -o stan/lib/stan_math/lib/sundials_5.7.0/src/idas/idaa_io.o
/opt/local/bin/g++-mp-7 -pipe -D_REENTRANT -O3 -I stan/lib/stan_math/lib/sundials_5.7.0/include -DNO_FPRINTF_OUTPUT -O3 -c -x c -include stan/lib/stan_math/lib/sundials_5.7.0/include/stan_sundials_printf_override.hpp stan/lib/stan_math/lib/sundials_5.7.0/src/idas/idas.c -o stan/lib/stan_math/lib/sundials_5.7.0/src/idas/idas.o
/opt/local/bin/g++-mp-7 -pipe -D_REENTRANT -O3 -I stan/lib/stan_math/lib/sundials_5.7.0/include -DNO_FPRINTF_OUTPUT -O3 -c -x c -include stan/lib/stan_math/lib/sundials_5.7.0/include/stan_sundials_printf_override.hpp stan/lib/stan_math/lib/sundials_5.7.0/src/idas/idas_bbdpre.c -o stan/lib/stan_math/lib/sundials_5.7.0/src/idas/idas_bbdpre.o
/opt/local/bin/g++-mp-7 -pipe -D_REENTRANT -O3 -I stan/lib/stan_math/lib/sundials_5.7.0/include -DNO_FPRINTF_OUTPUT -O3 -c -x c -include stan/lib/stan_math/lib/sundials_5.7.0/include/stan_sundials_printf_override.hpp stan/lib/stan_math/lib/sundials_5.7.0/src/idas/idas_direct.c -o stan/lib/stan_math/lib/sundials_5.7.0/src/idas/idas_direct.o
/opt/local/bin/g++-mp-7 -pipe -D_REENTRANT -O3 -I stan/lib/stan_math/lib/sundials_5.7.0/include -DNO_FPRINTF_OUTPUT -O3 -c -x c -include stan/lib/stan_math/lib/sundials_5.7.0/include/stan_sundials_printf_override.hpp stan/lib/stan_math/lib/sundials_5.7.0/src/idas/idas_ic.c -o stan/lib/stan_math/lib/sundials_5.7.0/src/idas/idas_ic.o
/opt/local/bin/g++-mp-7 -pipe -D_REENTRANT -O3 -I stan/lib/stan_math/lib/sundials_5.7.0/include -DNO_FPRINTF_OUTPUT -O3 -c -x c -include stan/lib/stan_math/lib/sundials_5.7.0/include/stan_sundials_printf_override.hpp stan/lib/stan_math/lib/sundials_5.7.0/src/idas/idas_io.c -o stan/lib/stan_math/lib/sundials_5.7.0/src/idas/idas_io.o
/opt/local/bin/g++-mp-7 -pipe -D_REENTRANT -O3 -I stan/lib/stan_math/lib/sundials_5.7.0/include -DNO_FPRINTF_OUTPUT -O3 -c -x c -include stan/lib/stan_math/lib/sundials_5.7.0/include/stan_sundials_printf_override.hpp stan/lib/stan_math/lib/sundials_5.7.0/src/idas/idas_ls.c -o stan/lib/stan_math/lib/sundials_5.7.0/src/idas/idas_ls.o
/opt/local/bin/g++-mp-7 -pipe -D_REENTRANT -O3 -I stan/lib/stan_math/lib/sundials_5.7.0/include -DNO_FPRINTF_OUTPUT -O3 -c -x c -include stan/lib/stan_math/lib/sundials_5.7.0/include/stan_sundials_printf_override.hpp stan/lib/stan_math/lib/sundials_5.7.0/src/idas/idas_nls.c -o stan/lib/stan_math/lib/sundials_5.7.0/src/idas/idas_nls.o
/opt/local/bin/g++-mp-7 -pipe -D_REENTRANT -O3 -I stan/lib/stan_math/lib/sundials_5.7.0/include -DNO_FPRINTF_OUTPUT -O3 -c -x c -include stan/lib/stan_math/lib/sundials_5.7.0/include/stan_sundials_printf_override.hpp stan/lib/stan_math/lib/sundials_5.7.0/src/idas/idas_nls_sim.c -o stan/lib/stan_math/lib/sundials_5.7.0/src/idas/idas_nls_sim.o
/opt/local/bin/g++-mp-7 -pipe -D_REENTRANT -O3 -I stan/lib/stan_math/lib/sundials_5.7.0/include -DNO_FPRINTF_OUTPUT -O3 -c -x c -include stan/lib/stan_math/lib/sundials_5.7.0/include/stan_sundials_printf_override.hpp stan/lib/stan_math/lib/sundials_5.7.0/src/idas/idas_nls_stg.c -o stan/lib/stan_math/lib/sundials_5.7.0/src/idas/idas_nls_stg.o
/opt/local/bin/g++-mp-7 -pipe -D_REENTRANT -O3 -I stan/lib/stan_math/lib/sundials_5.7.0/include -DNO_FPRINTF_OUTPUT -O3 -c -x c -include stan/lib/stan_math/lib/sundials_5.7.0/include/stan_sundials_printf_override.hpp stan/lib/stan_math/lib/sundials_5.7.0/src/idas/idas_spils.c -o stan/lib/stan_math/lib/sundials_5.7.0/src/idas/idas_spils.o
/opt/local/bin/g++-mp-7 -pipe -D_REENTRANT -O3 -I stan/lib/stan_math/lib/sundials_5.7.0/include -DNO_FPRINTF_OUTPUT -O3 -c -x c -include stan/lib/stan_math/lib/sundials_5.7.0/include/stan_sundials_printf_override.hpp stan/lib/stan_math/lib/sundials_5.7.0/src/kinsol/kinsol.c -o stan/lib/stan_math/lib/sundials_5.7.0/src/kinsol/kinsol.o
/opt/local/bin/g++-mp-7 -pipe -D_REENTRANT -O3 -I stan/lib/stan_math/lib/sundials_5.7.0/include -DNO_FPRINTF_OUTPUT -O3 -c -x c -include stan/lib/stan_math/lib/sundials_5.7.0/include/stan_sundials_printf_override.hpp stan/lib/stan_math/lib/sundials_5.7.0/src/kinsol/kinsol_bbdpre.c -o stan/lib/stan_math/lib/sundials_5.7.0/src/kinsol/kinsol_bbdpre.o
/opt/local/bin/g++-mp-7 -pipe -D_REENTRANT -O3 -I stan/lib/stan_math/lib/sundials_5.7.0/include -DNO_FPRINTF_OUTPUT -O3 -c -x c -include stan/lib/stan_math/lib/sundials_5.7.0/include/stan_sundials_printf_override.hpp stan/lib/stan_math/lib/sundials_5.7.0/src/kinsol/kinsol_direct.c -o stan/lib/stan_math/lib/sundials_5.7.0/src/kinsol/kinsol_direct.o
/opt/local/bin/g++-mp-7 -pipe -D_REENTRANT -O3 -I stan/lib/stan_math/lib/sundials_5.7.0/include -DNO_FPRINTF_OUTPUT -O3 -c -x c -include stan/lib/stan_math/lib/sundials_5.7.0/include/stan_sundials_printf_override.hpp stan/lib/stan_math/lib/sundials_5.7.0/src/kinsol/kinsol_io.c -o stan/lib/stan_math/lib/sundials_5.7.0/src/kinsol/kinsol_io.o
/opt/local/bin/g++-mp-7 -pipe -D_REENTRANT -O3 -I stan/lib/stan_math/lib/sundials_5.7.0/include -DNO_FPRINTF_OUTPUT -O3 -c -x c -include stan/lib/stan_math/lib/sundials_5.7.0/include/stan_sundials_printf_override.hpp stan/lib/stan_math/lib/sundials_5.7.0/src/kinsol/kinsol_ls.c -o stan/lib/stan_math/lib/sundials_5.7.0/src/kinsol/kinsol_ls.o
/opt/local/bin/g++-mp-7 -pipe -D_REENTRANT -O3 -I stan/lib/stan_math/lib/sundials_5.7.0/include -DNO_FPRINTF_OUTPUT -O3 -c -x c -include stan/lib/stan_math/lib/sundials_5.7.0/include/stan_sundials_printf_override.hpp stan/lib/stan_math/lib/sundials_5.7.0/src/kinsol/kinsol_spils.c -o stan/lib/stan_math/lib/sundials_5.7.0/src/kinsol/kinsol_spils.o
touch stan/lib/stan_math/lib/tbb/tbb-make-check
--- Compiling the main object file. This might take up to a minute. ---
/opt/local/bin/g++-mp-7 -std=c++1y -D_REENTRANT -Wno-ignored-attributes -I stan/lib/stan_math/lib/tbb_2020.3/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.75.0 -I stan/lib/stan_math/lib/sundials_5.7.0/include -DBOOST_DISABLE_ASSERTS -c -o src/cmdstan/main.o src/cmdstan/main.cpp
--- Compiling pre-compiled header. This might take a few seconds. ---
/opt/local/bin/g++-mp-7 -std=c++1y -D_REENTRANT -Wno-ignored-attributes -I stan/lib/stan_math/lib/tbb_2020.3/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.75.0 -I stan/lib/stan_math/lib/sundials_5.7.0/include -DBOOST_DISABLE_ASSERTS -c stan/src/stan/model/model_header.hpp -o stan/src/stan/model/model_header.hpp.gch
/opt/local/bin/g++-mp-7 -std=c++1y -D_REENTRANT -Wno-ignored-attributes -I stan/lib/stan_math/lib/tbb_2020.3/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.75.0 -I stan/lib/stan_math/lib/sundials_5.7.0/include -DBOOST_DISABLE_ASSERTS -c -fvisibility=hidden -o bin/cmdstan/stansummary.o -Wl,-L,"/Users/svacchanda/.cmdstanr/cmdstan-2.28.1/stan/lib/stan_math/lib/tbb" -Wl,-rpath,"/Users/svacchanda/.cmdstanr/cmdstan-2.28.1/stan/lib/stan_math/lib/tbb" src/cmdstan/stansummary.cpp
/opt/local/bin/g++-mp-7 -std=c++1y -D_REENTRANT -Wno-ignored-attributes -I stan/lib/stan_math/lib/tbb_2020.3/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.75.0 -I stan/lib/stan_math/lib/sundials_5.7.0/include -DBOOST_DISABLE_ASSERTS -c -fvisibility=hidden -o bin/cmdstan/print.o -Wl,-L,"/Users/svacchanda/.cmdstanr/cmdstan-2.28.1/stan/lib/stan_math/lib/tbb" -Wl,-rpath,"/Users/svacchanda/.cmdstanr/cmdstan-2.28.1/stan/lib/stan_math/lib/tbb" src/cmdstan/print.cpp
In file included from stan/lib/stan_math/stan/math/prim/fun/beta.hpp:6:0,
from stan/lib/stan_math/stan/math/prim/fun.hpp:30,
from stan/lib/stan_math/stan/math/prim.hpp:14,
from stan/src/stan/io/stan_csv_reader.hpp:5,
from stan/src/stan/mcmc/chains.hpp:4,
from src/cmdstan/stansummary_helper.hpp:4,
from src/cmdstan/stansummary.cpp:1:
stan/lib/stan_math/stan/math/prim/fun/lgamma.hpp: In function 'double stan::math::lgamma(double)':
stan/lib/stan_math/stan/math/prim/fun/lgamma.hpp:66:12: error: '::lgamma_r' has not been declared
return ::lgamma_r(x, &sign);
^~~~~~~~
stan/lib/stan_math/stan/math/prim/fun/lgamma.hpp:66:12: note: suggested alternative: 'lgamma'
return ::lgamma_r(x, &sign);
^~~~~~~~
lgamma
stan/lib/stan_math/stan/math/prim/fun/lgamma.hpp: In function 'double stan::math::lgamma(int)':
stan/lib/stan_math/stan/math/prim/fun/lgamma.hpp:85:12: error: '::lgamma_r' has not been declared
return ::lgamma_r(x, &sign);
^~~~~~~~
stan/lib/stan_math/stan/math/prim/fun/lgamma.hpp:85:12: note: suggested alternative: 'lgamma'
return ::lgamma_r(x, &sign);
^~~~~~~~
lgamma
In file included from stan/lib/stan_math/stan/math/prim/fun/beta.hpp:6:0,
from stan/lib/stan_math/stan/math/prim/fun.hpp:30,
from stan/lib/stan_math/stan/math/prim.hpp:14,
from stan/src/stan/io/stan_csv_reader.hpp:5,
from stan/src/stan/mcmc/chains.hpp:4,
from src/cmdstan/stansummary_helper.hpp:4,
from src/cmdstan/print.cpp:2:
stan/lib/stan_math/stan/math/prim/fun/lgamma.hpp: In function 'double stan::math::lgamma(double)':
stan/lib/stan_math/stan/math/prim/fun/lgamma.hpp:66:12: error: '::lgamma_r' has not been declared
return ::lgamma_r(x, &sign);
^~~~~~~~
stan/lib/stan_math/stan/math/prim/fun/lgamma.hpp:66:12: note: suggested alternative: 'lgamma'
return ::lgamma_r(x, &sign);
^~~~~~~~
lgamma
stan/lib/stan_math/stan/math/prim/fun/lgamma.hpp: In function 'double stan::math::lgamma(int)':
stan/lib/stan_math/stan/math/prim/fun/lgamma.hpp:85:12: error: '::lgamma_r' has not been declared
return ::lgamma_r(x, &sign);
^~~~~~~~
stan/lib/stan_math/stan/math/prim/fun/lgamma.hpp:85:12: note: suggested alternative: 'lgamma'
return ::lgamma_r(x, &sign);
^~~~~~~~
lgamma
In file included from stan/lib/stan_math/stan/math/prim/fun/beta.hpp:6:0,
from stan/lib/stan_math/stan/math/rev/fun/beta.hpp:6,
from stan/lib/stan_math/stan/math/rev/fun.hpp:26,
from stan/lib/stan_math/stan/math/rev.hpp:10,
from stan/lib/stan_math/stan/math.hpp:19,
from stan/src/stan/model/model_header.hpp:4:
stan/lib/stan_math/stan/math/prim/fun/lgamma.hpp: In function 'double stan::math::lgamma(double)':
stan/lib/stan_math/stan/math/prim/fun/lgamma.hpp:66:12: error: '::lgamma_r' has not been declared
return ::lgamma_r(x, &sign);
^~~~~~~~
stan/lib/stan_math/stan/math/prim/fun/lgamma.hpp:66:12: note: suggested alternative: 'lgamma'
return ::lgamma_r(x, &sign);
^~~~~~~~
lgamma
stan/lib/stan_math/stan/math/prim/fun/lgamma.hpp: In function 'double stan::math::lgamma(int)':
stan/lib/stan_math/stan/math/prim/fun/lgamma.hpp:85:12: error: '::lgamma_r' has not been declared
return ::lgamma_r(x, &sign);
^~~~~~~~
stan/lib/stan_math/stan/math/prim/fun/lgamma.hpp:85:12: note: suggested alternative: 'lgamma'
return ::lgamma_r(x, &sign);
^~~~~~~~
lgamma
In file included from stan/lib/stan_math/stan/math/prim/fun/beta.hpp:6:0,
from stan/lib/stan_math/stan/math/prim/fun.hpp:30,
from stan/lib/stan_math/stan/math/prim.hpp:14,
from stan/src/stan/io/dump.hpp:7,
from src/cmdstan/command.hpp:30,
from src/cmdstan/main.cpp:1:
stan/lib/stan_math/stan/math/prim/fun/lgamma.hpp: In function 'double stan::math::lgamma(double)':
stan/lib/stan_math/stan/math/prim/fun/lgamma.hpp:66:12: error: '::lgamma_r' has not been declared
return ::lgamma_r(x, &sign);
^~~~~~~~
stan/lib/stan_math/stan/math/prim/fun/lgamma.hpp:66:12: note: suggested alternative: 'lgamma'
return ::lgamma_r(x, &sign);
^~~~~~~~
lgamma
stan/lib/stan_math/stan/math/prim/fun/lgamma.hpp: In function 'double stan::math::lgamma(int)':
stan/lib/stan_math/stan/math/prim/fun/lgamma.hpp:85:12: error: '::lgamma_r' has not been declared
return ::lgamma_r(x, &sign);
^~~~~~~~
stan/lib/stan_math/stan/math/prim/fun/lgamma.hpp:85:12: note: suggested alternative: 'lgamma'
return ::lgamma_r(x, &sign);
^~~~~~~~
lgamma
make: *** [bin/cmdstan/print.o] Error 1
make: *** Waiting for unfinished jobs....
make: *** [bin/cmdstan/stansummary.o] Error 1
make: *** [src/cmdstan/main.o] Error 1
make: *** [stan/src/stan/model/model_header.hpp.gch] Error 1
Warning message:
There was a problem during installation. See the error message(s) above.
System info:
R version 4.1.2 (2021-11-01)
Platform: powerpc-apple-darwin10.0.0d2 (32-bit)
Running under: OS X Snow Leopard 10.6
Matrix products: default
BLAS: /opt/local/Library/Frameworks/R.framework/Versions/4.1/Resources/lib/libRblas.dylib
LAPACK: /opt/local/Library/Frameworks/R.framework/Versions/4.1/Resources/lib/libRlapack.dylib
locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8
I have set GCC as default compiler in Makevars and Makeconf, since Clang is known not to work on PPC.