-
-
Notifications
You must be signed in to change notification settings - Fork 264
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
Comments
You temporarily have to add this to the end of the CXXFLAGS or CPPFLAGS
line in the ~/.R/Makevars file:
…-DBOOST_PHOENIX_NO_VARIADIC_EXPRESSION
On Sat, Aug 26, 2017 at 9:02 PM, Yizhe Xu ***@***.***> wrote:
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)
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#447>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/ADOrqq5FXI5jmvmMnY4wIvJRAz_I1lHsks5scMAIgaJpZM4PDqp1>
.
|
It worked. Thank you. |
Re-opening until fixed on CRAN |
@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:
Still does not work for me. Can you please correct me where I am doing wrong? |
You need a space before -DBOOST...
…On Sat, Sep 16, 2017 at 12:32 AM, soumojitdas ***@***.***> wrote:
@yizhexu <https://github.com/yizhexu> @bgoodri
<https://github.com/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!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#447 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/ADOrqj4pMxmQiuQdLbVrbDBpT3Ra3Nz6ks5si09BgaJpZM4PDqp1>
.
|
@bgoodri Thank you very much, Sir. It worked. But, I am having trouble installing related stan packages like: rstanarm, shinystan etc.
Could you be kind enough to check on this? Thank you very much for your time. |
I don't think that has anything to do with Stan. The other packages
(igraph, etc.) fail to install and thus everything that depends on them
fail to install. You will have to look at the particular error messages.
…On Sat, Sep 16, 2017 at 2:39 AM, soumojitdas ***@***.***> wrote:
@bgoodri <https://github.com/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.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#447 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/ADOrqsWoRahntye5c0vfYsGW1uxKZDH8ks5si20vgaJpZM4PDqp1>
.
|
@bgoodri Thanks for your time. I'll post it here if I find the solution. |
Hi 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"
|
To me it looks like "out-of memory". I had similar cases, but not sure about this, because the error is a bit diffuse. |
The memory seems sufficient. Any pointers are appreciated. |
Yes, it ran out of memory. You might try with -Os in your Makevars file
rather than -O3.
…On Thu, Oct 12, 2017 at 2:37 PM, samadhav ***@***.***> wrote:
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
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#447 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/ADOrqinu6q_W-W8fpOFYeuk7Jlcit2tTks5srlxngaJpZM4PDqp1>
.
|
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"
|
Summary:
Running Fedora26, Fail to install rstan while running
install.packages('rstan', repo='https://cran.rstudio.org')
anddevtools::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
R Version:
"R version 3.4.1 (2017-06-30)"
Operating System:
gcc version 7.1.1 20170622 (Red Hat 7.1.1-3) (GCC)
The text was updated successfully, but these errors were encountered: