* installing *source* package 'rstap' ...
** package 'rstap' successfully unpacked and MD5 sums checked
** using staged installation
** libs

*** arch - i386
make[1]: Entering directory `/cygdrive/d/temp/RtmpYPWBIt/R.INSTALL175883cb52ff0/rstap/src-i386'
"D:/RCompile/recent/R/bin/i386/Rscript" -e "source(file.path('..', 'tools', 'make_cc.R')); make_cc(commandArgs(TRUE))" stan_files/stap_bernoulli.stan
Wrote C++ file "stan_files/stap_bernoulli.cc"
d:/Compiler/gcc-4.9.3/mingw_32/bin/g++   -std=gnu++14  -I"D:/RCompile/recent/R/include" -DNDEBUG -I"../inst/include" -I"D:/RCompile/CRANpkg/lib/4.0/StanHeaders/include/src" -DBOOST_DISABLE_ASSERTS -DEIGEN_NO_DEBUG -I'D:/RCompile/CRANpkg/lib/4.0/StanHeaders/include' -I'D:/RCompile/CRANpkg/lib/4.0/rstan/include' -I'D:/RCompile/CRANpkg/lib/4.0/BH/include' -I'D:/RCompile/CRANpkg/lib/4.0/Rcpp/include' -I'D:/RCompile/CRANpkg/lib/4.0/RcppEigen/include'   -I"d:/Compiler/gcc-4.9.3/local330/include"     -O2 -Wall  -mtune=core2  -c stan_files/stap_bernoulli.cc -o stan_files/stap_bernoulli.o
In file included from D:/RCompile/CRANpkg/lib/4.0/StanHeaders/include/stan/math/prim/mat/prob/dirichlet_log.hpp:5:0,
                 from D:/RCompile/CRANpkg/lib/4.0/StanHeaders/include/stan/math/prim/mat.hpp:278,
                 from D:/RCompile/CRANpkg/lib/4.0/StanHeaders/include/stan/math/rev/mat.hpp:12,
                 from D:/RCompile/CRANpkg/lib/4.0/StanHeaders/include/src/stan/model/log_prob_grad.hpp:4,
                 from D:/RCompile/CRANpkg/lib/4.0/StanHeaders/include/src/stan/model/test_gradients.hpp:7,
                 from D:/RCompile/CRANpkg/lib/4.0/StanHeaders/include/src/stan/services/diagnose/diagnose.hpp:10,
                 from D:/RCompile/CRANpkg/lib/4.0/rstan/include/rstan/stan_fit.hpp:35,
                 from D:/RCompile/CRANpkg/lib/4.0/rstan/include/rstan/rstaninc.hpp:3,
                 from stan_files/stap_bernoulli.hpp:18,
                 from stan_files/stap_bernoulli.cc:3:
D:/RCompile/CRANpkg/lib/4.0/StanHeaders/include/stan/math/prim/mat/prob/dirichlet_lpmf.hpp: In function 'stan::return_type_t<T1, T2> stan::math::dirichlet_lpmf(const T_prob&, const T_prior_size&)':
D:/RCompile/CRANpkg/lib/4.0/StanHeaders/include/stan/math/prim/mat/prob/dirichlet_lpmf.hpp:60:74: warning: typedef 'using T_partials_vec = struct Eigen::Matrix<typename stan::partials_return_type<T_prob, T_prior_size>::type, -1, 1>' locally defined but not used [-Wunused-local-typedefs]
   using T_partials_vec = typename Eigen::Matrix<T_partials_return, -1, 1>;
                                                                          ^
In file included from D:/RCompile/CRANpkg/lib/4.0/StanHeaders/include/stan/math/prim/mat/prob/poisson_log_glm_log.hpp:5:0,
                 from D:/RCompile/CRANpkg/lib/4.0/StanHeaders/include/stan/math/prim/mat.hpp:328,
                 from D:/RCompile/CRANpkg/lib/4.0/StanHeaders/include/stan/math/rev/mat.hpp:12,
                 from D:/RCompile/CRANpkg/lib/4.0/StanHeaders/include/src/stan/model/log_prob_grad.hpp:4,
                 from D:/RCompile/CRANpkg/lib/4.0/StanHeaders/include/src/stan/model/test_gradients.hpp:7,
                 from D:/RCompile/CRANpkg/lib/4.0/StanHeaders/include/src/stan/services/diagnose/diagnose.hpp:10,
                 from D:/RCompile/CRANpkg/lib/4.0/rstan/include/rstan/stan_fit.hpp:35,
                 from D:/RCompile/CRANpkg/lib/4.0/rstan/include/rstan/rstaninc.hpp:3,
                 from stan_files/stap_bernoulli.hpp:18,
                 from stan_files/stap_bernoulli.cc:3:
D:/RCompile/CRANpkg/lib/4.0/StanHeaders/include/stan/math/prim/mat/prob/poisson_log_glm_lpmf.hpp: In function 'stan::return_type_t<T_x, T_alpha, T_beta> stan::math::poisson_log_glm_lpmf(const T_y&, const T_x&, const T_alpha&, const T_beta&)':
D:/RCompile/CRANpkg/lib/4.0/StanHeaders/include/stan/math/prim/mat/prob/poisson_log_glm_lpmf.hpp:55:34: warning: typedef 'using T_alpha_val = std::conditional_t<stan::is_vector<T4>::value, Eigen::Array<typename stan::partials_return_type<T_alpha>::type, -1, 1>, typename stan::partials_return_type<T_alpha>::type>' locally defined but not used [-Wunused-local-typedefs]
       partials_return_t<T_alpha>>;
                                  ^
In file included from D:/RCompile/CRANpkg/lib/4.0/StanHeaders/include/stan/math/rev/mat.hpp:51:0,
                 from D:/RCompile/CRANpkg/lib/4.0/StanHeaders/include/src/stan/model/log_prob_grad.hpp:4,
                 from D:/RCompile/CRANpkg/lib/4.0/StanHeaders/include/src/stan/model/test_gradients.hpp:7,
                 from D:/RCompile/CRANpkg/lib/4.0/StanHeaders/include/src/stan/services/diagnose/diagnose.hpp:10,
                 from D:/RCompile/CRANpkg/lib/4.0/rstan/include/rstan/stan_fit.hpp:35,
                 from D:/RCompile/CRANpkg/lib/4.0/rstan/include/rstan/rstaninc.hpp:3,
                 from stan_files/stap_bernoulli.hpp:18,
                 from stan_files/stap_bernoulli.cc:3:
D:/RCompile/CRANpkg/lib/4.0/StanHeaders/include/stan/math/rev/mat/fun/squared_distance.hpp: In static member function 'static double stan::math::internal::squared_distance_vv_vari::var_squared_distance(const Eigen::Matrix<stan::math::var, R, C>&, const Eigen::Matrix<stan::math::var, R2, C2, (AutoAlign | (((R2 == 1) && (C2 != 1)) ? RowMajor : (((C2 == 1) && (R2 != 1)) ? ColMajor :  ColMajor))), R2, C2>&)':
D:/RCompile/CRANpkg/lib/4.0/StanHeaders/include/stan/math/rev/mat/fun/squared_distance.hpp:27:54: warning: typedef 'using idx_t = using type = Eigen::EigenBase<Eigen::Matrix<stan::math::var, -1, -1> >::Index' locally defined but not used [-Wunused-local-typedefs]
     using idx_t = typename index_type<matrix_v>::type;
                                                      ^
D:/RCompile/CRANpkg/lib/4.0/StanHeaders/include/stan/math/rev/mat/fun/squared_distance.hpp: In static member function 'static double stan::math::internal::squared_distance_vd_vari::var_squared_distance(const Eigen::Matrix<stan::math::var, R, C>&, const Eigen::Matrix<double, R2, C2>&)':
D:/RCompile/CRANpkg/lib/4.0/StanHeaders/include/stan/math/rev/mat/fun/squared_distance.hpp:64:54: warning: typedef 'using idx_t = using type = Eigen::EigenBase<Eigen::Matrix<double, -1, -1> >::Index' locally defined but not used [-Wunused-local-typedefs]
     using idx_t = typename index_type<matrix_d>::type;
                                                      ^
In file included from stan_files/stap_bernoulli.cc:3:0:
stan_files/stap_bernoulli.hpp: In function 'void model_stap_bernoulli_namespace::decov_lp(const Eigen::Matrix<Scalar, -1, 1>&, const Eigen::Matrix<RhsScalar, -1, 1>&, const Eigen::Matrix<T_shared_param, -1, 1>&, const Eigen::Matrix<T_job_param, -1, 1>&, const Eigen::Matrix<RhsScalar, -1, 1>&, const std::vector<T5__>&, const std::vector<T6__>&, const Eigen::Matrix<T7__, -1, 1>&, const int&, const std::vector<int>&, T_lp__&, T_lp_accum__&, std::ostream*)':
stan_files/stap_bernoulli.hpp:611:30: warning: typedef 'fun_return_scalar_t__' locally defined but not used [-Wunused-local-typedefs]
     typedef local_scalar_t__ fun_return_scalar_t__;
                              ^
stan_files/stap_bernoulli.hpp: In member function 'virtual void model_stap_bernoulli_namespace::model_stap_bernoulli::transform_inits(const stan::io::var_context&, std::vector<int>&, std::vector<double>&, std::ostream*) const':
stan_files/stap_bernoulli.hpp:2969:24: warning: typedef 'local_scalar_t__' locally defined but not used [-Wunused-local-typedefs]
         typedef double local_scalar_t__;
                        ^
In file included from D:/RCompile/CRANpkg/lib/4.0/StanHeaders/include/src/stan/services/sample/standalone_gqs.hpp:7:0,
                 from D:/RCompile/CRANpkg/lib/4.0/rstan/include/rstan/stan_fit.hpp:52,
                 from D:/RCompile/CRANpkg/lib/4.0/rstan/include/rstan/rstaninc.hpp:3,
                 from stan_files/stap_bernoulli.hpp:18,
                 from stan_files/stap_bernoulli.cc:3:
D:/RCompile/CRANpkg/lib/4.0/StanHeaders/include/src/stan/io/array_var_context.hpp: In instantiation of 'std::vector<unsigned int> stan::io::array_var_context::validate_dims(const std::vector<std::basic_string<char> >&, T, const std::vector<std::vector<unsigned int> >&) [with T = unsigned int]':
D:/RCompile/CRANpkg/lib/4.0/StanHeaders/include/src/stan/io/array_var_context.hpp:97:75:   required from here
D:/RCompile/CRANpkg/lib/4.0/StanHeaders/include/src/stan/io/array_var_context.hpp:74:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for (int i = 0; i < dims.size(); i++) {
                       ^
D:/RCompile/CRANpkg/lib/4.0/StanHeaders/include/src/stan/io/array_var_context.hpp: In instantiation of 'std::vector<unsigned int> stan::io::array_var_context::validate_dims(const std::vector<std::basic_string<char> >&, T, const std::vector<std::vector<unsigned int> >&) [with T = int]':
D:/RCompile/CRANpkg/lib/4.0/StanHeaders/include/src/stan/io/array_var_context.hpp:118:75:   required from here
D:/RCompile/CRANpkg/lib/4.0/StanHeaders/include/src/stan/io/array_var_context.hpp:74:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
In file included from D:/RCompile/CRANpkg/lib/4.0/StanHeaders/include/stan/math/prim/mat/err/check_cholesky_factor.hpp:7:0,
                 from D:/RCompile/CRANpkg/lib/4.0/StanHeaders/include/stan/math/prim/mat.hpp:9,
                 from D:/RCompile/CRANpkg/lib/4.0/StanHeaders/include/stan/math/rev/mat.hpp:12,
                 from D:/RCompile/CRANpkg/lib/4.0/StanHeaders/include/src/stan/model/log_prob_grad.hpp:4,
                 from D:/RCompile/CRANpkg/lib/4.0/StanHeaders/include/src/stan/model/test_gradients.hpp:7,
                 from D:/RCompile/CRANpkg/lib/4.0/StanHeaders/include/src/stan/services/diagnose/diagnose.hpp:10,
                 from D:/RCompile/CRANpkg/lib/4.0/rstan/include/rstan/stan_fit.hpp:35,
                 from D:/RCompile/CRANpkg/lib/4.0/rstan/include/rstan/rstaninc.hpp:3,
                 from stan_files/stap_bernoulli.hpp:18,
                 from stan_files/stap_bernoulli.cc:3:
D:/RCompile/CRANpkg/lib/4.0/StanHeaders/include/stan/math/prim/scal/err/check_less_or_equal.hpp: In instantiation of 'static void stan::math::internal::less_or_equal<T_y, T_high, is_vec>::check(const char*, const char*, const T_y&, const T_high&) [with T_y = unsigned int; T_high = int; bool is_vec = false]':
D:/RCompile/CRANpkg/lib/4.0/StanHeaders/include/stan/math/prim/scal/err/check_less_or_equal.hpp:65:30:   required from 'void stan::math::check_less_or_equal(const char*, const char*, const T_y&, const T_high&) [with T_y = unsigned int; T_high = int]'
D:/RCompile/CRANpkg/lib/4.0/StanHeaders/include/src/stan/io/array_var_context.hpp:80:77:   required from 'std::vector<unsigned int> stan::io::array_var_context::validate_dims(const std::vector<std::basic_string<char> >&, T, const std::vector<std::vector<unsigned int> >&) [with T = int]'
D:/RCompile/CRANpkg/lib/4.0/StanHeaders/include/src/stan/io/array_var_context.hpp:118:75:   required from here
D:/RCompile/CRANpkg/lib/4.0/StanHeaders/include/stan/math/prim/scal/err/check_less_or_equal.hpp:19:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
       if (!(y <= high_vec[n])) {
               ^
In file included from D:/RCompile/CRANpkg/lib/4.0/StanHeaders/include/stan/math/rev/core.hpp:46:0,
                 from D:/RCompile/CRANpkg/lib/4.0/StanHeaders/include/stan/math/rev/mat.hpp:6,
                 from D:/RCompile/CRANpkg/lib/4.0/StanHeaders/include/src/stan/model/log_prob_grad.hpp:4,
                 from D:/RCompile/CRANpkg/lib/4.0/StanHeaders/include/src/stan/model/test_gradients.hpp:7,
                 from D:/RCompile/CRANpkg/lib/4.0/StanHeaders/include/src/stan/services/diagnose/diagnose.hpp:10,
                 from D:/RCompile/CRANpkg/lib/4.0/rstan/include/rstan/stan_fit.hpp:35,
                 from D:/RCompile/CRANpkg/lib/4.0/rstan/include/rstan/rstaninc.hpp:3,
                 from stan_files/stap_bernoulli.hpp:18,
                 from stan_files/stap_bernoulli.cc:3:
D:/RCompile/CRANpkg/lib/4.0/StanHeaders/include/stan/math/rev/core/set_zero_all_adjoints.hpp: At global scope:
D:/RCompile/CRANpkg/lib/4.0/StanHeaders/include/stan/math/rev/core/set_zero_all_adjoints.hpp:14:13: warning: 'void stan::math::set_zero_all_adjoints()' defined but not used [-Wunused-function]
 static void set_zero_all_adjoints() {
             ^
"D:/RCompile/recent/R/bin/i386/Rscript" -e "source(file.path('..', 'tools', 'make_cc.R')); make_cc(commandArgs(TRUE))" stan_files/stap_binomial.stan
Wrote C++ file "stan_files/stap_binomial.cc"
d:/Compiler/gcc-4.9.3/mingw_32/bin/g++   -std=gnu++14  -I"D:/RCompile/recent/R/include" -DNDEBUG -I"../inst/include" -I"D:/RCompile/CRANpkg/lib/4.0/StanHeaders/include/src" -DBOOST_DISABLE_ASSERTS -DEIGEN_NO_DEBUG -I'D:/RCompile/CRANpkg/lib/4.0/StanHeaders/include' -I'D:/RCompile/CRANpkg/lib/4.0/rstan/include' -I'D:/RCompile/CRANpkg/lib/4.0/BH/include' -I'D:/RCompile/CRANpkg/lib/4.0/Rcpp/include' -I'D:/RCompile/CRANpkg/lib/4.0/RcppEigen/include'   -I"d:/Compiler/gcc-4.9.3/local330/include"     -O2 -Wall  -mtune=core2  -c stan_files/stap_binomial.cc -o stan_files/stap_binomial.o

cc1plus.exe: out of memory allocating 65536 bytes
make[1]: *** [stan_files/stap_binomial.o] Error 1
rm stan_files/stap_binomial.cc stan_files/stap_bernoulli.cc
make[1]: Leaving directory `/cygdrive/d/temp/RtmpYPWBIt/R.INSTALL175883cb52ff0/rstap/src-i386'
ERROR: compilation failed for package 'rstap'
* removing 'd:/Rcompile/CRANpkg/lib/4.0/rstap'
* restoring previous 'd:/Rcompile/CRANpkg/lib/4.0/rstap'