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

Cannot install development version #537

Open
sambrilleman opened this issue Jun 20, 2021 · 2 comments
Open

Cannot install development version #537

sambrilleman opened this issue Jun 20, 2021 · 2 comments

Comments

@sambrilleman
Copy link
Collaborator

Summary:

I'm trying to build the feature/survival branch from source, using "Install and Restart" in the RStudio console for the rstanarm.Rproj R project.

But after taking forever (some time overnight), it eventually fails, this time with this error in the build window:

E> C:/Rpackages/StanHeaders/include/stan/math/rev/mat/fun/quad_form.hpp:70:13: required from 'void stan::math::internal::quad_form_vari<Ta, Ra, Ca, Tb, Rb, Cb>::chainB(Eigen::Matrix<stan::math::var, Rb, Cb>&, const Eigen::Matrix<double, R, C>&, const Eigen::Matrix<double, Rb, Cb>&, const Eigen::Matrix<double, Cb, Cb>&) [with Ta = double; int Ra = -1; int Ca = -1; Tb = stan::math::var; int Rb = -1; int Cb = 1]
E> C:/Rpackages/StanHeaders/include/stan/math/rev/mat/fun/quad_form.hpp:79:5: required from 'void stan::math::internal::quad_form_vari<Ta, Ra, Ca, Tb, Rb, Cb>::chainAB(Eigen::Matrix<T, R, C>&, Eigen::Matrix<T2, R2, C2>&, const Eigen::Matrix<double, R, C>&, const Eigen::Matrix<double, Rb, Cb>&, const Eigen::Matrix<double, Cb, Cb>&) [with Ta = double; int Ra = -1; int Ca = -1; Tb = stan::math::var; int Rb = -1; int Cb = 1]
E> C:/Rpackages/StanHeaders/include/stan/math/rev/mat/fun/quad_form.hpp:92:5: required from 'void stan::math::internal::quad_form_vari<Ta, Ra, Ca, Tb, Rb, Cb>::chain() [with Ta = double; int Ra = -1; int Ca = -1; Tb = stan::math::var; int Rb = -1; int Cb = 1]
E> C:/Rpackages/StanHeaders/include/stan/math/rev/mat/fun/quad_form.hpp:89:16: required from here
E> C:/Rpackages/RcppEigen/include/Eigen/src/Core/CoreEvaluators.h:960:8:warning: noring attributes on template argument 'Eigen::internal::packet_traits<double>::type{aka '__vector(2) double-Wignored-attributes
E> In file included from C:/Rpackages/StanHeaders/include/stan/math/rev/core.hpp:46
E>                  from C:/Rpackages/StanHeaders/include/stan/math/rev/mat.hpp:6
E>                  from C:/Rpackages/StanHeaders/include/src/stan/model/log_prob_grad.hpp:4
E>                  from C:/Rpackages/StanHeaders/include/src/stan/model/test_gradients.hpp:7
E>                  from C:/Rpackages/StanHeaders/include/src/stan/services/diagnose/diagnose.hpp:10
E>                  from C:/Rpackages/rstan/include/rstan/stan_fit.hpp:35
E>                  from C:/Rpackages/rstan/include/rstan/rstaninc.hpp:4
E>                  from stan_files/continuous.hpp:18
E>                  from stan_files/continuous.cc:3
E> C:/Rpackages/StanHeaders/include/stan/math/rev/core/set_zero_all_adjoints.hpp:t global scope:
E> C:/Rpackages/StanHeaders/include/stan/math/rev/core/set_zero_all_adjoints.hpp:14:13:warning: void stan::math::set_zero_all_adjoints()ined but not used [-Wunused-function
E>  static void set_zero_all_adjoints
E>              ^~~~~~~~~~~~~~~~~~~~~
E> C:/rtools40/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.3.0/../../../../x86_64-w64-mingw32/bin/as.exe: stan_files/continuous.o: too many sections (79359)
E> C:\Users\SBRILL~1\AppData\Local\Temp\ccKCIkOw.s: Assembler messages:
E> C:\Users\SBRILL~1\AppData\Local\Temp\ccKCIkOw.s: Fatal error: can't write 56 bytes to section .text of stan_files/continuous.o: 'file too big'
E> C:/rtools40/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.3.0/../../../../x86_64-w64-mingw32/bin/as.exe: stan_files/continuous.o: too many sections (79359)
E> C:\Users\SBRILL~1\AppData\Local\Temp\ccKCIkOw.s: Fatal error: can't close stan_files/continuous.o: file too big
E> make: *** [C:/PROGRA~1/R/R-40~1.3/etc/x64/Makeconf:227: stan_files/continuous.o] Error 1
E> rm stan_files/continuous.cc stan_files/surv.cc
E> ERROR: compilation failed for package 'rstanarm'
E> * removing 'C:/Users/SBRILL~1/AppData/Local/Temp/RtmpoFuIY3/devtools_install_175069105387/rstanarm' 

Execution halted

Exited with status 1.

Reproducible Steps:

As described above.

RStanARM Version:

feature/survival branch.

R Version:

4.0.3

Operating System:

Windows 10

@jgabry
Copy link
Member

jgabry commented Jun 21, 2021

E> C:\Users\SBRILL1\AppData\Local\Temp\ccKCIkOw.s: Assembler messages:
E> C:\Users\SBRILL
1\AppData\Local\Temp\ccKCIkOw.s: Fatal error: can't write 56 bytes to section .text of stan_files/continuous.o: 'file too big'
E> C:/rtools40/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.3.0/../../../../x86_64-w64-mingw32/bin/as.exe: stan_files/continuous.o: too many sections (79359)
E> C:\Users\SBRILL~1\AppData\Local\Temp\ccKCIkOw.s: Fatal error: can't close stan_files/continuous.o: file too big

Looks like it's not happy with some file sizes.

@bgoodri Any ideas?

@bgoodri
Copy link
Contributor

bgoodri commented Jun 21, 2021 via email

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

3 participants