doccstat / fastcpd

FAST Change Point Detection in R
https://fastcpd.xingchi.li/
GNU General Public License v3.0
20 stars 1 forks source link

R-CMD-check / ubuntu-latest (oldrel-1) ERROR #3

Closed doccstat closed 11 months ago

doccstat commented 11 months ago

The error comes from DescTools. Not sure if this error affects if the new versions can be submitted to CRAN yet.

ERROR URL: https://github.com/doccstat/fastcpd/actions/runs/7028017292/job/19123342043

  ℹ Building DescTools 0.99.51
  ✖ Failed to build DescTools 0.99.51
  Error: 
  ! error in pak subprocess
  Caused by error in `stop_task_build(state, worker)`:
  ! Failed to build source package 'DescTools'
  Full installation output:
  * installing *source* package ‘DescTools’ ...
  ** package ‘DescTools’ successfully unpacked and MD5 sums checked
  staged installation is only possible with locking
  ** using non-staged installation
  ** libs
  gcc -I"/opt/R/4.2.3/lib/R/include" -DNDEBUG  -I'/home/runner/work/_temp/Library/Rcpp/include' -I/usr/local/include   -fpic  -g -O2  -Wall -pedantic -c ADinf.c -o ADinf.o
  gcc -I"/opt/R/4.2.3/lib/R/include" -DNDEBUG  -I'/home/runner/work/_temp/Library/Rcpp/include' -I/usr/local/include   -fpic  -g -O2  -Wall -pedantic -c AnDarl.c -o AnDarl.o
  g++ -std=gnu++14 -I"/opt/R/4.2.3/lib/R/include" -DNDEBUG  -I'/home/runner/work/_temp/Library/Rcpp/include' -I/usr/local/include   -fpic  -g -O2  -Wall -pedantic -c RcppExports.cpp -o RcppExports.o
  g++ -std=gnu++14 -I"/opt/R/4.2.3/lib/R/include" -DNDEBUG  -I'/home/runner/work/_temp/Library/Rcpp/include' -I/usr/local/include   -fpic  -g -O2  -Wall -pedantic -c aux_fct.cpp -o aux_fct.o
  aux_fct.cpp: In function ‘long long int compute_LCM(long long int, long long int)’:
  aux_fct.cpp:48:10: error: ‘lcm’ is not a member of ‘std’
     48 |     std::lcm(a,b);
        |          ^~~
  aux_fct.cpp: In function ‘long long int compute_GCD(long long int, long long int)’:
  aux_fct.cpp:54:10: error: ‘gcd’ is not a member of ‘std’
     54 |     std::gcd(a,b);
        |          ^~~
  make: *** [/opt/R/4.2.3/lib/R/etc/Makeconf:178: aux_fct.o] Error 1
  ERROR: compilation failed for package ‘DescTools’
  * removing ‘/tmp/Rtmp3ZcClL/pkg-lib149d2ae242a0/DescTools’
  ---
  Backtrace:
  1. pak::lockfile_install(".github/pkg.lock")
  2. pak:::remote(function(...) { …
  3. err$throw(res$error)
  ---
doccstat commented 11 months ago

The dependency on package DescTools is no longer needed.