ImperialCollegeLondon / epidemia

epidemia package
https://imperialcollegelondon.github.io/epidemia/index.html
47 stars 15 forks source link

Problems installing in ubuntu 20.04 #61

Open joscani opened 3 years ago

joscani commented 3 years ago

Hi. I'm trying to install using devtools but I get this. And the process never ends.

> devtools::install_github("ImperialCollegeLondon/epidemia")
Using github PAT from envvar GITHUB_PAT
Downloading GitHub repo ImperialCollegeLondon/epidemia@HEAD
✓  checking for file ‘/tmp/RtmpqT7T4v/remotesd5840d5323a/ImperialCollegeLondon-epidemia-31993d7/DESCRIPTION’ (657ms)
─  preparing ‘epidemia’:
✓  checking DESCRIPTION meta-information
─  cleaning src
   Warning in system2(command, args, stdout = NULL, stderr = NULL, ...) :
     error in running command
─  installing the package to process help pages
joscani commented 3 years ago

Downloading repo and open in rstudio I get this .

libclang: crash detected during parsing: {
  'source_filename' : '/home/jose/Rstudio_projects/epidemia/inst/include/tests.cpp'
  'command_line_args' : ['clang', '-I/usr/lib/llvm-10/lib/clang/10.0.0/include', '-I/usr/include/c++/9', '-I/usr/include/x86_64-linux-gnu/c++/9', '-I/usr/include/c++/9/backward', '-I/usr/lib/gcc/x86_64-linux-gnu/9/include', '-I/usr/local/include', '-I/usr/include/x86_64-linux-gnu', '-I/usr/include', '-I/home/jose/R/x86_64-pc-linux-gnu-library/4.1/BH/include', '-I/home/jose/R/x86_64-pc-linux-gnu-library/4.1/Rcpp/include', '-I/home/jose/R/x86_64-pc-linux-gnu-library/4.1/RcppEigen/include', '-I/home/jose/R/x86_64-pc-linux-gnu-library/4.1/rstan/include', '-I/home/jose/R/x86_64-pc-linux-gnu-library/4.1/StanHeaders/include', '-std=gnu++14', '-I/usr/share/R/include', '-DNDEBUG', '-I/home/jose/Rstudio_projects/epidemia/inst/include', '-I/home/jose/R/x86_64-pc-linux-gnu-library/4.1/StanHeaders/include/src', '-DBOOST_DISABLE_ASSERTS', '-DEIGEN_NO_DEBUG', '-DBOOST_MATH_OVERFLOW_ERROR_POLICY=errno_on_error', '-I'/home/jose/R/x86_64-pc-linux-gnu-library/4.1/RcppParallel/include'', '-D_REENTRANT', '-DSTAN_THREADS', '-fpic', '-fdebug-prefix-map=/build/r-base-tbZjLv/r-base-4.1.0=.', '-fstack-protector-strong', '-D_FORTIFY_SOURCE=2', '-include-pch', '/tmp/Rtmp4F1HM2/rstudio/libclang/precompiled/RcppEigen/B577563A/0.3.3.9.1-x86_64-pc-linux-gnu-80317-10.0.0/RcppEigen-std=gnu++14.pch'],
  'unsaved_files' : [],
  'options' : 2,
}
libclang: crash detected during parsing: {
  'source_filename' : '/home/jose/Rstudio_projects/epidemia/src/stanExports_epidemia_base.cc'
  'command_line_args' : ['clang', '-I/usr/lib/llvm-10/lib/clang/10.0.0/include', '-I/usr/include/c++/9', '-I/usr/include/x86_64-linux-gnu/c++/9', '-I/usr/include/c++/9/backward', '-I/usr/lib/gcc/x86_64-linux-gnu/9/include', '-I/usr/local/include', '-I/usr/include/x86_64-linux-gnu', '-I/usr/include', '-I/home/jose/R/x86_64-pc-linux-gnu-library/4.1/BH/include', '-I/home/jose/R/x86_64-pc-linux-gnu-library/4.1/Rcpp/include', '-I/home/jose/R/x86_64-pc-linux-gnu-library/4.1/RcppEigen/include', '-I/home/jose/R/x86_64-pc-linux-gnu-library/4.1/rstan/include', '-I/home/jose/R/x86_64-pc-linux-gnu-library/4.1/StanHeaders/include', '-std=gnu++14', '-I/usr/share/R/include', '-DNDEBUG', '-I/home/jose/Rstudio_projects/epidemia/inst/include', '-I/home/jose/R/x86_64-pc-linux-gnu-library/4.1/StanHeaders/include/src', '-DBOOST_DISABLE_ASSERTS', '-DEIGEN_NO_DEBUG', '-DBOOST_MATH_OVERFLOW_ERROR_POLICY=errno_on_error', '-I'/home/jose/R/x86_64-pc-linux-gnu-library/4.1/RcppParallel/include'', '-D_REENTRANT', '-DSTAN_THREADS', '-fpic', '-fdebug-prefix-map=/build/r-base-tbZjLv/r-base-4.1.0=.', '-fstack-protector-strong', '-D_FORTIFY_SOURCE=2', '-include-pch', '/tmp/Rtmp4F1HM2/rstudio/libclang/precompiled/RcppEigen/B577563A/0.3.3.9.1-x86_64-pc-linux-gnu-80317-10.0.0/RcppEigen-std=gnu++14.pch'],
  'unsaved_files' : [],
  'options' : 2,
}
libclang: crash detected during parsing: {
  'source_filename' : '/home/jose/Rstudio_projects/epidemia/src/stanExports_epidemia_base.h'
  'command_line_args' : ['clang', '-I/usr/lib/llvm-10/lib/clang/10.0.0/include', '-I/usr/include/c++/9', '-I/usr/include/x86_64-linux-gnu/c++/9', '-I/usr/include/c++/9/backward', '-I/usr/lib/gcc/x86_64-linux-gnu/9/include', '-I/usr/local/include', '-I/usr/include/x86_64-linux-gnu', '-I/usr/include', '-I/home/jose/R/x86_64-pc-linux-gnu-library/4.1/BH/include', '-I/home/jose/R/x86_64-pc-linux-gnu-library/4.1/Rcpp/include', '-I/home/jose/R/x86_64-pc-linux-gnu-library/4.1/RcppEigen/include', '-I/home/jose/R/x86_64-pc-linux-gnu-library/4.1/rstan/include', '-I/home/jose/R/x86_64-pc-linux-gnu-library/4.1/StanHeaders/include', '-std=gnu++14', '-I/usr/share/R/include', '-DNDEBUG', '-I/home/jose/Rstudio_projects/epidemia/inst/include', '-I/home/jose/R/x86_64-pc-linux-gnu-library/4.1/StanHeaders/include/src', '-DBOOST_DISABLE_ASSERTS', '-DEIGEN_NO_DEBUG', '-DBOOST_MATH_OVERFLOW_ERROR_POLICY=errno_on_error', '-I'/home/jose/R/x86_64-pc-linux-gnu-library/4.1/RcppParallel/include'', '-D_REENTRANT', '-DSTAN_THREADS', '-fpic', '-fdebug-prefix-map=/build/r-base-tbZjLv/r-base-4.1.0=.', '-fstack-protector-strong', '-D_FORTIFY_SOURCE=2', '-include-pch', '/tmp/Rtmp4F1HM2/rstudio/libclang/precompiled/RcppEigen/B577563A/0.3.3.9.1-x86_64-pc-linux-gnu-80317-10.0.0/RcppEigen-std=gnu++14.pch', '-x', 'c++'],
  'unsaved_files' : [],
  'options' : 2,
}
libclang: crash detected during parsing: {
  'source_filename' : '/home/jose/Rstudio_projects/epidemia/src/stanExports_epidemia_pp_base.cc'
  'command_line_args' : ['clang', '-I/usr/lib/llvm-10/lib/clang/10.0.0/include', '-I/usr/include/c++/9', '-I/usr/include/x86_64-linux-gnu/c++/9', '-I/usr/include/c++/9/backward', '-I/usr/lib/gcc/x86_64-linux-gnu/9/include', '-I/usr/local/include', '-I/usr/include/x86_64-linux-gnu', '-I/usr/include', '-I/home/jose/R/x86_64-pc-linux-gnu-library/4.1/BH/include', '-I/home/jose/R/x86_64-pc-linux-gnu-library/4.1/Rcpp/include', '-I/home/jose/R/x86_64-pc-linux-gnu-library/4.1/RcppEigen/include', '-I/home/jose/R/x86_64-pc-linux-gnu-library/4.1/rstan/include', '-I/home/jose/R/x86_64-pc-linux-gnu-library/4.1/StanHeaders/include', '-std=gnu++14', '-I/usr/share/R/include', '-DNDEBUG', '-I/home/jose/Rstudio_projects/epidemia/inst/include', '-I/home/jose/R/x86_64-pc-linux-gnu-library/4.1/StanHeaders/include/src', '-DBOOST_DISABLE_ASSERTS', '-DEIGEN_NO_DEBUG', '-DBOOST_MATH_OVERFLOW_ERROR_POLICY=errno_on_error', '-I'/home/jose/R/x86_64-pc-linux-gnu-library/4.1/RcppParallel/include'', '-D_REENTRANT', '-DSTAN_THREADS', '-fpic', '-fdebug-prefix-map=/build/r-base-tbZjLv/r-base-4.1.0=.', '-fstack-protector-strong', '-D_FORTIFY_SOURCE=2', '-include-pch', '/tmp/Rtmp4F1HM2/rstudio/libclang/precompiled/RcppEigen/B577563A/0.3.3.9.1-x86_64-pc-linux-gnu-80317-10.0.0/RcppEigen-std=gnu++14.pch'],
  'unsaved_files' : [],
  'options' : 2,
}
libclang: crash detected during parsing: {
  'source_filename' : '/home/jose/Rstudio_projects/epidemia/src/stanExports_epidemia_pp_base.h'
  'command_line_args' : ['clang', '-I/usr/lib/llvm-10/lib/clang/10.0.0/include', '-I/usr/include/c++/9', '-I/usr/include/x86_64-linux-gnu/c++/9', '-I/usr/include/c++/9/backward', '-I/usr/lib/gcc/x86_64-linux-gnu/9/include', '-I/usr/local/include', '-I/usr/include/x86_64-linux-gnu', '-I/usr/include', '-I/home/jose/R/x86_64-pc-linux-gnu-library/4.1/BH/include', '-I/home/jose/R/x86_64-pc-linux-gnu-library/4.1/Rcpp/include', '-I/home/jose/R/x86_64-pc-linux-gnu-library/4.1/RcppEigen/include', '-I/home/jose/R/x86_64-pc-linux-gnu-library/4.1/rstan/include', '-I/home/jose/R/x86_64-pc-linux-gnu-library/4.1/StanHeaders/include', '-std=gnu++14', '-I/usr/share/R/include', '-DNDEBUG', '-I/home/jose/Rstudio_projects/epidemia/inst/include', '-I/home/jose/R/x86_64-pc-linux-gnu-library/4.1/StanHeaders/include/src', '-DBOOST_DISABLE_ASSERTS', '-DEIGEN_NO_DEBUG', '-DBOOST_MATH_OVERFLOW_ERROR_POLICY=errno_on_error', '-I'/home/jose/R/x86_64-pc-linux-gnu-library/4.1/RcppParallel/include'', '-D_REENTRANT', '-DSTAN_THREADS', '-fpic', '-fdebug-prefix-map=/build/r-base-tbZjLv/r-base-4.1.0=.', '-fstack-protector-strong', '-D_FORTIFY_SOURCE=2', '-include-pch', '/tmp/Rtmp4F1HM2/rstudio/libclang/precompiled/RcppEigen/B577563A/0.3.3.9.1-x86_64-pc-linux-gnu-80317-10.0.0/RcppEigen-std=gnu++14.pch', '-x', 'c++'],
  'unsaved_files' : [],
  'options' : 2,
}