Skip to content

Instantly share code, notes, and snippets.

@bbbales2
Last active April 20, 2017 03:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bbbales2/739a4d346bdc930ddebaedc005259c0b to your computer and use it in GitHub Desktop.
Save bbbales2/739a4d346bdc930ddebaedc005259c0b to your computer and use it in GitHub Desktop.
g++ build log
bbales2@frog:~/stan3$ make test/unit/mcmc/hmc/integrators/impl_leapfrog2
make: Warning: Archive 'test/libgtest.a' seems to have been created in deterministic mode. 'test/gtest.o' will always be updated. Please consider passing the U flag to ar to avoid the problem.
ar rv test/libgtest.a test/gtest.o
r - test/gtest.o
make: Warning: Archive 'test/libgtest.a' seems to have been created in deterministic mode. 'test/gtest.o' will always be updated. Please consider passing the U flag to ar to avoid the problem.
g++ -I src -isystem lib/stan_math/lib/eigen_3.2.9 -isystem lib/stan_math/lib/boost_1.62.0 -isystem lib/stan_math/lib/cvodes_2.9.0/include -isystem lib/stan_math/ -Wall -DBOOST_RESULT_OF_USE_TR1 -DBOOST_NO_DECLTYPE -DBOOST_DISABLE_ASSERTS -DFUSION_MAX_VECTOR_SIZE=12 -DNO_FPRINTF_OUTPUT -pipe -c -O3 -DGTEST_USE_OWN_TR1_TUPLE -DGTEST_HAS_PTHREAD=0 -isystem lib/stan_math/lib/gtest_1.7.0/include -isystem lib/stan_math/lib/gtest_1.7.0 src/test/unit/mcmc/hmc/integrators/impl_leapfrog2_test.cpp -o test/unit/mcmc/hmc/integrators/impl_leapfrog2.o
In file included from lib/stan_math/stan/math/fwd/core.hpp:4:0,
from lib/stan_math/stan/math/mix/mat/fun/typedefs.hpp:5,
from lib/stan_math/stan/math/mix/mat.hpp:4,
from src/stan/mcmc/hmc/hamiltonians/softabs_metric.hpp:4,
from src/test/unit/mcmc/hmc/integrators/impl_leapfrog2_test.cpp:2:
lib/stan_math/stan/math/fwd/core/fvar.hpp: In substitution of ‘template<class V> stan::math::fvar<T>::fvar(const V&, typename boost::enable_if_c<stan::math::ad_promotable<V, T>::value>::type*) [with V = stan::math::fvar<double>]’:
lib/stan_math/stan/math/mix/mat/functor/hessian.hpp:84:23: required from ‘void stan::math::hessian(const F&, const Eigen::Matrix<Scalar, -1, 1>&, T&, Eigen::Matrix<Scalar, -1, 1>&, Eigen::Matrix<LhsScalar, -1, -1, 0>&) [with T = double; F = stan::mcmc::softabs_fun<gauss_model_namespace::gauss_model>]’
src/stan/mcmc/hmc/hamiltonians/softabs_metric.hpp:118:36: required from ‘void stan::mcmc::softabs_metric<Model, BaseRNG>::update_metric(stan::mcmc::softabs_point&, stan::callbacks::writer&, stan::callbacks::writer&) [with Model = gauss_model_namespace::gauss_model; BaseRNG = boost::random::additive_combine_engine<boost::random::linear_congruential_engine<unsigned int, 40014u, 0u, 2147483563u>, boost::random::linear_congruential_engine<unsigned int, 40692u, 0u, 2147483399u> >]’
src/stan/mcmc/hmc/hamiltonians/softabs_metric.hpp:110:22: required from ‘void stan::mcmc::softabs_metric<Model, BaseRNG>::init(stan::mcmc::softabs_point&, stan::callbacks::writer&, stan::callbacks::writer&) [with Model = gauss_model_namespace::gauss_model; BaseRNG = boost::random::additive_combine_engine<boost::random::linear_congruential_engine<unsigned int, 40014u, 0u, 2147483563u>, boost::random::linear_congruential_engine<unsigned int, 40692u, 0u, 2147483399u> >]’
src/test/unit/mcmc/hmc/integrators/impl_leapfrog2_test.cpp:179:38: required from here
lib/stan_math/stan/math/fwd/core/fvar.hpp:33:7: error: ambiguous template instantiation for ‘struct stan::math::ad_promotable<stan::math::fvar<double>, stan::math::fvar<double> >’
fvar(const V& v,
^
In file included from lib/stan_math/stan/math/prim/scal.hpp:6:0,
from lib/stan_math/stan/math/prim/arr.hpp:41,
from lib/stan_math/stan/math/prim/mat.hpp:298,
from src/stan/io/dump.hpp:6,
from src/test/unit/mcmc/hmc/integrators/impl_leapfrog2_test.cpp:1:
lib/stan_math/stan/math/prim/scal/meta/ad_promotable.hpp:30:12: note: candidates are: template<class T> struct stan::math::ad_promotable<T, T> [with T = stan::math::fvar<double>]
struct ad_promotable<T, T> {
^
In file included from lib/stan_math/stan/math/fwd/core/fvar.hpp:6:0,
from lib/stan_math/stan/math/fwd/core.hpp:4,
from lib/stan_math/stan/math/mix/mat/fun/typedefs.hpp:5,
from lib/stan_math/stan/math/mix/mat.hpp:4,
from src/stan/mcmc/hmc/hamiltonians/softabs_metric.hpp:4,
from src/test/unit/mcmc/hmc/integrators/impl_leapfrog2_test.cpp:2:
lib/stan_math/stan/math/fwd/scal/meta/ad_promotable.hpp:13:12: note: template<class V, class T> struct stan::math::ad_promotable<V, stan::math::fvar<T> > [with V = stan::math::fvar<double>; T = double]
struct ad_promotable<V, fvar<T> > {
^
In file included from lib/stan_math/stan/math/fwd/core.hpp:4:0,
from lib/stan_math/stan/math/mix/mat/fun/typedefs.hpp:5,
from lib/stan_math/stan/math/mix/mat.hpp:4,
from src/stan/mcmc/hmc/hamiltonians/softabs_metric.hpp:4,
from src/test/unit/mcmc/hmc/integrators/impl_leapfrog2_test.cpp:2:
lib/stan_math/stan/math/fwd/core/fvar.hpp: In substitution of ‘template<class V> stan::math::fvar<T>::fvar(const V&, typename boost::enable_if_c<stan::math::ad_promotable<V, T>::value>::type*) [with V = stan::math::fvar<stan::math::var>]’:
lib/stan_math/stan/math/mix/mat/functor/gradient_dot_vector.hpp:22:19: required from ‘void stan::math::gradient_dot_vector(const F&, const Eigen::Matrix<Scalar, -1, 1>&, const Eigen::Matrix<RhsScalar, -1, 1>&, T1&, T1&) [with T1 = stan::math::fvar<stan::math::var>; T2 = double; F = stan::mcmc::softabs_fun<gauss_model_namespace::gauss_model>]’
lib/stan_math/stan/math/mix/mat/functor/grad_tr_mat_times_hessian.hpp:41:49: required from ‘void stan::math::grad_tr_mat_times_hessian(const F&, const Eigen::Matrix<double, -1, 1>&, const Eigen::Matrix<double, -1, -1>&, Eigen::Matrix<double, -1, 1>&) [with F = stan::mcmc::softabs_fun<gauss_model_namespace::gauss_model>]’
src/stan/mcmc/hmc/hamiltonians/softabs_metric.hpp:68:47: required from ‘Eigen::VectorXd stan::mcmc::softabs_metric<Model, BaseRNG>::dtau_dq(stan::mcmc::softabs_point&, stan::callbacks::writer&, stan::callbacks::writer&) [with Model = gauss_model_namespace::gauss_model; BaseRNG = boost::random::additive_combine_engine<boost::random::linear_congruential_engine<unsigned int, 40014u, 0u, 2147483563u>, boost::random::linear_congruential_engine<unsigned int, 40692u, 0u, 2147483399u> >; Eigen::VectorXd = Eigen::Matrix<double, -1, 1>]’
src/test/unit/mcmc/hmc/integrators/impl_leapfrog2_test.cpp:289:1: required from here
lib/stan_math/stan/math/fwd/core/fvar.hpp:33:7: error: ambiguous template instantiation for ‘struct stan::math::ad_promotable<stan::math::fvar<stan::math::var>, stan::math::fvar<stan::math::var> >’
fvar(const V& v,
^
In file included from lib/stan_math/stan/math/prim/scal.hpp:6:0,
from lib/stan_math/stan/math/prim/arr.hpp:41,
from lib/stan_math/stan/math/prim/mat.hpp:298,
from src/stan/io/dump.hpp:6,
from src/test/unit/mcmc/hmc/integrators/impl_leapfrog2_test.cpp:1:
lib/stan_math/stan/math/prim/scal/meta/ad_promotable.hpp:30:12: note: candidates are: template<class T> struct stan::math::ad_promotable<T, T> [with T = stan::math::fvar<stan::math::var>]
struct ad_promotable<T, T> {
^
In file included from lib/stan_math/stan/math/fwd/core/fvar.hpp:6:0,
from lib/stan_math/stan/math/fwd/core.hpp:4,
from lib/stan_math/stan/math/mix/mat/fun/typedefs.hpp:5,
from lib/stan_math/stan/math/mix/mat.hpp:4,
from src/stan/mcmc/hmc/hamiltonians/softabs_metric.hpp:4,
from src/test/unit/mcmc/hmc/integrators/impl_leapfrog2_test.cpp:2:
lib/stan_math/stan/math/fwd/scal/meta/ad_promotable.hpp:13:12: note: template<class V, class T> struct stan::math::ad_promotable<V, stan::math::fvar<T> > [with V = stan::math::fvar<stan::math::var>; T = stan::math::var]
struct ad_promotable<V, fvar<T> > {
^
make/tests:21: recipe for target 'test/unit/mcmc/hmc/integrators/impl_leapfrog2.o' failed
make: *** [test/unit/mcmc/hmc/integrators/impl_leapfrog2.o] Error 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment