kgori / sigfit

Flexible Bayesian inference of mutational signatures
GNU General Public License v3.0
33 stars 8 forks source link

Install failure: 'iterator' file not found #70

Open greymonroe opened 3 hours ago

greymonroe commented 3 hours ago

Install failed for me, details below: fatal error: 'iterator' file not found.

Thought I should share since I didn't see this in the installation troubleshooting section. I have not found a solution yet.


✔  checking for file ‘/private/var/folders/bd/mbpz5nqn3wx9pv76yysj3f980000gq/T/RtmpyC1VfZ/remotes63e8a0e8fc/kgori-sigfit-46e89a1/DESCRIPTION’ ...
─  preparing ‘sigfit’:
✔  checking DESCRIPTION meta-information
─  cleaning src
─  checking for LF line-endings in source and make files and shell scripts
─  checking for empty or unneeded directories
─  looking to see if a ‘data/datalist’ file should be added
─  building ‘sigfit_2.2.tar.gz’ (1.4s)

* installing *source* package ‘sigfit’ ...
** using staged installation
** libs
using C++ compiler: ‘Apple clang version 16.0.0 (clang-1600.0.26.4)’
using C++17
using SDK: ‘MacOSX15.1.sdk’

clang++ -arch arm64 -std=gnu++17 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I"../inst/include" -I"/Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/StanHeaders/include/src" -DBOOST_DISABLE_ASSERTS -DEIGEN_NO_DEBUG -DBOOST_MATH_OVERFLOW_ERROR_POLICY=errno_on_error -DUSE_STANC3 -D_HAS_AUTO_PTR_ETC=0 -I'/Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/BH/include' -I'/Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/Rcpp/include' -I'/Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/RcppEigen/include' -I'/Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/rstan/include' -I'/Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/StanHeaders/include' -I/opt/R/arm64/include    -I'/Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/RcppParallel/include' -D_REENTRANT -DSTAN_THREADS   -fPIC  -falign-functions=64 -Wall -g -O2   -c RcppExports.cpp -o RcppExports.o
In file included from RcppExports.cpp:4:
In file included from /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/RcppEigen/include/RcppEigen.h:25:
/Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/RcppEigen/include/RcppEigenForward.h:25:10: fatal error: 'iterator' file not found
   25 | #include <iterator>
      |          ^~~~~~~~~~
1 error generated.
make: *** [RcppExports.o] Error 1
ERROR: compilation failed for package ‘sigfit’
* removing ‘/Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/sigfit’
Warning message:
In i.p(...) :
  installation of package ‘/var/folders/bd/mbpz5nqn3wx9pv76yysj3f980000gq/T//RtmpyC1VfZ/file63e7c1ffcd0/sigfit_2.2.tar.gz’ had non-zero exit status```
kgori commented 3 hours ago

\<iterator> is part of the c++ standard library, so if your compiler can't find it it suggests there is something wrong with your c++ toolchain. Can you compile one of the basic examples from the Rcpp vignette? If not, the Rcpp FAQ can help you.