RfastOfficial / Rfast2

A collection of Rfast2 functions for data analysis. Note 1: The vast majority of the functions accept matrices only, not data.frames. Note 2: Do not have matrices or vectors with have missing data (i.e NAs). We do no check about them and C++ internally transforms them into zeros (0), so you may get wrong results. Note 3: In general, make sure you give the correct input, in order to get the correct output. We do no checks and this is one of the many reasons we are fast.
38 stars 4 forks source link

Installation failed due to file not found issue with #include <execution> #26

Closed Patrikios closed 8 months ago

Patrikios commented 11 months ago

Problematic error message:

* installing *source* package ‘Rfast2’ ...
** Paket ‘Rfast2’ erfolgreich entpackt und MD5 Summen überprüft
** using staged installation
** libs
using C compiler: ‘gcc (Debian 8.3.0-6) 8.3.0’
using C++ compiler: ‘g++ (Debian 8.3.0-6) 8.3.0’
using C++17
g++ -std=gnu++17 -I"/usr/share/R/include" -DNDEBUG -I../inst/include -I'/usr/lib/R/site-library/Rcpp/include' -I'/usr/lib/R/site-library/RcppArmadillo/include' -I'/usr/lib/R/site-library/RcppParallel/include'    -fopenmp -fpic  -g -O2 -fdebug-prefix-map=/home/jranke/git/r-backports/buster/r-base-4.3.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2  -c Eval.cpp -o Eval.o
In file included from ../inst/include/Rfast2/templates.h:10,
                 from Eval.cpp:7:
../inst/include/Rfast2/parallel.h:20:10: fatal error: execution: Datei oder Verzeichnis nicht gefunden
 #include <execution>
          ^~~~~~~~~~~
compilation terminated.
make: *** [/usr/lib/R/etc/Makeconf:200: Eval.o] Fehler 1
ERROR: compilation failed for package ‘Rfast2’
* removing ‘/usr/lib/R/site-library/Rfast2’
* restoring previous ‘/usr/lib/R/site-library/Rfast2’
> sessionInfo()
R version 4.3.2 (2023-10-31)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Debian GNU/Linux 10 (buster)

Matrix products: default
BLAS:   /usr/lib/x86_64-linux-gnu/openblas/libblas.so.3 
LAPACK: /usr/lib/x86_64-linux-gnu/libopenblasp-r0.3.5.so;  LAPACK version 3.8.0

locale:
 [1] LC_CTYPE=de_DE.UTF-8       LC_NUMERIC=C               LC_TIME=de_DE.UTF-8       
 [4] LC_COLLATE=de_DE.UTF-8     LC_MONETARY=de_DE.UTF-8    LC_MESSAGES=de_DE.UTF-8   
 [7] LC_PAPER=de_DE.UTF-8       LC_NAME=C                  LC_ADDRESS=C              
[10] LC_TELEPHONE=C             LC_MEASUREMENT=de_DE.UTF-8 LC_IDENTIFICATION=C       

time zone: Europe/Berlin
tzcode source: system (glibc)

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

loaded via a namespace (and not attached):
[1] compiler_4.3.2 tools_4.3.2 
ruizederick commented 11 months ago

Hi,

I was having the same problem. The compiler your using (g++ version 8.3) doesn't support \<execution> library, you should use g++ version 9 or higher.