stan-dev / rstan

RStan, the R interface to Stan
https://mc-stan.org
1.04k stars 267 forks source link

Instalation error Lubuntu 17.04 - Error 1 ERROR: compilation failed for package ‘rstan’ #456

Open jorgesinval opened 7 years ago

jorgesinval commented 7 years ago

Summary:

Error instaling rstan package

Description:

The installation process of the package aborts.

Reproducible Steps:

I wrote the following command: install.packages("rstan", repos = "http://cran.rstudio.com")

If you have a reproducible example, please include it.

Current Output:

> install.packages("rstan", repos = "http://cran.rstudio.com")
Installing package into ‘/home/sinval/R/x86_64-pc-linux-gnu-library/3.4’
(as ‘lib’ is unspecified)
trying URL 'http://cran.rstudio.com/src/contrib/rstan_2.16.2.tar.gz'
Content type 'application/x-gzip' length 733666 bytes (716 KB)
==================================================
downloaded 716 KB

* installing *source* package ‘rstan’ ...
** package ‘rstan’ successfully unpacked and MD5 sums checked
** libs
g++  -I/usr/share/R/include -DNDEBUG -I"../inst/include" -I"../inst/include/boost_not_in_BH" -I"`"/usr/lib/R/bin/Rscript" --vanilla -e "cat(system.file('include', 'src', package = 'StanHeaders'))"`" -DBOOST_RESULT_OF_USE_TR1 -DBOOST_NO_DECLTYPE -DBOOST_DISABLE_ASSERTS -DFUSION_MAX_VECTOR_SIZE=12 -I"/home/sinval/R/x86_64-pc-linux-gnu-library/3.4/Rcpp/include" -I"/home/sinval/R/x86_64-pc-linux-gnu-library/3.4/RcppEigen/include" -I"/home/sinval/R/x86_64-pc-linux-gnu-library/3.4/BH/include" -I"/home/sinval/R/x86_64-pc-linux-gnu-library/3.4/StanHeaders/include"    -fpic  -O3 -mtune=native -march=native -Wno-unused-variable -Wno-unused-function -flto -ffat-lto-objects  -Wno-unused-local-typedefs -c chains.cpp -o chains.o
g++  -I/usr/share/R/include -DNDEBUG -I"../inst/include" -I"../inst/include/boost_not_in_BH" -I"`"/usr/lib/R/bin/Rscript" --vanilla -e "cat(system.file('include', 'src', package = 'StanHeaders'))"`" -DBOOST_RESULT_OF_USE_TR1 -DBOOST_NO_DECLTYPE -DBOOST_DISABLE_ASSERTS -DFUSION_MAX_VECTOR_SIZE=12 -I"/home/sinval/R/x86_64-pc-linux-gnu-library/3.4/Rcpp/include" -I"/home/sinval/R/x86_64-pc-linux-gnu-library/3.4/RcppEigen/include" -I"/home/sinval/R/x86_64-pc-linux-gnu-library/3.4/BH/include" -I"/home/sinval/R/x86_64-pc-linux-gnu-library/3.4/StanHeaders/include"    -fpic  -O3 -mtune=native -march=native -Wno-unused-variable -Wno-unused-function -flto -ffat-lto-objects  -Wno-unused-local-typedefs -c init.cpp -o init.o
g++  -I/usr/share/R/include -DNDEBUG -I"../inst/include" -I"../inst/include/boost_not_in_BH" -I"`"/usr/lib/R/bin/Rscript" --vanilla -e "cat(system.file('include', 'src', package = 'StanHeaders'))"`" -DBOOST_RESULT_OF_USE_TR1 -DBOOST_NO_DECLTYPE -DBOOST_DISABLE_ASSERTS -DFUSION_MAX_VECTOR_SIZE=12 -I"/home/sinval/R/x86_64-pc-linux-gnu-library/3.4/Rcpp/include" -I"/home/sinval/R/x86_64-pc-linux-gnu-library/3.4/RcppEigen/include" -I"/home/sinval/R/x86_64-pc-linux-gnu-library/3.4/BH/include" -I"/home/sinval/R/x86_64-pc-linux-gnu-library/3.4/StanHeaders/include"    -fpic  -O3 -mtune=native -march=native -Wno-unused-variable -Wno-unused-function -flto -ffat-lto-objects  -Wno-unused-local-typedefs -c lang__ast_def.cpp -o lang__ast_def.o
g++  -I/usr/share/R/include -DNDEBUG -I"../inst/include" -I"../inst/include/boost_not_in_BH" -I"`"/usr/lib/R/bin/Rscript" --vanilla -e "cat(system.file('include', 'src', package = 'StanHeaders'))"`" -DBOOST_RESULT_OF_USE_TR1 -DBOOST_NO_DECLTYPE -DBOOST_DISABLE_ASSERTS -DFUSION_MAX_VECTOR_SIZE=12 -I"/home/sinval/R/x86_64-pc-linux-gnu-library/3.4/Rcpp/include" -I"/home/sinval/R/x86_64-pc-linux-gnu-library/3.4/RcppEigen/include" -I"/home/sinval/R/x86_64-pc-linux-gnu-library/3.4/BH/include" -I"/home/sinval/R/x86_64-pc-linux-gnu-library/3.4/StanHeaders/include"    -fpic  -O3 -mtune=native -march=native -Wno-unused-variable -Wno-unused-function -flto -ffat-lto-objects  -Wno-unused-local-typedefs -c lang__grammars__bare_type_grammar_inst.cpp -o lang__grammars__bare_type_grammar_inst.o
g++  -I/usr/share/R/include -DNDEBUG -I"../inst/include" -I"../inst/include/boost_not_in_BH" -I"`"/usr/lib/R/bin/Rscript" --vanilla -e "cat(system.file('include', 'src', package = 'StanHeaders'))"`" -DBOOST_RESULT_OF_USE_TR1 -DBOOST_NO_DECLTYPE -DBOOST_DISABLE_ASSERTS -DFUSION_MAX_VECTOR_SIZE=12 -I"/home/sinval/R/x86_64-pc-linux-gnu-library/3.4/Rcpp/include" -I"/home/sinval/R/x86_64-pc-linux-gnu-library/3.4/RcppEigen/include" -I"/home/sinval/R/x86_64-pc-linux-gnu-library/3.4/BH/include" -I"/home/sinval/R/x86_64-pc-linux-gnu-library/3.4/StanHeaders/include"    -fpic  -O3 -mtune=native -march=native -Wno-unused-variable -Wno-unused-function -flto -ffat-lto-objects  -Wno-unused-local-typedefs -c lang__grammars__expression07_grammar_inst.cpp -o lang__grammars__expression07_grammar_inst.o
g++  -I/usr/share/R/include -DNDEBUG -I"../inst/include" -I"../inst/include/boost_not_in_BH" -I"`"/usr/lib/R/bin/Rscript" --vanilla -e "cat(system.file('include', 'src', package = 'StanHeaders'))"`" -DBOOST_RESULT_OF_USE_TR1 -DBOOST_NO_DECLTYPE -DBOOST_DISABLE_ASSERTS -DFUSION_MAX_VECTOR_SIZE=12 -I"/home/sinval/R/x86_64-pc-linux-gnu-library/3.4/Rcpp/include" -I"/home/sinval/R/x86_64-pc-linux-gnu-library/3.4/RcppEigen/include" -I"/home/sinval/R/x86_64-pc-linux-gnu-library/3.4/BH/include" -I"/home/sinval/R/x86_64-pc-linux-gnu-library/3.4/StanHeaders/include"    -fpic  -O3 -mtune=native -march=native -Wno-unused-variable -Wno-unused-function -flto -ffat-lto-objects  -Wno-unused-local-typedefs -c lang__grammars__expression_grammar_inst.cpp -o lang__grammars__expression_grammar_inst.o
In file included from /home/sinval/R/x86_64-pc-linux-gnu-library/3.4/BH/include/boost/phoenix/function/detail/cpp03/preprocessed/function_operator.hpp:12:0,
                 from /home/sinval/R/x86_64-pc-linux-gnu-library/3.4/BH/include/boost/phoenix/function/detail/cpp03/function_operator.hpp:6,
                 from /home/sinval/R/x86_64-pc-linux-gnu-library/3.4/BH/include/boost/phoenix/function/function.hpp:58,
                 from /home/sinval/R/x86_64-pc-linux-gnu-library/3.4/BH/include/boost/phoenix/function.hpp:11,
                 from /home/sinval/R/x86_64-pc-linux-gnu-library/3.4/BH/include/boost/spirit/include/phoenix_function.hpp:11,
                 from /home/sinval/R/x86_64-pc-linux-gnu-library/3.4/BH/include/boost/spirit/home/support/terminal.hpp:18,
                 from /home/sinval/R/x86_64-pc-linux-gnu-library/3.4/BH/include/boost/spirit/home/support/common_terminals.hpp:15,
                 from /home/sinval/R/x86_64-pc-linux-gnu-library/3.4/BH/include/boost/spirit/home/qi/auto/auto.hpp:13,
                 from /home/sinval/R/x86_64-pc-linux-gnu-library/3.4/BH/include/boost/spirit/home/qi/auto.hpp:15,
                 from /home/sinval/R/x86_64-pc-linux-gnu-library/3.4/BH/include/boost/spirit/home/qi.hpp:15,
                 from /home/sinval/R/x86_64-pc-linux-gnu-library/3.4/BH/include/boost/spirit/include/qi.hpp:16,
                 from /home/sinval/R/x86_64-pc-linux-gnu-library/3.4/StanHeaders/include/src/stan/lang/grammars/expression07_grammar.hpp:4,
                 from /home/sinval/R/x86_64-pc-linux-gnu-library/3.4/StanHeaders/include/src/stan/lang/grammars/expression_grammar.hpp:5,
                 from /home/sinval/R/x86_64-pc-linux-gnu-library/3.4/StanHeaders/include/src/stan/lang/grammars/expression_grammar_def.hpp:4,
                 from /home/sinval/R/x86_64-pc-linux-gnu-library/3.4/StanHeaders/include/src/stan/lang/grammars/expression_grammar_inst.cpp:1,
                 from lang__grammars__expression_grammar_inst.cpp:18:
/home/sinval/R/x86_64-pc-linux-gnu-library/3.4/BH/include/boost/phoenix/function/detail/cpp03/preprocessed/function_operator_10.hpp: In instantiation of ‘const typename boost::phoenix::detail::expression::function_eval<F, A0, A1, A2, A3, A4>::type boost::phoenix::function<F>::operator()(const A0&, const A1&, const A2&, const A3&, const A4&) const [with A0 = boost::phoenix::actor<boost::spirit::attribute<0> >; A1 = boost::phoenix::actor<boost::spirit::argument<0> >; A2 = char [3]; A3 = char [11]; A4 = boost::phoenix::actor<boost::proto::exprns_::basic_expr<boost::proto::tagns_::tag::terminal, boost::proto::argsns_::term<boost::reference_wrapper<std::__cxx11::basic_stringstream<char> > >, 0l> >; F = stan::lang::binary_op_expr; typename boost::phoenix::detail::expression::function_eval<F, A0, A1, A2, A3, A4>::type = boost::phoenix::actor<boost::proto::exprns_::basic_expr<boost::phoenix::detail::tag::function_eval, boost::proto::argsns_::list6<boost::proto::exprns_::basic_expr<boost::proto::tagns_::tag::terminal, boost::proto::argsns_::term<stan::lang::binary_op_expr>, 0l>, boost::phoenix::actor<boost::spirit::attribute<0> >, boost::phoenix::actor<boost::spirit::argument<0> >, boost::proto::exprns_::basic_expr<boost::proto::tagns_::tag::terminal, boost::proto::argsns_::term<char*>, 0l>, boost::proto::exprns_::basic_expr<boost::proto::tagns_::tag::terminal, boost::proto::argsns_::term<char*>, 0l>, boost::phoenix::actor<boost::proto::exprns_::basic_expr<boost::proto::tagns_::tag::terminal, boost::proto::argsns_::term<boost::reference_wrapper<std::__cxx11::basic_stringstream<char> > >, 0l> > >, 6l> >]’:
/home/sinval/R/x86_64-pc-linux-gnu-library/3.4/StanHeaders/include/src/stan/lang/grammars/expression_grammar_def.hpp:57:27:   required from ‘stan::lang::expression_grammar<Iterator>::expression_grammar(stan::lang::variable_map&, std::stringstream&) [with Iterator = boost::spirit::line_pos_iterator<__gnu_cxx::__normal_iterator<const char*, std::__cxx11::basic_string<char> > >; std::stringstream = std::__cxx11::basic_stringstream<char>]’
/home/sinval/R/x86_64-pc-linux-gnu-library/3.4/StanHeaders/include/src/stan/lang/grammars/expression_grammar_inst.cpp:6:21:   required from here
/home/sinval/R/x86_64-pc-linux-gnu-library/3.4/BH/include/boost/phoenix/function/detail/cpp03/preprocessed/function_operator_10.hpp:91:86: error: invalid conversion from ‘const char*’ to ‘param_type {aka char*}’ [-fpermissive]
             return detail::expression::function_eval<F, A0 , A1 , A2 , A3 , A4>::make(f, a0 , a1 , a2 , a3 , a4);
                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/sinval/R/x86_64-pc-linux-gnu-library/3.4/BH/include/boost/phoenix/core/argument.hpp:14:0,
                 from /home/sinval/R/x86_64-pc-linux-gnu-library/3.4/BH/include/boost/phoenix/core.hpp:15,
                 from /home/sinval/R/x86_64-pc-linux-gnu-library/3.4/BH/include/boost/spirit/include/phoenix_core.hpp:11,
                 from /home/sinval/R/x86_64-pc-linux-gnu-library/3.4/BH/include/boost/spirit/home/support/make_component.hpp:15,
                 from /home/sinval/R/x86_64-pc-linux-gnu-library/3.4/BH/include/boost/spirit/home/support/meta_compiler.hpp:20,
                 from /home/sinval/R/x86_64-pc-linux-gnu-library/3.4/BH/include/boost/spirit/home/qi/meta_compiler.hpp:14,
                 from /home/sinval/R/x86_64-pc-linux-gnu-library/3.4/BH/include/boost/spirit/home/qi/action/action.hpp:14,
                 from /home/sinval/R/x86_64-pc-linux-gnu-library/3.4/BH/include/boost/spirit/home/qi/action.hpp:14,
                 from /home/sinval/R/x86_64-pc-linux-gnu-library/3.4/BH/include/boost/spirit/home/qi.hpp:14,
                 from /home/sinval/R/x86_64-pc-linux-gnu-library/3.4/BH/include/boost/spirit/include/qi.hpp:16,
                 from /home/sinval/R/x86_64-pc-linux-gnu-library/3.4/StanHeaders/include/src/stan/lang/grammars/expression07_grammar.hpp:4,
                 from /home/sinval/R/x86_64-pc-linux-gnu-library/3.4/StanHeaders/include/src/stan/lang/grammars/expression_grammar.hpp:5,
                 from /home/sinval/R/x86_64-pc-linux-gnu-library/3.4/StanHeaders/include/src/stan/lang/grammars/expression_grammar_def.hpp:4,
                 from /home/sinval/R/x86_64-pc-linux-gnu-library/3.4/StanHeaders/include/src/stan/lang/grammars/expression_grammar_inst.cpp:1,
                 from lang__grammars__expression_grammar_inst.cpp:18:
/home/sinval/R/x86_64-pc-linux-gnu-library/3.4/BH/include/boost/phoenix/core/expression.hpp:63:21: note:   initializing argument 4 of ‘static boost::phoenix::expr_ext<Actor, Tag, A>::type boost::phoenix::expr_ext<Actor, Tag, A>::make(typename boost::call_traits<A>::param_type ...) [with Actor = boost::phoenix::actor; Tag = boost::phoenix::detail::tag::function_eval; A = {stan::lang::binary_op_expr, boost::phoenix::actor<boost::spirit::attribute<0> >, boost::phoenix::actor<boost::spirit::argument<0> >, char*, char*, boost::phoenix::actor<boost::proto::exprns_::basic_expr<boost::proto::tagns_::tag::terminal, boost::proto::argsns_::term<boost::reference_wrapper<std::__cxx11::basic_stringstream<char, std::char_traits<char>, std::allocator<char> > > >, 0l> >}; boost::phoenix::expr_ext<Actor, Tag, A>::type = boost::phoenix::actor<boost::proto::exprns_::basic_expr<boost::phoenix::detail::tag::function_eval, boost::proto::argsns_::list6<boost::proto::exprns_::basic_expr<boost::proto::tagns_::tag::terminal, boost::proto::argsns_::term<stan::lang::binary_op_expr>, 0l>, boost::phoenix::actor<boost::spirit::attribute<0> >, boost::phoenix::actor<boost::spirit::argument<0> >, boost::proto::exprns_::basic_expr<boost::proto::tagns_::tag::terminal, boost::proto::argsns_::term<char*>, 0l>, boost::proto::exprns_::basic_expr<boost::proto::tagns_::tag::terminal, boost::proto::argsns_::term<char*>, 0l>, boost::phoenix::actor<boost::proto::exprns_::basic_expr<boost::proto::tagns_::tag::terminal, boost::proto::argsns_::term<boost::reference_wrapper<std::__cxx11::basic_stringstream<char> > >, 0l> > >, 6l> >]’
         static type make(typename call_traits<A>::param_type... a)
                     ^~~~
In file included from /home/sinval/R/x86_64-pc-linux-gnu-library/3.4/BH/include/boost/phoenix/function/detail/cpp03/preprocessed/function_operator.hpp:12:0,
                 from /home/sinval/R/x86_64-pc-linux-gnu-library/3.4/BH/include/boost/phoenix/function/detail/cpp03/function_operator.hpp:6,
                 from /home/sinval/R/x86_64-pc-linux-gnu-library/3.4/BH/include/boost/phoenix/function/function.hpp:58,
                 from /home/sinval/R/x86_64-pc-linux-gnu-library/3.4/BH/include/boost/phoenix/function.hpp:11,
                 from /home/sinval/R/x86_64-pc-linux-gnu-library/3.4/BH/include/boost/spirit/include/phoenix_function.hpp:11,
                 from /home/sinval/R/x86_64-pc-linux-gnu-library/3.4/BH/include/boost/spirit/home/support/terminal.hpp:18,
                 from /home/sinval/R/x86_64-pc-linux-gnu-library/3.4/BH/include/boost/spirit/home/support/common_terminals.hpp:15,
                 from /home/sinval/R/x86_64-pc-linux-gnu-library/3.4/BH/include/boost/spirit/home/qi/auto/auto.hpp:13,
                 from /home/sinval/R/x86_64-pc-linux-gnu-library/3.4/BH/include/boost/spirit/home/qi/auto.hpp:15,
                 from /home/sinval/R/x86_64-pc-linux-gnu-library/3.4/BH/include/boost/spirit/home/qi.hpp:15,
                 from /home/sinval/R/x86_64-pc-linux-gnu-library/3.4/BH/include/boost/spirit/include/qi.hpp:16,
                 from /home/sinval/R/x86_64-pc-linux-gnu-library/3.4/StanHeaders/include/src/stan/lang/grammars/expression07_grammar.hpp:4,
                 from /home/sinval/R/x86_64-pc-linux-gnu-library/3.4/StanHeaders/include/src/stan/lang/grammars/expression_grammar.hpp:5,
                 from /home/sinval/R/x86_64-pc-linux-gnu-library/3.4/StanHeaders/include/src/stan/lang/grammars/expression_grammar_def.hpp:4,
                 from /home/sinval/R/x86_64-pc-linux-gnu-library/3.4/StanHeaders/include/src/stan/lang/grammars/expression_grammar_inst.cpp:1,
                 from lang__grammars__expression_grammar_inst.cpp:18:
/home/sinval/R/x86_64-pc-linux-gnu-library/3.4/BH/include/boost/phoenix/function/detail/cpp03/preprocessed/function_operator_10.hpp:91:86: error: invalid conversion from ‘const char*’ to ‘param_type {aka char*}’ [-fpermissive]
             return detail::expression::function_eval<F, A0 , A1 , A2 , A3 , A4>::make(f, a0 , a1 , a2 , a3 , a4);
                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/sinval/R/x86_64-pc-linux-gnu-library/3.4/BH/include/boost/phoenix/core/argument.hpp:14:0,
                 from /home/sinval/R/x86_64-pc-linux-gnu-library/3.4/BH/include/boost/phoenix/core.hpp:15,
                 from /home/sinval/R/x86_64-pc-linux-gnu-library/3.4/BH/include/boost/spirit/include/phoenix_core.hpp:11,
                 from /home/sinval/R/x86_64-pc-linux-gnu-library/3.4/BH/include/boost/spirit/home/support/make_component.hpp:15,
                 from /home/sinval/R/x86_64-pc-linux-gnu-library/3.4/BH/include/boost/spirit/home/support/meta_compiler.hpp:20,
                 from /home/sinval/R/x86_64-pc-linux-gnu-library/3.4/BH/include/boost/spirit/home/qi/meta_compiler.hpp:14,
                 from /home/sinval/R/x86_64-pc-linux-gnu-library/3.4/BH/include/boost/spirit/home/qi/action/action.hpp:14,
                 from /home/sinval/R/x86_64-pc-linux-gnu-library/3.4/BH/include/boost/spirit/home/qi/action.hpp:14,
                 from /home/sinval/R/x86_64-pc-linux-gnu-library/3.4/BH/include/boost/spirit/home/qi.hpp:14,
                 from /home/sinval/R/x86_64-pc-linux-gnu-library/3.4/BH/include/boost/spirit/include/qi.hpp:16,
                 from /home/sinval/R/x86_64-pc-linux-gnu-library/3.4/StanHeaders/include/src/stan/lang/grammars/expression07_grammar.hpp:4,
                 from /home/sinval/R/x86_64-pc-linux-gnu-library/3.4/StanHeaders/include/src/stan/lang/grammars/expression_grammar.hpp:5,
                 from /home/sinval/R/x86_64-pc-linux-gnu-library/3.4/StanHeaders/include/src/stan/lang/grammars/expression_grammar_def.hpp:4,
                 from /home/sinval/R/x86_64-pc-linux-gnu-library/3.4/StanHeaders/include/src/stan/lang/grammars/expression_grammar_inst.cpp:1,
                 from lang__grammars__expression_grammar_inst.cpp:18:
/home/sinval/R/x86_64-pc-linux-gnu-library/3.4/BH/include/boost/phoenix/core/expression.hpp:63:21: note:   initializing argument 5 of ‘static boost::phoenix::expr_ext<Actor, Tag, A>::type boost::phoenix::expr_ext<Actor, Tag, A>::make(typename boost::call_traits<A>::param_type ...) [with Actor = boost::phoenix::actor; Tag = boost::phoenix::detail::tag::function_eval; A = {stan::lang::binary_op_expr, boost::phoenix::actor<boost::spirit::attribute<0> >, boost::phoenix::actor<boost::spirit::argument<0> >, char*, char*, boost::phoenix::actor<boost::proto::exprns_::basic_expr<boost::proto::tagns_::tag::terminal, boost::proto::argsns_::term<boost::reference_wrapper<std::__cxx11::basic_stringstream<char, std::char_traits<char>, std::allocator<char> > > >, 0l> >}; boost::phoenix::expr_ext<Actor, Tag, A>::type = boost::phoenix::actor<boost::proto::exprns_::basic_expr<boost::phoenix::detail::tag::function_eval, boost::proto::argsns_::list6<boost::proto::exprns_::basic_expr<boost::proto::tagns_::tag::terminal, boost::proto::argsns_::term<stan::lang::binary_op_expr>, 0l>, boost::phoenix::actor<boost::spirit::attribute<0> >, boost::phoenix::actor<boost::spirit::argument<0> >, boost::proto::exprns_::basic_expr<boost::proto::tagns_::tag::terminal, boost::proto::argsns_::term<char*>, 0l>, boost::proto::exprns_::basic_expr<boost::proto::tagns_::tag::terminal, boost::proto::argsns_::term<char*>, 0l>, boost::phoenix::actor<boost::proto::exprns_::basic_expr<boost::proto::tagns_::tag::terminal, boost::proto::argsns_::term<boost::reference_wrapper<std::__cxx11::basic_stringstream<char> > >, 0l> > >, 6l> >]’
         static type make(typename call_traits<A>::param_type... a)
                     ^~~~
In file included from /home/sinval/R/x86_64-pc-linux-gnu-library/3.4/BH/include/boost/phoenix/function/detail/cpp03/preprocessed/function_operator.hpp:12:0,
                 from /home/sinval/R/x86_64-pc-linux-gnu-library/3.4/BH/include/boost/phoenix/function/detail/cpp03/function_operator.hpp:6,
                 from /home/sinval/R/x86_64-pc-linux-gnu-library/3.4/BH/include/boost/phoenix/function/function.hpp:58,
                 from /home/sinval/R/x86_64-pc-linux-gnu-library/3.4/BH/include/boost/phoenix/function.hpp:11,
                 from /home/sinval/R/x86_64-pc-linux-gnu-library/3.4/BH/include/boost/spirit/include/phoenix_function.hpp:11,
                 from /home/sinval/R/x86_64-pc-linux-gnu-library/3.4/BH/include/boost/spirit/home/support/terminal.hpp:18,
                 from /home/sinval/R/x86_64-pc-linux-gnu-library/3.4/BH/include/boost/spirit/home/support/common_terminals.hpp:15,
                 from /home/sinval/R/x86_64-pc-linux-gnu-library/3.4/BH/include/boost/spirit/home/qi/auto/auto.hpp:13,
                 from /home/sinval/R/x86_64-pc-linux-gnu-library/3.4/BH/include/boost/spirit/home/qi/auto.hpp:15,
                 from /home/sinval/R/x86_64-pc-linux-gnu-library/3.4/BH/include/boost/spirit/home/qi.hpp:15,
                 from /home/sinval/R/x86_64-pc-linux-gnu-library/3.4/BH/include/boost/spirit/include/qi.hpp:16,
                 from /home/sinval/R/x86_64-pc-linux-gnu-library/3.4/StanHeaders/include/src/stan/lang/grammars/expression07_grammar.hpp:4,
                 from /home/sinval/R/x86_64-pc-linux-gnu-library/3.4/StanHeaders/include/src/stan/lang/grammars/expression_grammar.hpp:5,
                 from /home/sinval/R/x86_64-pc-linux-gnu-library/3.4/StanHeaders/include/src/stan/lang/grammars/expression_grammar_def.hpp:4,
                 from /home/sinval/R/x86_64-pc-linux-gnu-library/3.4/StanHeaders/include/src/stan/lang/grammars/expression_grammar_inst.cpp:1,
                 from lang__grammars__expression_grammar_inst.cpp:18:
/home/sinval/R/x86_64-pc-linux-gnu-library/3.4/BH/include/boost/phoenix/function/detail/cpp03/preprocessed/function_operator_10.hpp: In instantiation of ‘const typename boost::phoenix::detail::expression::function_eval<F, A0, A1, A2, A3, A4>::type boost::phoenix::function<F>::operator()(const A0&, const A1&, const A2&, const A3&, const A4&) const [with A0 = boost::phoenix::actor<boost::spirit::attribute<0> >; A1 = boost::phoenix::actor<boost::spirit::argument<0> >; A2 = char [3]; A3 = char [12]; A4 = boost::phoenix::actor<boost::proto::exprns_::basic_expr<boost::proto::tagns_::tag::terminal, boost::proto::argsns_::term<boost::reference_wrapper<std::__cxx11::basic_stringstream<char> > >, 0l> >; F = stan::lang::binary_op_expr; typename boost::phoenix::detail::expression::function_eval<F, A0, A1, A2, A3, A4>::type = boost::phoenix::actor<boost::proto::exprns_::basic_expr<boost::phoenix::detail::tag::function_eval, boost::proto::argsns_::list6<boost::proto::exprns_::basic_expr<boost::proto::tagns_::tag::terminal, boost::proto::argsns_::term<stan::lang::binary_op_expr>, 0l>, boost::phoenix::actor<boost::spirit::attribute<0> >, boost::phoenix::actor<boost::spirit::argument<0> >, boost::proto::exprns_::basic_expr<boost::proto::tagns_::tag::terminal, boost::proto::argsns_::term<char*>, 0l>, boost::proto::exprns_::basic_expr<boost::proto::tagns_::tag::terminal, boost::proto::argsns_::term<char*>, 0l>, boost::phoenix::actor<boost::proto::exprns_::basic_expr<boost::proto::tagns_::tag::terminal, boost::proto::argsns_::term<boost::reference_wrapper<std::__cxx11::basic_stringstream<char> > >, 0l> > >, 6l> >]’:
/home/sinval/R/x86_64-pc-linux-gnu-library/3.4/StanHeaders/include/src/stan/lang/grammars/expression_grammar_def.hpp:65:27:   required from ‘stan::lang::expression_grammar<Iterator>::expression_grammar(stan::lang::variable_map&, std::stringstream&) [with Iterator = boost::spirit::line_pos_iterator<__gnu_cxx::__normal_iterator<const char*, std::__cxx11::basic_string<char> > >; std::stringstream = std::__cxx11::basic_stringstream<char>]’
/home/sinval/R/x86_64-pc-linux-gnu-library/3.4/StanHeaders/include/src/stan/lang/grammars/expression_grammar_inst.cpp:6:21:   required from here
/home/sinval/R/x86_64-pc-linux-gnu-library/3.4/BH/include/boost/phoenix/function/detail/cpp03/preprocessed/function_operator_10.hpp:91:86: error: invalid conversion from ‘const char*’ to ‘param_type {aka char*}’ [-fpermissive]
             return detail::expression::function_eval<F, A0 , A1 , A2 , A3 , A4>::make(f, a0 , a1 , a2 , a3 , a4);
                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/sinval/R/x86_64-pc-linux-gnu-library/3.4/BH/include/boost/phoenix/core/argument.hpp:14:0,
                 from /home/sinval/R/x86_64-pc-linux-gnu-library/3.4/BH/include/boost/phoenix/core.hpp:15,
                 from /home/sinval/R/x86_64-pc-linux-gnu-library/3.4/BH/include/boost/spirit/include/phoenix_core.hpp:11,
                 from /home/sinval/R/x86_64-pc-linux-gnu-library/3.4/BH/include/boost/spirit/home/support/make_component.hpp:15,
                 from /home/sinval/R/x86_64-pc-linux-gnu-library/3.4/BH/include/boost/spirit/home/support/meta_compiler.hpp:20,
                 from /home/sinval/R/x86_64-pc-linux-gnu-library/3.4/BH/include/boost/spirit/home/qi/meta_compiler.hpp:14,
                 from /home/sinval/R/x86_64-pc-linux-gnu-library/3.4/BH/include/boost/spirit/home/qi/action/action.hpp:14,
                 from /home/sinval/R/x86_64-pc-linux-gnu-library/3.4/BH/include/boost/spirit/home/qi/action.hpp:14,
                 from /home/sinval/R/x86_64-pc-linux-gnu-library/3.4/BH/include/boost/spirit/home/qi.hpp:14,
                 from /home/sinval/R/x86_64-pc-linux-gnu-library/3.4/BH/include/boost/spirit/include/qi.hpp:16,
                 from /home/sinval/R/x86_64-pc-linux-gnu-library/3.4/StanHeaders/include/src/stan/lang/grammars/expression07_grammar.hpp:4,
                 from /home/sinval/R/x86_64-pc-linux-gnu-library/3.4/StanHeaders/include/src/stan/lang/grammars/expression_grammar.hpp:5,
                 from /home/sinval/R/x86_64-pc-linux-gnu-library/3.4/StanHeaders/include/src/stan/lang/grammars/expression_grammar_def.hpp:4,
                 from /home/sinval/R/x86_64-pc-linux-gnu-library/3.4/StanHeaders/include/src/stan/lang/grammars/expression_grammar_inst.cpp:1,
                 from lang__grammars__expression_grammar_inst.cpp:18:
/home/sinval/R/x86_64-pc-linux-gnu-library/3.4/BH/include/boost/phoenix/core/expression.hpp:63:21: note:   initializing argument 4 of ‘static boost::phoenix::expr_ext<Actor, Tag, A>::type boost::phoenix::expr_ext<Actor, Tag, A>::make(typename boost::call_traits<A>::param_type ...) [with Actor = boost::phoenix::actor; Tag = boost::phoenix::detail::tag::function_eval; A = {stan::lang::binary_op_expr, boost::phoenix::actor<boost::spirit::attribute<0> >, boost::phoenix::actor<boost::spirit::argument<0> >, char*, char*, boost::phoenix::actor<boost::proto::exprns_::basic_expr<boost::proto::tagns_::tag::terminal, boost::proto::argsns_::term<boost::reference_wrapper<std::__cxx11::basic_stringstream<char, std::char_traits<char>, std::allocator<char> > > >, 0l> >}; boost::phoenix::expr_ext<Actor, Tag, A>::type = boost::phoenix::actor<boost::proto::exprns_::basic_expr<boost::phoenix::detail::tag::function_eval, boost::proto::argsns_::list6<boost::proto::exprns_::basic_expr<boost::proto::tagns_::tag::terminal, boost::proto::argsns_::term<stan::lang::binary_op_expr>, 0l>, boost::phoenix::actor<boost::spirit::attribute<0> >, boost::phoenix::actor<boost::spirit::argument<0> >, boost::proto::exprns_::basic_expr<boost::proto::tagns_::tag::terminal, boost::proto::argsns_::term<char*>, 0l>, boost::proto::exprns_::basic_expr<boost::proto::tagns_::tag::terminal, boost::proto::argsns_::term<char*>, 0l>, boost::phoenix::actor<boost::proto::exprns_::basic_expr<boost::proto::tagns_::tag::terminal, boost::proto::argsns_::term<boost::reference_wrapper<std::__cxx11::basic_stringstream<char> > >, 0l> > >, 6l> >]’
         static type make(typename call_traits<A>::param_type... a)
                     ^~~~
In file included from /home/sinval/R/x86_64-pc-linux-gnu-library/3.4/BH/include/boost/phoenix/function/detail/cpp03/preprocessed/function_operator.hpp:12:0,
                 from /home/sinval/R/x86_64-pc-linux-gnu-library/3.4/BH/include/boost/phoenix/function/detail/cpp03/function_operator.hpp:6,
                 from /home/sinval/R/x86_64-pc-linux-gnu-library/3.4/BH/include/boost/phoenix/function/function.hpp:58,
                 from /home/sinval/R/x86_64-pc-linux-gnu-library/3.4/BH/include/boost/phoenix/function.hpp:11,
                 from /home/sinval/R/x86_64-pc-linux-gnu-library/3.4/BH/include/boost/spirit/include/phoenix_function.hpp:11,
                 from /home/sinval/R/x86_64-pc-linux-gnu-library/3.4/BH/include/boost/spirit/home/support/terminal.hpp:18,
                 from /home/sinval/R/x86_64-pc-linux-gnu-library/3.4/BH/include/boost/spirit/home/support/common_terminals.hpp:15,
                 from /home/sinval/R/x86_64-pc-linux-gnu-library/3.4/BH/include/boost/spirit/home/qi/auto/auto.hpp:13,
                 from /home/sinval/R/x86_64-pc-linux-gnu-library/3.4/BH/include/boost/spirit/home/qi/auto.hpp:15,
                 from /home/sinval/R/x86_64-pc-linux-gnu-library/3.4/BH/include/boost/spirit/home/qi.hpp:15,
                 from /home/sinval/R/x86_64-pc-linux-gnu-library/3.4/BH/include/boost/spirit/include/qi.hpp:16,
                 from /home/sinval/R/x86_64-pc-linux-gnu-library/3.4/StanHeaders/include/src/stan/lang/grammars/expression07_grammar.hpp:4,
                 from /home/sinval/R/x86_64-pc-linux-gnu-library/3.4/StanHeaders/include/src/stan/lang/grammars/expression_grammar.hpp:5,
                 from /home/sinval/R/x86_64-pc-linux-gnu-library/3.4/StanHeaders/include/src/stan/lang/grammars/expression_grammar_def.hpp:4,
                 from /home/sinval/R/x86_64-pc-linux-gnu-library/3.4/StanHeaders/include/src/stan/lang/grammars/expression_grammar_inst.cpp:1,
                 from lang__grammars__expression_grammar_inst.cpp:18:
