Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fail to install rstan because StanHeaders missing lang directory #447

Open
yizhexu opened this issue Aug 27, 2017 · 13 comments
Open

Fail to install rstan because StanHeaders missing lang directory #447

yizhexu opened this issue Aug 27, 2017 · 13 comments

Comments

@yizhexu
Copy link

yizhexu commented Aug 27, 2017

Summary:

Running Fedora26, Fail to install rstan while running install.packages('rstan', repo='https://cran.rstudio.org') and devtools::install_github("stan-dev/rstan", ref = "develop", subdir = "rstan/rstan", dependencies = TRUE)

Get: make: *** [/usr/lib64/R/etc/Makeconf:166: lang__grammars__expression_grammar_inst.o] Error 1

Description:

Tried the steps here as well: https://github.com/stan-dev/rstan/wiki/Installing-RStan-on-Mac-or-Linux

> cat(readLines(M), sep = "\n")

CXXFLAGS=-O3 -mtune=native -march=native -Wno-unused-variable -Wno-unused-function
CXXFLAGS+=-flto -ffat-lto-objects  -Wno-unused-local-typedefs
CXXFLAGS += -Wno-ignored-attributes -Wno-deprecated-declarations

> install.packages("rstan", repos = "https://cloud.r-project.org/")
Installing package into ‘/home/yizhe/R/x86_64-redhat-linux-gnu-library/3.4’
(as ‘lib’ is unspecified)
trying URL 'https://cloud.r-project.org/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++ -m64  -I/usr/include/R -DNDEBUG -I"../inst/include" -I"../inst/include/boost_not_in_BH" -I"`"/usr/lib64/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/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/Rcpp/include" -I"/home/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/RcppEigen/include" -I"/home/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/BH/include" -I"/home/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/StanHeaders/include" -I/usr/local/include   -fpic  -O3 -mtune=native -march=native -Wno-unused-variable -Wno-unused-function -flto -ffat-lto-objects  -Wno-unused-local-typedefs -Wno-ignored-attributes -Wno-deprecated-declarations -c chains.cpp -o chains.o
g++ -m64  -I/usr/include/R -DNDEBUG -I"../inst/include" -I"../inst/include/boost_not_in_BH" -I"`"/usr/lib64/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/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/Rcpp/include" -I"/home/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/RcppEigen/include" -I"/home/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/BH/include" -I"/home/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/StanHeaders/include" -I/usr/local/include   -fpic  -O3 -mtune=native -march=native -Wno-unused-variable -Wno-unused-function -flto -ffat-lto-objects  -Wno-unused-local-typedefs -Wno-ignored-attributes -Wno-deprecated-declarations -c init.cpp -o init.o
g++ -m64  -I/usr/include/R -DNDEBUG -I"../inst/include" -I"../inst/include/boost_not_in_BH" -I"`"/usr/lib64/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/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/Rcpp/include" -I"/home/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/RcppEigen/include" -I"/home/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/BH/include" -I"/home/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/StanHeaders/include" -I/usr/local/include   -fpic  -O3 -mtune=native -march=native -Wno-unused-variable -Wno-unused-function -flto -ffat-lto-objects  -Wno-unused-local-typedefs -Wno-ignored-attributes -Wno-deprecated-declarations -c lang__ast_def.cpp -o lang__ast_def.o
g++ -m64  -I/usr/include/R -DNDEBUG -I"../inst/include" -I"../inst/include/boost_not_in_BH" -I"`"/usr/lib64/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/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/Rcpp/include" -I"/home/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/RcppEigen/include" -I"/home/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/BH/include" -I"/home/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/StanHeaders/include" -I/usr/local/include   -fpic  -O3 -mtune=native -march=native -Wno-unused-variable -Wno-unused-function -flto -ffat-lto-objects  -Wno-unused-local-typedefs -Wno-ignored-attributes -Wno-deprecated-declarations -c lang__grammars__bare_type_grammar_inst.cpp -o lang__grammars__bare_type_grammar_inst.o
g++ -m64  -I/usr/include/R -DNDEBUG -I"../inst/include" -I"../inst/include/boost_not_in_BH" -I"`"/usr/lib64/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/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/Rcpp/include" -I"/home/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/RcppEigen/include" -I"/home/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/BH/include" -I"/home/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/StanHeaders/include" -I/usr/local/include   -fpic  -O3 -mtune=native -march=native -Wno-unused-variable -Wno-unused-function -flto -ffat-lto-objects  -Wno-unused-local-typedefs -Wno-ignored-attributes -Wno-deprecated-declarations -c lang__grammars__expression07_grammar_inst.cpp -o lang__grammars__expression07_grammar_inst.o
g++ -m64  -I/usr/include/R -DNDEBUG -I"../inst/include" -I"../inst/include/boost_not_in_BH" -I"`"/usr/lib64/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/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/Rcpp/include" -I"/home/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/RcppEigen/include" -I"/home/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/BH/include" -I"/home/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/StanHeaders/include" -I/usr/local/include   -fpic  -O3 -mtune=native -march=native -Wno-unused-variable -Wno-unused-function -flto -ffat-lto-objects  -Wno-unused-local-typedefs -Wno-ignored-attributes -Wno-deprecated-declarations -c lang__grammars__expression_grammar_inst.cpp -o lang__grammars__expression_grammar_inst.o
g++ -m64  -I/usr/include/R -DNDEBUG -I"../inst/include" -I"../inst/include/boost_not_in_BH" -I"`"/usr/lib64/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/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/Rcpp/include" -I"/home/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/RcppEigen/include" -I"/home/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/BH/include" -I"/home/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/StanHeaders/include" -I/usr/local/include   -fpic  -O3 -mtune=native -march=native -Wno-unused-variable -Wno-unused-function -flto -ffat-lto-objects  -Wno-unused-local-typedefs -Wno-ignored-attributes -Wno-deprecated-declarations -c lang__grammars__functions_grammar_inst.cpp -o lang__grammars__functions_grammar_inst.o
g++ -m64  -I/usr/include/R -DNDEBUG -I"../inst/include" -I"../inst/include/boost_not_in_BH" -I"`"/usr/lib64/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/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/Rcpp/include" -I"/home/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/RcppEigen/include" -I"/home/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/BH/include" -I"/home/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/StanHeaders/include" -I/usr/local/include   -fpic  -O3 -mtune=native -march=native -Wno-unused-variable -Wno-unused-function -flto -ffat-lto-objects  -Wno-unused-local-typedefs -Wno-ignored-attributes -Wno-deprecated-declarations -c lang__grammars__indexes_grammar_inst.cpp -o lang__grammars__indexes_grammar_inst.o
g++ -m64  -I/usr/include/R -DNDEBUG -I"../inst/include" -I"../inst/include/boost_not_in_BH" -I"`"/usr/lib64/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/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/Rcpp/include" -I"/home/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/RcppEigen/include" -I"/home/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/BH/include" -I"/home/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/StanHeaders/include" -I/usr/local/include   -fpic  -O3 -mtune=native -march=native -Wno-unused-variable -Wno-unused-function -flto -ffat-lto-objects  -Wno-unused-local-typedefs -Wno-ignored-attributes -Wno-deprecated-declarations -c lang__grammars__program_grammar_inst.cpp -o lang__grammars__program_grammar_inst.o
In file included from /home/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/BH/include/boost/phoenix/function/detail/cpp03/preprocessed/function_operator.hpp:12:0,
                 from /home/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/BH/include/boost/phoenix/function/detail/cpp03/function_operator.hpp:6,
                 from /home/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/BH/include/boost/phoenix/function/function.hpp:58,
                 from /home/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/BH/include/boost/phoenix/function.hpp:11,
                 from /home/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/BH/include/boost/spirit/include/phoenix_function.hpp:11,
                 from /home/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/BH/include/boost/spirit/home/support/terminal.hpp:18,
                 from /home/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/BH/include/boost/spirit/home/support/common_terminals.hpp:15,
                 from /home/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/BH/include/boost/spirit/home/qi/auto/auto.hpp:13,
                 from /home/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/BH/include/boost/spirit/home/qi/auto.hpp:15,
                 from /home/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/BH/include/boost/spirit/home/qi.hpp:15,
                 from /home/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/BH/include/boost/spirit/include/qi.hpp:16,
                 from /home/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/StanHeaders/include/src/stan/lang/grammars/expression07_grammar.hpp:4,
                 from /home/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/StanHeaders/include/src/stan/lang/grammars/expression_grammar.hpp:5,
                 from /home/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/StanHeaders/include/src/stan/lang/grammars/expression_grammar_def.hpp:4,
                 from /home/yizhe/R/x86_64-redhat-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/yizhe/R/x86_64-redhat-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> > >, 0> >; 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>, 0>, 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*>, 0>, boost::proto::exprns_::basic_expr<boost::proto::tagns_::tag::terminal, boost::proto::argsns_::term<char*>, 0>, 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> > >, 0> > >, 6> >]’:
/home/yizhe/R/x86_64-redhat-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/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/StanHeaders/include/src/stan/lang/grammars/expression_grammar_inst.cpp:6:21:   required from here
/home/yizhe/R/x86_64-redhat-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]
 n detail::expression::function_eval<F, A0 , A1 , A2 , A3 , A4>::make(f, a0 , a1 , a2 , a3 , a4);
   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/BH/include/boost/phoenix/core/argument.hpp:14:0,
                 from /home/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/BH/include/boost/phoenix/core.hpp:15,
                 from /home/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/BH/include/boost/spirit/include/phoenix_core.hpp:11,
                 from /home/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/BH/include/boost/spirit/home/support/make_component.hpp:15,
                 from /home/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/BH/include/boost/spirit/home/support/meta_compiler.hpp:20,
                 from /home/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/BH/include/boost/spirit/home/qi/meta_compiler.hpp:14,
                 from /home/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/BH/include/boost/spirit/home/qi/action/action.hpp:14,
                 from /home/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/BH/include/boost/spirit/home/qi/action.hpp:14,
                 from /home/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/BH/include/boost/spirit/home/qi.hpp:14,
                 from /home/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/BH/include/boost/spirit/include/qi.hpp:16,
                 from /home/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/StanHeaders/include/src/stan/lang/grammars/expression07_grammar.hpp:4,
                 from /home/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/StanHeaders/include/src/stan/lang/grammars/expression_grammar.hpp:5,
                 from /home/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/StanHeaders/include/src/stan/lang/grammars/expression_grammar_def.hpp:4,
                 from /home/yizhe/R/x86_64-redhat-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/yizhe/R/x86_64-redhat-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> > > >, 0> >}; 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>, 0>, 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*>, 0>, boost::proto::exprns_::basic_expr<boost::proto::tagns_::tag::terminal, boost::proto::argsns_::term<char*>, 0>, 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> > >, 0> > >, 6> >]’
         static type make(typename call_traits<A>::param_type... a)
                     ^~~~
In file included from /home/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/BH/include/boost/phoenix/function/detail/cpp03/preprocessed/function_operator.hpp:12:0,
                 from /home/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/BH/include/boost/phoenix/function/detail/cpp03/function_operator.hpp:6,
                 from /home/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/BH/include/boost/phoenix/function/function.hpp:58,
                 from /home/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/BH/include/boost/phoenix/function.hpp:11,
                 from /home/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/BH/include/boost/spirit/include/phoenix_function.hpp:11,
                 from /home/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/BH/include/boost/spirit/home/support/terminal.hpp:18,
                 from /home/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/BH/include/boost/spirit/home/support/common_terminals.hpp:15,
                 from /home/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/BH/include/boost/spirit/home/qi/auto/auto.hpp:13,
                 from /home/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/BH/include/boost/spirit/home/qi/auto.hpp:15,
                 from /home/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/BH/include/boost/spirit/home/qi.hpp:15,
                 from /home/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/BH/include/boost/spirit/include/qi.hpp:16,
                 from /home/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/StanHeaders/include/src/stan/lang/grammars/expression07_grammar.hpp:4,
                 from /home/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/StanHeaders/include/src/stan/lang/grammars/expression_grammar.hpp:5,
                 from /home/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/StanHeaders/include/src/stan/lang/grammars/expression_grammar_def.hpp:4,
                 from /home/yizhe/R/x86_64-redhat-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/yizhe/R/x86_64-redhat-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]
 n detail::expression::function_eval<F, A0 , A1 , A2 , A3 , A4>::make(f, a0 , a1 , a2 , a3 , a4);
   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/BH/include/boost/phoenix/core/argument.hpp:14:0,
                 from /home/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/BH/include/boost/phoenix/core.hpp:15,
                 from /home/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/BH/include/boost/spirit/include/phoenix_core.hpp:11,
                 from /home/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/BH/include/boost/spirit/home/support/make_component.hpp:15,
                 from /home/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/BH/include/boost/spirit/home/support/meta_compiler.hpp:20,
                 from /home/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/BH/include/boost/spirit/home/qi/meta_compiler.hpp:14,
                 from /home/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/BH/include/boost/spirit/home/qi/action/action.hpp:14,
                 from /home/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/BH/include/boost/spirit/home/qi/action.hpp:14,
                 from /home/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/BH/include/boost/spirit/home/qi.hpp:14,
                 from /home/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/BH/include/boost/spirit/include/qi.hpp:16,
                 from /home/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/StanHeaders/include/src/stan/lang/grammars/expression07_grammar.hpp:4,
                 from /home/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/StanHeaders/include/src/stan/lang/grammars/expression_grammar.hpp:5,
                 from /home/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/StanHeaders/include/src/stan/lang/grammars/expression_grammar_def.hpp:4,
                 from /home/yizhe/R/x86_64-redhat-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/yizhe/R/x86_64-redhat-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> > > >, 0> >}; 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>, 0>, 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*>, 0>, boost::proto::exprns_::basic_expr<boost::proto::tagns_::tag::terminal, boost::proto::argsns_::term<char*>, 0>, 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> > >, 0> > >, 6> >]’
         static type make(typename call_traits<A>::param_type... a)
                     ^~~~
In file included from /home/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/BH/include/boost/phoenix/function/detail/cpp03/preprocessed/function_operator.hpp:12:0,
                 from /home/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/BH/include/boost/phoenix/function/detail/cpp03/function_operator.hpp:6,
                 from /home/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/BH/include/boost/phoenix/function/function.hpp:58,
                 from /home/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/BH/include/boost/phoenix/function.hpp:11,
                 from /home/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/BH/include/boost/spirit/include/phoenix_function.hpp:11,
                 from /home/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/BH/include/boost/spirit/home/support/terminal.hpp:18,
                 from /home/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/BH/include/boost/spirit/home/support/common_terminals.hpp:15,
                 from /home/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/BH/include/boost/spirit/home/qi/auto/auto.hpp:13,
                 from /home/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/BH/include/boost/spirit/home/qi/auto.hpp:15,
                 from /home/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/BH/include/boost/spirit/home/qi.hpp:15,
                 from /home/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/BH/include/boost/spirit/include/qi.hpp:16,
                 from /home/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/StanHeaders/include/src/stan/lang/grammars/expression07_grammar.hpp:4,
                 from /home/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/StanHeaders/include/src/stan/lang/grammars/expression_grammar.hpp:5,
                 from /home/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/StanHeaders/include/src/stan/lang/grammars/expression_grammar_def.hpp:4,
                 from /home/yizhe/R/x86_64-redhat-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/yizhe/R/x86_64-redhat-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> > >, 0> >; 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>, 0>, 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*>, 0>, boost::proto::exprns_::basic_expr<boost::proto::tagns_::tag::terminal, boost::proto::argsns_::term<char*>, 0>, 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> > >, 0> > >, 6> >]’:
/home/yizhe/R/x86_64-redhat-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/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/StanHeaders/include/src/stan/lang/grammars/expression_grammar_inst.cpp:6:21:   required from here
/home/yizhe/R/x86_64-redhat-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]
 n detail::expression::function_eval<F, A0 , A1 , A2 , A3 , A4>::make(f, a0 , a1 , a2 , a3 , a4);
   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/BH/include/boost/phoenix/core/argument.hpp:14:0,
                 from /home/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/BH/include/boost/phoenix/core.hpp:15,
                 from /home/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/BH/include/boost/spirit/include/phoenix_core.hpp:11,
                 from /home/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/BH/include/boost/spirit/home/support/make_component.hpp:15,
                 from /home/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/BH/include/boost/spirit/home/support/meta_compiler.hpp:20,
                 from /home/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/BH/include/boost/spirit/home/qi/meta_compiler.hpp:14,
                 from /home/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/BH/include/boost/spirit/home/qi/action/action.hpp:14,
                 from /home/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/BH/include/boost/spirit/home/qi/action.hpp:14,
                 from /home/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/BH/include/boost/spirit/home/qi.hpp:14,
                 from /home/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/BH/include/boost/spirit/include/qi.hpp:16,
                 from /home/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/StanHeaders/include/src/stan/lang/grammars/expression07_grammar.hpp:4,
                 from /home/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/StanHeaders/include/src/stan/lang/grammars/expression_grammar.hpp:5,
                 from /home/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/StanHeaders/include/src/stan/lang/grammars/expression_grammar_def.hpp:4,
                 from /home/yizhe/R/x86_64-redhat-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/yizhe/R/x86_64-redhat-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> > > >, 0> >}; 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>, 0>, 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*>, 0>, boost::proto::exprns_::basic_expr<boost::proto::tagns_::tag::terminal, boost::proto::argsns_::term<char*>, 0>, 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> > >, 0> > >, 6> >]’
         static type make(typename call_traits<A>::param_type... a)
                     ^~~~
In file included from /home/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/BH/include/boost/phoenix/function/detail/cpp03/preprocessed/function_operator.hpp:12:0,
                 from /home/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/BH/include/boost/phoenix/function/detail/cpp03/function_operator.hpp:6,
                 from /home/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/BH/include/boost/phoenix/function/function.hpp:58,
                 from /home/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/BH/include/boost/phoenix/function.hpp:11,
                 from /home/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/BH/include/boost/spirit/include/phoenix_function.hpp:11,
                 from /home/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/BH/include/boost/spirit/home/support/terminal.hpp:18,
                 from /home/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/BH/include/boost/spirit/home/support/common_terminals.hpp:15,
                 from /home/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/BH/include/boost/spirit/home/qi/auto/auto.hpp:13,
                 from /home/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/BH/include/boost/spirit/home/qi/auto.hpp:15,
                 from /home/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/BH/include/boost/spirit/home/qi.hpp:15,
                 from /home/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/BH/include/boost/spirit/include/qi.hpp:16,
                 from /home/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/StanHeaders/include/src/stan/lang/grammars/expression07_grammar.hpp:4,
                 from /home/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/StanHeaders/include/src/stan/lang/grammars/expression_grammar.hpp:5,
                 from /home/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/StanHeaders/include/src/stan/lang/grammars/expression_grammar_def.hpp:4,
                 from /home/yizhe/R/x86_64-redhat-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/yizhe/R/x86_64-redhat-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]
 n detail::expression::function_eval<F, A0 , A1 , A2 , A3 , A4>::make(f, a0 , a1 , a2 , a3 , a4);
   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/BH/include/boost/phoenix/core/argument.hpp:14:0,
                 from /home/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/BH/include/boost/phoenix/core.hpp:15,
                 from /home/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/BH/include/boost/spirit/include/phoenix_core.hpp:11,
                 from /home/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/BH/include/boost/spirit/home/support/make_component.hpp:15,
                 from /home/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/BH/include/boost/spirit/home/support/meta_compiler.hpp:20,
                 from /home/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/BH/include/boost/spirit/home/qi/meta_compiler.hpp:14,
                 from /home/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/BH/include/boost/spirit/home/qi/action/action.hpp:14,
                 from /home/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/BH/include/boost/spirit/home/qi/action.hpp:14,
                 from /home/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/BH/include/boost/spirit/home/qi.hpp:14,
                 from /home/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/BH/include/boost/spirit/include/qi.hpp:16,
                 from /home/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/StanHeaders/include/src/stan/lang/grammars/expression07_grammar.hpp:4,
                 from /home/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/StanHeaders/include/src/stan/lang/grammars/expression_grammar.hpp:5,
                 from /home/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/StanHeaders/include/src/stan/lang/grammars/expression_grammar_def.hpp:4,
                 from /home/yizhe/R/x86_64-redhat-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/yizhe/R/x86_64-redhat-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> > > >, 0> >}; 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>, 0>, 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*>, 0>, boost::proto::exprns_::basic_expr<boost::proto::tagns_::tag::terminal, boost::proto::argsns_::term<char*>, 0>, 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> > >, 0> > >, 6> >]’
         static type make(typename call_traits<A>::param_type... a)
                     ^~~~
In file included from /home/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/BH/include/boost/phoenix/function/detail/cpp03/preprocessed/function_operator.hpp:12:0,
                 from /home/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/BH/include/boost/phoenix/function/detail/cpp03/function_operator.hpp:6,
                 from /home/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/BH/include/boost/phoenix/function/function.hpp:58,
                 from /home/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/BH/include/boost/phoenix/function.hpp:11,
                 from /home/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/BH/include/boost/spirit/include/phoenix_function.hpp:11,
                 from /home/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/BH/include/boost/spirit/home/support/terminal.hpp:18,
                 from /home/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/BH/include/boost/spirit/home/support/common_terminals.hpp:15,
                 from /home/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/BH/include/boost/spirit/home/qi/auto/auto.hpp:13,
                 from /home/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/BH/include/boost/spirit/home/qi/auto.hpp:15,
                 from /home/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/BH/include/boost/spirit/home/qi.hpp:15,
                 from /home/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/BH/include/boost/spirit/include/qi.hpp:16,
                 from /home/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/StanHeaders/include/src/stan/lang/grammars/expression07_grammar.hpp:4,
                 from /home/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/StanHeaders/include/src/stan/lang/grammars/expression_grammar.hpp:5,
                 from /home/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/StanHeaders/include/src/stan/lang/grammars/expression_grammar_def.hpp:4,
                 from /home/yizhe/R/x86_64-redhat-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/yizhe/R/x86_64-redhat-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> > >, 0> >; 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>, 0>, 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*>, 0>, boost::proto::exprns_::basic_expr<boost::proto::tagns_::tag::terminal, boost::proto::argsns_::term<char*>, 0>, 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> > >, 0> > >, 6> >]’:
/home/yizhe/R/x86_64-redhat-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/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/StanHeaders/include/src/stan/lang/grammars/expression_grammar_inst.cpp:6:21:   required from here
/home/yizhe/R/x86_64-redhat-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]
 n detail::expression::function_eval<F, A0 , A1 , A2 , A3 , A4>::make(f, a0 , a1 , a2 , a3 , a4);
   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/BH/include/boost/phoenix/core/argument.hpp:14:0,
                 from /home/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/BH/include/boost/phoenix/core.hpp:15,
                 from /home/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/BH/include/boost/spirit/include/phoenix_core.hpp:11,
                 from /home/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/BH/include/boost/spirit/home/support/make_component.hpp:15,
                 from /home/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/BH/include/boost/spirit/home/support/meta_compiler.hpp:20,
                 from /home/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/BH/include/boost/spirit/home/qi/meta_compiler.hpp:14,
                 from /home/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/BH/include/boost/spirit/home/qi/action/action.hpp:14,
                 from /home/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/BH/include/boost/spirit/home/qi/action.hpp:14,
                 from /home/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/BH/include/boost/spirit/home/qi.hpp:14,
                 from /home/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/BH/include/boost/spirit/include/qi.hpp:16,
                 from /home/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/StanHeaders/include/src/stan/lang/grammars/expression07_grammar.hpp:4,
                 from /home/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/StanHeaders/include/src/stan/lang/grammars/expression_grammar.hpp:5,
                 from /home/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/StanHeaders/include/src/stan/lang/grammars/expression_grammar_def.hpp:4,
                 from /home/yizhe/R/x86_64-redhat-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/yizhe/R/x86_64-redhat-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> > > >, 0> >}; 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>, 0>, 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*>, 0>, boost::proto::exprns_::basic_expr<boost::proto::tagns_::tag::terminal, boost::proto::argsns_::term<char*>, 0>, 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> > >, 0> > >, 6> >]’
         static type make(typename call_traits<A>::param_type... a)
                     ^~~~
In file included from /home/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/BH/include/boost/phoenix/function/detail/cpp03/preprocessed/function_operator.hpp:12:0,
                 from /home/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/BH/include/boost/phoenix/function/detail/cpp03/function_operator.hpp:6,
                 from /home/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/BH/include/boost/phoenix/function/function.hpp:58,
                 from /home/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/BH/include/boost/phoenix/function.hpp:11,
                 from /home/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/BH/include/boost/spirit/include/phoenix_function.hpp:11,
                 from /home/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/BH/include/boost/spirit/home/support/terminal.hpp:18,
                 from /home/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/BH/include/boost/spirit/home/support/common_terminals.hpp:15,
                 from /home/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/BH/include/boost/spirit/home/qi/auto/auto.hpp:13,
                 from /home/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/BH/include/boost/spirit/home/qi/auto.hpp:15,
                 from /home/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/BH/include/boost/spirit/home/qi.hpp:15,
                 from /home/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/BH/include/boost/spirit/include/qi.hpp:16,
                 from /home/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/StanHeaders/include/src/stan/lang/grammars/expression07_grammar.hpp:4,
                 from /home/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/StanHeaders/include/src/stan/lang/grammars/expression_grammar.hpp:5,
                 from /home/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/StanHeaders/include/src/stan/lang/grammars/expression_grammar_def.hpp:4,
                 from /home/yizhe/R/x86_64-redhat-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/yizhe/R/x86_64-redhat-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]
 n detail::expression::function_eval<F, A0 , A1 , A2 , A3 , A4>::make(f, a0 , a1 , a2 , a3 , a4);
   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/BH/include/boost/phoenix/core/argument.hpp:14:0,
                 from /home/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/BH/include/boost/phoenix/core.hpp:15,
                 from /home/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/BH/include/boost/spirit/include/phoenix_core.hpp:11,
                 from /home/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/BH/include/boost/spirit/home/support/make_component.hpp:15,
                 from /home/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/BH/include/boost/spirit/home/support/meta_compiler.hpp:20,
                 from /home/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/BH/include/boost/spirit/home/qi/meta_compiler.hpp:14,
                 from /home/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/BH/include/boost/spirit/home/qi/action/action.hpp:14,
                 from /home/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/BH/include/boost/spirit/home/qi/action.hpp:14,
                 from /home/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/BH/include/boost/spirit/home/qi.hpp:14,
                 from /home/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/BH/include/boost/spirit/include/qi.hpp:16,
                 from /home/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/StanHeaders/include/src/stan/lang/grammars/expression07_grammar.hpp:4,
                 from /home/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/StanHeaders/include/src/stan/lang/grammars/expression_grammar.hpp:5,
                 from /home/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/StanHeaders/include/src/stan/lang/grammars/expression_grammar_def.hpp:4,
                 from /home/yizhe/R/x86_64-redhat-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/yizhe/R/x86_64-redhat-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> > > >, 0> >}; 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>, 0>, 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*>, 0>, boost::proto::exprns_::basic_expr<boost::proto::tagns_::tag::terminal, boost::proto::argsns_::term<char*>, 0>, 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> > >, 0> > >, 6> >]’
         static type make(typename call_traits<A>::param_type... a)
                     ^~~~
