I’m trying to install cmdstan on a Linux cluster, but I’m receiving an error.
The full error is here (cmdstan-build-error.txt (115.6 KB)).
The start of the output is:
icpc -std=c++1y -D_REENTRANT -Wno-sign-compare -I stan/lib/stan_math/lib/tbb_2019_U8/include -O3 -I src -I stan/src -I lib/rapidjson_1.1.0/ -I stan/lib/stan_math/ -I stan/lib/stan_math/lib/eigen_3.3.7 -I stan/lib/stan_math/lib/boost_1.72.0 -I stan/lib/stan_math/lib/sundials_5.2.0/include -DBOOST_DISABLE_ASSERTS -c -o bin/cmdstan/stansummary.o src/cmdstan/stansummary.cpp
In file included from stan/lib/stan_math/lib/boost_1.72.0/boost/utility.hpp(22),
from stan/lib/stan_math/lib/boost_1.72.0/boost/range/size.hpp(25),
from stan/lib/stan_math/lib/boost_1.72.0/boost/range/functions.hpp(20),
from stan/lib/stan_math/lib/boost_1.72.0/boost/range/iterator_range_core.hpp(38),
from stan/lib/stan_math/lib/boost_1.72.0/boost/range/iterator_range.hpp(13),
from stan/lib/stan_math/lib/boost_1.72.0/boost/range/as_literal.hpp(22),
from stan/lib/stan_math/lib/boost_1.72.0/boost/algorithm/string/trim.hpp(19),
from stan/lib/stan_math/lib/boost_1.72.0/boost/algorithm/string.hpp(19),
from stan/src/stan/io/stan_csv_reader.hpp(4),
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/lib/boost_1.72.0/boost/core/noncopyable.hpp(42): error: defaulted default constructor cannot be constexpr because the corresponding implicitly declared default constructor would not be constexpr
^
and it ends with the error:
In file included from stan/lib/stan_math/stan/math/prim/meta/base_type.hpp(6),
from stan/lib/stan_math/stan/math/prim/meta/return_type.hpp(6),
from stan/lib/stan_math/stan/math/prim/meta/append_return_type.hpp(5),
from stan/lib/stan_math/stan/math/prim/meta.hpp(169),
from stan/lib/stan_math/stan/math/prim/err/invalid_argument.hpp(4),
from stan/lib/stan_math/stan/math/prim/core/init_threadpool_tbb.hpp(4),
from stan/lib/stan_math/stan/math/prim/core.hpp(4),
from stan/lib/stan_math/stan/math/prim.hpp(6),
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/meta/is_eigen.hpp(59): error: expected a ";"
STAN_ADD_REQUIRE_UNARY(eigen_array, is_eigen_array, require_eigens_types);
^
compilation aborted for src/cmdstan/stansummary.cpp (code 4)
make: *** [bin/cmdstan/stansummary.o] Error 4
I cloned cmdstan
git with:
git clone --recursive https://github.com/stan-dev/cmdstan
created my make/local
:
STAN_MPI=true
CXX=mpicxx
TBB_CXX_TYPE=gcc
based on a previous post, then ran make build
.
Unfortunately, the system seems to have an older-than-recommended version of gcc
(version 4.8), so am I also trying to resolve that. But would that be enough to explain why cmdstan
won’t build?
Thanks.