/home/sinval/R/x86_64-pc-linux-gnu-library/3.4/BH/include/boost/phoenix/function/detail/cpp03/preprocessed/function_operator_10.hpp:91:86: error: invalid conversion from ‘const char*’ to ‘param_type {aka char*}’ [-fpermissive]
             return detail::expression::function_eval<F, A0 , A1 , A2 , A3 , A4>::make(f, a0 , a1 , a2 , a3 , a4);
                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/sinval/R/x86_64-pc-linux-gnu-library/3.4/BH/include/boost/phoenix/core/argument.hpp:14:0,
                 from /home/sinval/R/x86_64-pc-linux-gnu-library/3.4/BH/include/boost/phoenix/core.hpp:15,
                 from /home/sinval/R/x86_64-pc-linux-gnu-library/3.4/BH/include/boost/spirit/include/phoenix_core.hpp:11,
                 from /home/sinval/R/x86_64-pc-linux-gnu-library/3.4/BH/include/boost/spirit/home/support/make_component.hpp:15,
                 from /home/sinval/R/x86_64-pc-linux-gnu-library/3.4/BH/include/boost/spirit/home/support/meta_compiler.hpp:20,
                 from /home/sinval/R/x86_64-pc-linux-gnu-library/3.4/BH/include/boost/spirit/home/qi/meta_compiler.hpp:14,
                 from /home/sinval/R/x86_64-pc-linux-gnu-library/3.4/BH/include/boost/spirit/home/qi/action/action.hpp:14,
                 from /home/sinval/R/x86_64-pc-linux-gnu-library/3.4/BH/include/boost/spirit/home/qi/action.hpp:14,
                 from /home/sinval/R/x86_64-pc-linux-gnu-library/3.4/BH/include/boost/spirit/home/qi.hpp:14,
                 from /home/sinval/R/x86_64-pc-linux-gnu-library/3.4/BH/include/boost/spirit/include/qi.hpp:16,
                 from /home/sinval/R/x86_64-pc-linux-gnu-library/3.4/StanHeaders/include/src/stan/lang/grammars/expression07_grammar.hpp:4,
                 from /home/sinval/R/x86_64-pc-linux-gnu-library/3.4/StanHeaders/include/src/stan/lang/grammars/expression_grammar.hpp:5,
                 from /home/sinval/R/x86_64-pc-linux-gnu-library/3.4/StanHeaders/include/src/stan/lang/grammars/expression_grammar_def.hpp:4,
                 from /home/sinval/R/x86_64-pc-linux-gnu-library/3.4/StanHeaders/include/src/stan/lang/grammars/expression_grammar_inst.cpp:1,
                 from lang__grammars__expression_grammar_inst.cpp:18:
/home/sinval/R/x86_64-pc-linux-gnu-library/3.4/BH/include/boost/phoenix/core/expression.hpp:63:21: note:   initializing argument 5 of ‘static boost::phoenix::expr_ext<Actor, Tag, A>::type boost::phoenix::expr_ext<Actor, Tag, A>::make(typename boost::call_traits<A>::param_type ...) [with Actor = boost::phoenix::actor; Tag = boost::phoenix::detail::tag::function_eval; A = {stan::lang::binary_op_expr, boost::phoenix::actor<boost::spirit::attribute<0> >, boost::phoenix::actor<boost::spirit::argument<0> >, char*, char*, boost::phoenix::actor<boost::proto::exprns_::basic_expr<boost::proto::tagns_::tag::terminal, boost::proto::argsns_::term<boost::reference_wrapper<std::__cxx11::basic_stringstream<char, std::char_traits<char>, std::allocator<char> > > >, 0l> >}; boost::phoenix::expr_ext<Actor, Tag, A>::type = boost::phoenix::actor<boost::proto::exprns_::basic_expr<boost::phoenix::detail::tag::function_eval, boost::proto::argsns_::list6<boost::proto::exprns_::basic_expr<boost::proto::tagns_::tag::terminal, boost::proto::argsns_::term<stan::lang::binary_op_expr>, 0l>, boost::phoenix::actor<boost::spirit::attribute<0> >, boost::phoenix::actor<boost::spirit::argument<0> >, boost::proto::exprns_::basic_expr<boost::proto::tagns_::tag::terminal, boost::proto::argsns_::term<char*>, 0l>, boost::proto::exprns_::basic_expr<boost::proto::tagns_::tag::terminal, boost::proto::argsns_::term<char*>, 0l>, boost::phoenix::actor<boost::proto::exprns_::basic_expr<boost::proto::tagns_::tag::terminal, boost::proto::argsns_::term<boost::reference_wrapper<std::__cxx11::basic_stringstream<char> > >, 0l> > >, 6l> >]’
         static type make(typename call_traits<A>::param_type... a)
                     ^~~~
In file included from /home/sinval/R/x86_64-pc-linux-gnu-library/3.4/BH/include/boost/phoenix/function/detail/cpp03/preprocessed/function_operator.hpp:12:0,
                 from /home/sinval/R/x86_64-pc-linux-gnu-library/3.4/BH/include/boost/phoenix/function/detail/cpp03/function_operator.hpp:6,
                 from /home/sinval/R/x86_64-pc-linux-gnu-library/3.4/BH/include/boost/phoenix/function/function.hpp:58,
                 from /home/sinval/R/x86_64-pc-linux-gnu-library/3.4/BH/include/boost/phoenix/function.hpp:11,
                 from /home/sinval/R/x86_64-pc-linux-gnu-library/3.4/BH/include/boost/spirit/include/phoenix_function.hpp:11,
                 from /home/sinval/R/x86_64-pc-linux-gnu-library/3.4/BH/include/boost/spirit/home/support/terminal.hpp:18,
                 from /home/sinval/R/x86_64-pc-linux-gnu-library/3.4/BH/include/boost/spirit/home/support/common_terminals.hpp:15,
                 from /home/sinval/R/x86_64-pc-linux-gnu-library/3.4/BH/include/boost/spirit/home/qi/auto/auto.hpp:13,
                 from /home/sinval/R/x86_64-pc-linux-gnu-library/3.4/BH/include/boost/spirit/home/qi/auto.hpp:15,
                 from /home/sinval/R/x86_64-pc-linux-gnu-library/3.4/BH/include/boost/spirit/home/qi.hpp:15,
                 from /home/sinval/R/x86_64-pc-linux-gnu-library/3.4/BH/include/boost/spirit/include/qi.hpp:16,
                 from /home/sinval/R/x86_64-pc-linux-gnu-library/3.4/StanHeaders/include/src/stan/lang/grammars/expression07_grammar.hpp:4,
                 from /home/sinval/R/x86_64-pc-linux-gnu-library/3.4/StanHeaders/include/src/stan/lang/grammars/expression_grammar.hpp:5,
                 from /home/sinval/R/x86_64-pc-linux-gnu-library/3.4/StanHeaders/include/src/stan/lang/grammars/expression_grammar_def.hpp:4,
                 from /home/sinval/R/x86_64-pc-linux-gnu-library/3.4/StanHeaders/include/src/stan/lang/grammars/expression_grammar_inst.cpp:1,
                 from lang__grammars__expression_grammar_inst.cpp:18:
/home/sinval/R/x86_64-pc-linux-gnu-library/3.4/BH/include/boost/phoenix/function/detail/cpp03/preprocessed/function_operator_10.hpp: In instantiation of ‘const typename boost::phoenix::detail::expression::function_eval<F, A0, A1, A2, A3, A4>::type boost::phoenix::function<F>::operator()(const A0&, const A1&, const A2&, const A3&, const A4&) const [with A0 = boost::phoenix::actor<boost::spirit::attribute<0> >; A1 = boost::phoenix::actor<boost::spirit::argument<0> >; A2 = char [2]; A3 = char [12]; A4 = boost::phoenix::actor<boost::proto::exprns_::basic_expr<boost::proto::tagns_::tag::terminal, boost::proto::argsns_::term<boost::reference_wrapper<std::__cxx11::basic_stringstream<char> > >, 0l> >; F = stan::lang::binary_op_expr; typename boost::phoenix::detail::expression::function_eval<F, A0, A1, A2, A3, A4>::type = boost::phoenix::actor<boost::proto::exprns_::basic_expr<boost::phoenix::detail::tag::function_eval, boost::proto::argsns_::list6<boost::proto::exprns_::basic_expr<boost::proto::tagns_::tag::terminal, boost::proto::argsns_::term<stan::lang::binary_op_expr>, 0l>, boost::phoenix::actor<boost::spirit::attribute<0> >, boost::phoenix::actor<boost::spirit::argument<0> >, boost::proto::exprns_::basic_expr<boost::proto::tagns_::tag::terminal, boost::proto::argsns_::term<char*>, 0l>, boost::proto::exprns_::basic_expr<boost::proto::tagns_::tag::terminal, boost::proto::argsns_::term<char*>, 0l>, boost::phoenix::actor<boost::proto::exprns_::basic_expr<boost::proto::tagns_::tag::terminal, boost::proto::argsns_::term<boost::reference_wrapper<std::__cxx11::basic_stringstream<char> > >, 0l> > >, 6l> >]’:
/home/sinval/R/x86_64-pc-linux-gnu-library/3.4/StanHeaders/include/src/stan/lang/grammars/expression_grammar_def.hpp:86:28:   required from ‘stan::lang::expression_grammar<Iterator>::expression_grammar(stan::lang::variable_map&, std::stringstream&) [with Iterator = boost::spirit::line_pos_iterator<__gnu_cxx::__normal_iterator<const char*, std::__cxx11::basic_string<char> > >; std::stringstream = std::__cxx11::basic_stringstream<char>]’
/home/sinval/R/x86_64-pc-linux-gnu-library/3.4/StanHeaders/include/src/stan/lang/grammars/expression_grammar_inst.cpp:6:21:   required from here
/home/sinval/R/x86_64-pc-linux-gnu-library/3.4/BH/include/boost/phoenix/function/detail/cpp03/preprocessed/function_operator_10.hpp:91:86: error: invalid conversion from ‘const char*’ to ‘param_type {aka char*}’ [-fpermissive]
             return detail::expression::function_eval<F, A0 , A1 , A2 , A3 , A4>::make(f, a0 , a1 , a2 , a3 , a4);
                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/sinval/R/x86_64-pc-linux-gnu-library/3.4/BH/include/boost/phoenix/core/argument.hpp:14:0,
                 from /home/sinval/R/x86_64-pc-linux-gnu-library/3.4/BH/include/boost/phoenix/core.hpp:15,
                 from /home/sinval/R/x86_64-pc-linux-gnu-library/3.4/BH/include/boost/spirit/include/phoenix_core.hpp:11,
                 from /home/sinval/R/x86_64-pc-linux-gnu-library/3.4/BH/include/boost/spirit/home/support/make_component.hpp:15,
                 from /home/sinval/R/x86_64-pc-linux-gnu-library/3.4/BH/include/boost/spirit/home/support/meta_compiler.hpp:20,
                 from /home/sinval/R/x86_64-pc-linux-gnu-library/3.4/BH/include/boost/spirit/home/qi/meta_compiler.hpp:14,
                 from /home/sinval/R/x86_64-pc-linux-gnu-library/3.4/BH/include/boost/spirit/home/qi/action/action.hpp:14,
                 from /home/sinval/R/x86_64-pc-linux-gnu-library/3.4/BH/include/boost/spirit/home/qi/action.hpp:14,
                 from /home/sinval/R/x86_64-pc-linux-gnu-library/3.4/BH/include/boost/spirit/home/qi.hpp:14,
                 from /home/sinval/R/x86_64-pc-linux-gnu-library/3.4/BH/include/boost/spirit/include/qi.hpp:16,
                 from /home/sinval/R/x86_64-pc-linux-gnu-library/3.4/StanHeaders/include/src/stan/lang/grammars/expression07_grammar.hpp:4,
                 from /home/sinval/R/x86_64-pc-linux-gnu-library/3.4/StanHeaders/include/src/stan/lang/grammars/expression_grammar.hpp:5,
                 from /home/sinval/R/x86_64-pc-linux-gnu-library/3.4/StanHeaders/include/src/stan/lang/grammars/expression_grammar_def.hpp:4,
                 from /home/sinval/R/x86_64-pc-linux-gnu-library/3.4/StanHeaders/include/src/stan/lang/grammars/expression_grammar_inst.cpp:1,
                 from lang__grammars__expression_grammar_inst.cpp:18:
/home/sinval/R/x86_64-pc-linux-gnu-library/3.4/BH/include/boost/phoenix/core/expression.hpp:63:21: note:   initializing argument 4 of ‘static boost::phoenix::expr_ext<Actor, Tag, A>::type boost::phoenix::expr_ext<Actor, Tag, A>::make(typename boost::call_traits<A>::param_type ...) [with Actor = boost::phoenix::actor; Tag = boost::phoenix::detail::tag::function_eval; A = {stan::lang::binary_op_expr, boost::phoenix::actor<boost::spirit::attribute<0> >, boost::phoenix::actor<boost::spirit::argument<0> >, char*, char*, boost::phoenix::actor<boost::proto::exprns_::basic_expr<boost::proto::tagns_::tag::terminal, boost::proto::argsns_::term<boost::reference_wrapper<std::__cxx11::basic_stringstream<char, std::char_traits<char>, std::allocator<char> > > >, 0l> >}; boost::phoenix::expr_ext<Actor, Tag, A>::type = boost::phoenix::actor<boost::proto::exprns_::basic_expr<boost::phoenix::detail::tag::function_eval, boost::proto::argsns_::list6<boost::proto::exprns_::basic_expr<boost::proto::tagns_::tag::terminal, boost::proto::argsns_::term<stan::lang::binary_op_expr>, 0l>, boost::phoenix::actor<boost::spirit::attribute<0> >, boost::phoenix::actor<boost::spirit::argument<0> >, boost::proto::exprns_::basic_expr<boost::proto::tagns_::tag::terminal, boost::proto::argsns_::term<char*>, 0l>, boost::proto::exprns_::basic_expr<boost::proto::tagns_::tag::terminal, boost::proto::argsns_::term<char*>, 0l>, boost::phoenix::actor<boost::proto::exprns_::basic_expr<boost::proto::tagns_::tag::terminal, boost::proto::argsns_::term<boost::reference_wrapper<std::__cxx11::basic_stringstream<char> > >, 0l> > >, 6l> >]’
         static type make(typename call_traits<A>::param_type... a)
                     ^~~~
In file included from /home/sinval/R/x86_64-pc-linux-gnu-library/3.4/BH/include/boost/phoenix/function/detail/cpp03/preprocessed/function_operator.hpp:12:0,
                 from /home/sinval/R/x86_64-pc-linux-gnu-library/3.4/BH/include/boost/phoenix/function/detail/cpp03/function_operator.hpp:6,
                 from /home/sinval/R/x86_64-pc-linux-gnu-library/3.4/BH/include/boost/phoenix/function/function.hpp:58,
                 from /home/sinval/R/x86_64-pc-linux-gnu-library/3.4/BH/include/boost/phoenix/function.hpp:11,
                 from /home/sinval/R/x86_64-pc-linux-gnu-library/3.4/BH/include/boost/spirit/include/phoenix_function.hpp:11,
                 from /home/sinval/R/x86_64-pc-linux-gnu-library/3.4/BH/include/boost/spirit/home/support/terminal.hpp:18,
                 from /home/sinval/R/x86_64-pc-linux-gnu-library/3.4/BH/include/boost/spirit/home/support/common_terminals.hpp:15,
                 from /home/sinval/R/x86_64-pc-linux-gnu-library/3.4/BH/include/boost/spirit/home/qi/auto/auto.hpp:13,
                 from /home/sinval/R/x86_64-pc-linux-gnu-library/3.4/BH/include/boost/spirit/home/qi/auto.hpp:15,
                 from /home/sinval/R/x86_64-pc-linux-gnu-library/3.4/BH/include/boost/spirit/home/qi.hpp:15,
                 from /home/sinval/R/x86_64-pc-linux-gnu-library/3.4/BH/include/boost/spirit/include/qi.hpp:16,
                 from /home/sinval/R/x86_64-pc-linux-gnu-library/3.4/StanHeaders/include/src/stan/lang/grammars/expression07_grammar.hpp:4,
                 from /home/sinval/R/x86_64-pc-linux-gnu-library/3.4/StanHeaders/include/src/stan/lang/grammars/expression_grammar.hpp:5,
                 from /home/sinval/R/x86_64-pc-linux-gnu-library/3.4/StanHeaders/include/src/stan/lang/grammars/expression_grammar_def.hpp:4,
                 from /home/sinval/R/x86_64-pc-linux-gnu-library/3.4/StanHeaders/include/src/stan/lang/grammars/expression_grammar_inst.cpp:1,
                 from lang__grammars__expression_grammar_inst.cpp:18:
/home/sinval/R/x86_64-pc-linux-gnu-library/3.4/BH/include/boost/phoenix/function/detail/cpp03/preprocessed/function_operator_10.hpp:91:86: error: invalid conversion from ‘const char*’ to ‘param_type {aka char*}’ [-fpermissive]
             return detail::expression::function_eval<F, A0 , A1 , A2 , A3 , A4>::make(f, a0 , a1 , a2 , a3 , a4);
                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/sinval/R/x86_64-pc-linux-gnu-library/3.4/BH/include/boost/phoenix/core/argument.hpp:14:0,
                 from /home/sinval/R/x86_64-pc-linux-gnu-library/3.4/BH/include/boost/phoenix/core.hpp:15,
                 from /home/sinval/R/x86_64-pc-linux-gnu-library/3.4/BH/include/boost/spirit/include/phoenix_core.hpp:11,
                 from /home/sinval/R/x86_64-pc-linux-gnu-library/3.4/BH/include/boost/spirit/home/support/make_component.hpp:15,
                 from /home/sinval/R/x86_64-pc-linux-gnu-library/3.4/BH/include/boost/spirit/home/support/meta_compiler.hpp:20,
                 from /home/sinval/R/x86_64-pc-linux-gnu-library/3.4/BH/include/boost/spirit/home/qi/meta_compiler.hpp:14,
                 from /home/sinval/R/x86_64-pc-linux-gnu-library/3.4/BH/include/boost/spirit/home/qi/action/action.hpp:14,
                 from /home/sinval/R/x86_64-pc-linux-gnu-library/3.4/BH/include/boost/spirit/home/qi/action.hpp:14,
                 from /home/sinval/R/x86_64-pc-linux-gnu-library/3.4/BH/include/boost/spirit/home/qi.hpp:14,
                 from /home/sinval/R/x86_64-pc-linux-gnu-library/3.4/BH/include/boost/spirit/include/qi.hpp:16,
                 from /home/sinval/R/x86_64-pc-linux-gnu-library/3.4/StanHeaders/include/src/stan/lang/grammars/expression07_grammar.hpp:4,
                 from /home/sinval/R/x86_64-pc-linux-gnu-library/3.4/StanHeaders/include/src/stan/lang/grammars/expression_grammar.hpp:5,
                 from /home/sinval/R/x86_64-pc-linux-gnu-library/3.4/StanHeaders/include/src/stan/lang/grammars/expression_grammar_def.hpp:4,
                 from /home/sinval/R/x86_64-pc-linux-gnu-library/3.4/StanHeaders/include/src/stan/lang/grammars/expression_grammar_inst.cpp:1,
                 from lang__grammars__expression_grammar_inst.cpp:18:
/home/sinval/R/x86_64-pc-linux-gnu-library/3.4/BH/include/boost/phoenix/core/expression.hpp:63:21: note:   initializing argument 5 of ‘static boost::phoenix::expr_ext<Actor, Tag, A>::type boost::phoenix::expr_ext<Actor, Tag, A>::make(typename boost::call_traits<A>::param_type ...) [with Actor = boost::phoenix::actor; Tag = boost::phoenix::detail::tag::function_eval; A = {stan::lang::binary_op_expr, boost::phoenix::actor<boost::spirit::attribute<0> >, boost::phoenix::actor<boost::spirit::argument<0> >, char*, char*, boost::phoenix::actor<boost::proto::exprns_::basic_expr<boost::proto::tagns_::tag::terminal, boost::proto::argsns_::term<boost::reference_wrapper<std::__cxx11::basic_stringstream<char, std::char_traits<char>, std::allocator<char> > > >, 0l> >}; boost::phoenix::expr_ext<Actor, Tag, A>::type = boost::phoenix::actor<boost::proto::exprns_::basic_expr<boost::phoenix::detail::tag::function_eval, boost::proto::argsns_::list6<boost::proto::exprns_::basic_expr<boost::proto::tagns_::tag::terminal, boost::proto::argsns_::term<stan::lang::binary_op_expr>, 0l>, boost::phoenix::actor<boost::spirit::attribute<0> >, boost::phoenix::actor<boost::spirit::argument<0> >, boost::proto::exprns_::basic_expr<boost::proto::tagns_::tag::terminal, boost::proto::argsns_::term<char*>, 0l>, boost::proto::exprns_::basic_expr<boost::proto::tagns_::tag::terminal, boost::proto::argsns_::term<char*>, 0l>, boost::phoenix::actor<boost::proto::exprns_::basic_expr<boost::proto::tagns_::tag::terminal, boost::proto::argsns_::term<boost::reference_wrapper<std::__cxx11::basic_stringstream<char> > >, 0l> > >, 6l> >]’
         static type make(typename call_traits<A>::param_type... a)
                     ^~~~
/usr/lib/R/etc/Makeconf:168: recipe for target 'lang__grammars__expression_grammar_inst.o' failed
make: *** [lang__grammars__expression_grammar_inst.o] Error 1
ERROR: compilation failed for package ‘rstan’
* removing ‘/home/sinval/R/x86_64-pc-linux-gnu-library/3.4/rstan’
* restoring previous ‘/home/sinval/R/x86_64-pc-linux-gnu-library/3.4/rstan’
Warning in install.packages :
  installation of package ‘rstan’ had non-zero exit status

The downloaded source packages are in
    ‘/tmp/RtmpCxkijG/downloaded_packages’

R Version:

R version 3.4.2 (2017-09-28)

Operating System:

Lubuntu 17.04

bgoodri commented 7 years ago

https://github.com/stan-dev/rstan/issues/447#issuecomment-325172186

jorgesinval commented 7 years ago

It worked, adding the line (with space before) "-DBOOST_PHOENIX_NO_VARIADIC_EXPRESSION" to the end of the CXXFLAGS or CPPFLAGS (in the ~/.R/Makevars file). Question: Should I delete that line after the successful installation?

bgoodri commented 7 years ago

You can but I doubt it hurts anything. It should be unnecessary in the next release either way.

On Sat, Oct 7, 2017 at 11:54 AM, jorgesinval notifications@github.com wrote:

It worked, adding the line (with space before) "-DBOOST_PHOENIX_NO_VARIADIC_EXPRESSION" to the end of the CXXFLAGS or CPPFLAGS (in the ~/.R/Makevars file). Question: Should I delete that line after the successful installation?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/stan-dev/rstan/issues/456#issuecomment-334945139, or mute the thread https://github.com/notifications/unsubscribe-auth/ADOrqmeye0TYv01dyusYvvW4D5tVr3cTks5sp57PgaJpZM4PxUyW .

jorgesinval commented 7 years ago

Thanks!

jekriske-lilly commented 7 years ago

Ran into this today, looking forward to the next release.