make: *** [/usr/lib64/R/etc/Makeconf:166: lang__grammars__expression_grammar_inst.o] Error 1
make: *** Waiting for unfinished jobs....
ERROR: compilation failed for package ‘rstan’
* removing ‘/home/yizhe/R/x86_64-redhat-linux-gnu-library/3.4/rstan’

The downloaded source packages are in
	‘/tmp/Rtmp3AenXG/downloaded_packages’
Warning message:
In install.packages("rstan", repos = "https://cloud.r-project.org/") :
  installation of package ‘rstan’ had non-zero exit status

R Version:

"R version 3.4.1 (2017-06-30)"

Operating System:

LSB Version:	:core-4.1-amd64:core-4.1-noarch
Distributor ID:	Fedora
Description:	Fedora release 26 (Twenty Six)
Release:	26
Codename:	TwentySix

gcc version 7.1.1 20170622 (Red Hat 7.1.1-3) (GCC)

@bgoodri
Copy link
Contributor

bgoodri commented Aug 27, 2017 via email

@yizhexu
Copy link
Author

yizhexu commented Aug 27, 2017

It worked. Thank you.

@yizhexu yizhexu closed this as completed Aug 27, 2017
@bgoodri bgoodri reopened this Aug 30, 2017
@bgoodri
Copy link
Contributor

bgoodri commented Aug 30, 2017

Re-opening until fixed on CRAN

@soumojitdas
Copy link

soumojitdas commented Sep 16, 2017

@yizhexu @bgoodri Can you please specify what and where exactly do I need to make changes to get the successful installation? I am facing the exact same errors and tried this:

dotR <- file.path(Sys.getenv("HOME"), ".R")
if (!file.exists(dotR)) dir.create(dotR)
M <- file.path(dotR, "Makevars")
if (!file.exists(M)) file.create(M)
cat("\nCXXFLAGS=-O3 -mtune=native -march=native -Wno-unused-variable -Wno-unused-function-DBOOST_PHOENIX_NO_VARIADIC_EXPRESSION", 
    file = M, sep = "\n", append = TRUE)

Still does not work for me. Can you please correct me where I am doing wrong?
Thank you!

@bgoodri
Copy link
Contributor

bgoodri commented Sep 16, 2017 via email

@soumojitdas
Copy link

@bgoodri Thank you very much, Sir. It worked. But, I am having trouble installing related stan packages like: rstanarm, shinystan etc.

make: *** [/usr/lib64/R/etc/Makeconf:159: foreign-graphml.o] Error 1
ERROR: compilation failed for package ‘igraph’
* removing ‘/home/sdas/R/x86_64-redhat-linux-gnu-library/3.4/igraph’
Warning in install.packages :
  installation of package ‘igraph’ had non-zero exit status
ERROR: dependencies ‘PKI’, ‘RCurl’ are not available for package ‘rsconnect’
* removing ‘/home/sdas/R/x86_64-redhat-linux-gnu-library/3.4/rsconnect’
Warning in install.packages :
  installation of package ‘rsconnect’ had non-zero exit status
ERROR: dependency ‘igraph’ is not available for package ‘threejs’
* removing ‘/home/sdas/R/x86_64-redhat-linux-gnu-library/3.4/threejs’
Warning in install.packages :
  installation of package ‘threejs’ had non-zero exit status
ERROR: dependencies ‘rsconnect’, ‘threejs’ are not available for package ‘shinystan’
* removing ‘/home/sdas/R/x86_64-redhat-linux-gnu-library/3.4/shinystan’
Warning in install.packages :
  installation of package ‘shinystan’ had non-zero exit status
ERROR: dependency ‘shinystan’ is not available for package ‘rstanarm’
* removing ‘/home/sdas/R/x86_64-redhat-linux-gnu-library/3.4/rstanarm’
Warning in install.packages :
  installation of package ‘rstanarm’ had non-zero exit status

Could you be kind enough to check on this?

Thank you very much for your time.

@bgoodri
Copy link
Contributor

bgoodri commented Sep 16, 2017 via email

@soumojitdas
Copy link

@bgoodri Thanks for your time. I'll post it here if I find the solution.

@samadhav
Copy link

Hi
I am installing rstan in RHEL 7.4 and facing the below error: I referred the above discussion but not able to resolve it.

Command issued is : tried both of it - both gives same error. Any help is appreciated. thanks!

install.packages("rstan", repos = "https://cloud.r-project.org/", dependencies=TRUE)

install.packages("rstan", type = "source")

g++ -m64 -I/usr/include/R -DNDEBUG -I"../inst/include" -I"../inst/include/boost_not_in_BH" -I""/usr/lib64/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/ec2-user/R/x86_64-redhat-linux-gnu-library/3.4/Rcpp/include" -I"/home/ec2-user/R/x86_64-redhat-linux-gnu-library/3.4/RcppEigen/include" -I"/home/ec2-user/R/x86_64-redhat-linux-gnu-library/3.4/BH/include" -I"/home/ec2-user/R/x86_64-redhat-linux-gnu-library/3.4/StanHeaders/include" -I/usr/local/include -fpic -O3 -mtune=native -march=native -Wno-unused-variable -Wno-unused-function -std=c++11 -DBOOST_PHOENIX_NO_VARIADIC_EXPRESSION -c lang__grammars__functions_grammar_inst.cpp -o lang__grammars__functions_grammar_inst.o
g++: internal compiler error: Killed (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See http://bugzilla.redhat.com/bugzilla for instructions.
make: *** [lang__grammars__functions_grammar_inst.o] Error 4
ERROR: compilation failed for package ‘rstan’

  • removing ‘/home/ec2-user/R/x86_64-redhat-linux-gnu-library/3.4/rstan’
  • installing source package ‘rsconnect’ ...
    ** package ‘rsconnect’ successfully unpacked and MD5 sums checked

@dmenne
Copy link

dmenne commented Oct 12, 2017

To me it looks like "out-of memory". I had similar cases, but not sure about this, because the error is a bit diffuse.

@samadhav
Copy link

The memory seems sufficient. Any pointers are appreciated.
$ free
total used free shared buff/cache available
Mem: 1014736 46844 130600 28712 837292 730160
Swap: 511996 60624 451372

@bgoodri
Copy link
Contributor

bgoodri commented Oct 12, 2017 via email

@samadhav
Copy link

thanks for your quick reply. I tried with -Os option , getting the below error: Also, can you verify if adding these extra parameters in Makevars file are ok ?

-Os -std=c++11 -DBOOST_PHOENIX_NO_VARIADIC_EXPRESSION

g++ -m64 -I/usr/include/R -DNDEBUG -I"../inst/include" -I"../inst/include/boost_not_in_BH" -I""/usr/lib64/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/ec2-user/R/x86_64-redhat-linux-gnu-library/3.4/Rcpp/include" -I"/home/ec2-user/R/x86_64-redhat-linux-gnu-library/3.4/RcppEigen/include" -I"/home/ec2-user/R/x86_64-redhat-linux-gnu-library/3.4/BH/include" -I"/home/ec2-user/R/x86_64-redhat-linux-gnu-library/3.4/StanHeaders/include" -I/usr/local/include -fpic -Os -mtune=native -march=native -Wno-unused-variable -Wno-unused-function -std=c++11 -DBOOST_PHOENIX_NO_VARIADIC_EXPRESSION -c lang__grammars__expression07_grammar_inst.cpp -o lang__grammars__expression07_grammar_inst.o
g++: internal compiler error: Killed (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See http://bugzilla.redhat.com/bugzilla for instructions.
make: *** [lang__ast_def.o] Error 4
make: *** Waiting for unfinished jobs....
g++: internal compiler error: Killed (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See http://bugzilla.redhat.com/bugzilla for instructions.
make: *** [lang__grammars__bare_type_grammar_inst.o] Error 4
g++: internal compiler error: Killed (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See http://bugzilla.redhat.com/bugzilla for instructions.
make: *** [lang__grammars__expression07_grammar_inst.o] Error 4
ERROR: compilation failed for package ‘rstan’

  • removing ‘/home/ec2-user/R/x86_64-redhat-linux-gnu-library/3.4/rstan’
    ERROR: dependency ‘rstan’ is not available for package ‘shinystan’
  • removing ‘/home/ec2-user/R/x86_64-redhat-linux-gnu-library/3.4/shinystan’

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants