On Mon, Mar 09, 2015 at 02:46:10PM -0400, Daniel Lee wrote:
> how does it fail?
joshua@tailwind:/opt/cmdstan/stan$ make test/unit/math/mix/mat/prob/lkj_corr
g++ -I src -isystem lib/eigen_3.2.2 -isystem lib/boost_1.55.0 -Wall -DBOOST_RESULT_OF_USE_TR1 -DBOOST_NO_DECLTYPE -DBOOST_DISABLE_ASSERTS -pipe -fmax-errors=1 -c -O3 -DGTEST_USE_OWN_TR1_TUPLE -DGTEST_HAS_PTHREAD=0 -isystem lib/gtest_1.7.0/include -isystem lib/gtest_1.7.0 src/test/unit/math/mix/mat/prob/lkj_corr_test.cpp -o test/unit/math/mix/mat/prob/lkj_corr.o
In file included from src/stan/math/prim/mat/fun/positive_ordered_free.hpp:5:0,
from src/stan/math/prim/mat/prob/lkj_corr_log.hpp:38,
from src/test/unit/math/mix/mat/prob/lkj_corr_test.cpp:37:
src/stan/math/prim/mat/err/check_positive_ordered.hpp: In function ‘bool stan::math::check_positive_ordered(const char*, const char*, const Eigen::Matrix<Scalar, -1, 1>&)’:
src/stan/math/prim/mat/err/check_positive_ordered.hpp:39:67: warning: typedef ‘size_type’ locally defined but not used [-Wunused-local-typedefs]
typedef typename index_type<Matrix<T_y, Dynamic, 1> >::type size_type;
^
In file included from lib/boost_1.55.0/boost/math/tools/promotion.hpp:29:0,
from lib/boost_1.55.0/boost/math/special_functions/detail/round_fwd.hpp:12,
from lib/boost_1.55.0/boost/math/special_functions/math_fwd.hpp:26,
from lib/boost_1.55.0/boost/math/special_functions/fpclassify.hpp:19,
from src/stan/math/fwd/core/fvar.hpp:5,
from src/stan/math/fwd/core.hpp:4,
from src/test/unit/math/mix/mat/prob/lkj_corr_test.cpp:7:
lib/boost_1.55.0/boost/type_traits/is_convertible.hpp: In instantiation of ‘const bool boost::detail::is_convertible_basic_impl<__float128, stan::agrad::var>::value’:
lib/boost_1.55.0/boost/type_traits/is_convertible.hpp:354:5: required from ‘const bool boost::detail::is_convertible_impl<__float128, stan::agrad::var>::value’
lib/boost_1.55.0/boost/type_traits/is_convertible.hpp:480:1: required from ‘struct boost::is_convertible<__float128, stan::agrad::var>’
lib/boost_1.55.0/boost/mpl/aux_/nested_type_wknd.hpp:26:31: required from ‘struct boost::mpl::aux::nested_type_wknd<boost::is_convertible<__float128, stan::agrad::var> >’
lib/boost_1.55.0/boost/mpl/aux_/preprocessed/gcc/and.hpp:48:8: required from ‘struct boost::mpl::and_<boost::is_convertible<__float128, stan::agrad::var>, mpl_::bool_<true>, mpl_::bool_<true>, mpl_::bool_<true>, mpl_::bool_<true> >’
lib/boost_1.55.0/boost/mpl/if.hpp:67:11: required from ‘struct boost::mpl::if_<boost::mpl::and_<boost::is_convertible<__float128, stan::agrad::var>, mpl_::bool_<true>, mpl_::bool_<true>, mpl_::bool_<true>, mpl_::bool_<true> >, mpl_::int_<5>, mpl_::int_<4> >’
lib/boost_1.55.0/boost/math/constants/constants.hpp:104:15: [ skipping 3 instantiation contexts, use -ftemplate-backtrace-limit=0 to disable ]
lib/boost_1.55.0/boost/math/special_functions/digamma.hpp:377:58: required from ‘T boost::math::detail::digamma_imp(T, const Tag*, const Policy&) [with T = stan::agrad::var; Tag = mpl_::int_<53>; Policy = boost::math::policies::policy<boost::math::policies::default_policy, boost::math::policies::default_policy, boost::math::policies::default_policy, boost::math::policies::default_policy, boost::math::policies::default_policy, boost::math::policies::default_policy, boost::math::policies::default_policy, boost::math::policies::default_policy, boost::math::policies::default_policy, boost::math::policies::default_policy, boost::math::policies::default_policy>]’
lib/boost_1.55.0/boost/math/special_functions/digamma.hpp:466:43: required from ‘typename boost::math::tools::promote_args<T>::type boost::math::digamma(T, const Policy&) [with T = stan::agrad::var; Policy = boost::math::policies::policy<boost::math::policies::default_policy, boost::math::policies::default_policy, boost::math::policies::default_policy, boost::math::policies::default_policy, boost::math::policies::default_policy, boost::math::policies::default_policy, boost::math::policies::default_policy, boost::math::policies::default_policy, boost::math::policies::default_policy, boost::math::policies::default_policy, boost::math::policies::default_policy>; typename boost::math::tools::promote_args<T>::type = stan::agrad::var]’
lib/boost_1.55.0/boost/math/special_functions/digamma.hpp:473:42: required from ‘typename boost::math::tools::promote_args<T>::type boost::math::digamma(T) [with T = stan::agrad::var; typename boost::math::tools::promote_args<T>::type = stan::agrad::var]’
src/stan/math/fwd/scal/fun/lgamma.hpp:18:59: required from ‘stan::agrad::fvar<T> stan::agrad::lgamma(const stan::agrad::fvar<T>&) [with T = stan::agrad::var]’
src/stan/math/prim/mat/prob/lkj_corr_log.hpp:76:49: required from ‘T_shape stan::prob::do_lkj_constant(const T_shape&, const unsigned int&) [with T_shape = stan::agrad::fvar<stan::agrad::var>]’
src/test/unit/math/mix/mat/prob/lkj_corr_test.cpp:56:51: required from here
lib/boost_1.55.0/boost/type_traits/is_convertible.hpp:146:64: error: conversion from ‘__float128’ to ‘stan::agrad::var’ is ambiguous
sizeof( boost::detail::checker<To>::_m_check(_m_from, 0) )
^
compilation terminated due to -fmax-errors=1.
make/tests:22: recipe for target 'test/unit/math/mix/mat/prob/lkj_corr.o' failed
make: *** [test/unit/math/mix/mat/prob/lkj_corr.o] Error 1