metrumresearchgroup / Torsten

library of C++ functions that support applications of Stan in Pharmacometrics
BSD 3-Clause "New" or "Revised" License
52 stars 11 forks source link

Compilation failure #20

Closed StLeonidas closed 4 years ago

StLeonidas commented 4 years ago

Trying to install Torsten. During installation of Torsten (as R interface on Windows) it crashes when trying to include <stan/lang/grammars/term_grammar_def.hpp>. Other headers are included successfully. Rstan itself has no such an error during installation. All C++14 flags are present, gcc 4.9.3. Here is R console output: g++ -fPIC -I"D:/Personal_folders/user1/R-3.5.1/include" -DNDEBUG -I"../inst/include" -I"." -I"D:/Personal_folders/user1/Test_Torsten/Work/R_project/packrat/lib/x86_64-w64-mingw32/3.5.1/StanHeaders/include/src" -DBOOST_DISABLE_ASSERTS -DBOOST_PHOENIX_NO_VARIADIC_EXPRESSION -I"D:/Personal_folders/user1/Test_Torsten/Work/R_project/packrat/lib/x86_64-w64-mingw32/3.5.1/Rcpp/include" -I"D:/Personal_folders/user1/Test_Torsten/Work/R_project/packrat/lib/x86_64-w64-mingw32/3.5.1/RcppEigen/include" -I"D:/Personal_folders/user1/Test_Torsten/Work/R_project/packrat/lib/x86_64-w64-mingw32/3.5.1/BH/include" -I"D:/Personal_folders/user1/Test_Torsten/Work/R_project/packrat/lib/x86_64-w64-mingw32/3.5.1/StanHeaders/include" -O3 -std=c++1y -mtune=native -march=native -Wno-unused-variable -Wno-unused-function -DBOOST_MPL_CFG_NO_PREPROCESSED_HEADERS -DBOOST_MPL_LIMIT_LIST_SIZE=30 -c stan/lang/grammars/term_grammar_inst.cpp -o stan/lang/grammars/term_grammar_inst.o stan/lang/grammars/term_grammar_inst.cpp:1:0: warning: -fPIC ignored for target (all code is position independent)

include <stan/lang/grammars/term_grammar_def.hpp>

^

cc1plus.exe: out of memory allocating 65536 bytes make: *** [stan/lang/grammars/term_grammar_inst.o] Error 1 ERROR: compilation failed for package 'rstan'

Error is the same if Rstan is preinstalled or not installed. Is there any chance for allocating more memory or other way? Thank you.

yizhang-yiz commented 4 years ago

Thanks for reporting. But it may not be a bug.

Possible causes & solutions

yizhang-yiz commented 4 years ago

I'm closing this due to lack of activity and more information.

StLeonidas commented 4 years ago

yizhang-yiz, I appologize for hesitating with the answer, your comment really helped!