Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ERROR: compilation failed for package 'gmum.r' #590

Open
WlodzislawD opened this issue Jan 8, 2023 · 0 comments
Open

ERROR: compilation failed for package 'gmum.r' #590

WlodzislawD opened this issue Jan 8, 2023 · 0 comments

Comments

@WlodzislawD
Copy link

Numerous problems Win11 x64, ... R-4.2.2-win. rtools42-5355-5357

  • installing source package 'gmum.r' ...
    ** using staged installation
    ** libs
    g++ -std=gnu++11 -I"C:/PROGRA1/R/R-421.2/include" -DNDEBUG -DNDEBUG_GMUM -DARMA_DONT_USE_CXX11 -DRCPP_INTERFACE -DARMA_64BIT_WORD -IC:/PROGRA1/R/R-421.2/include -IC:/PROGRA1/R/R-421.2/include/x64 -I"C:/Users/wduch/AppData/Local/R/win-library/4.2/Rcpp/include" -I"C:/Users/wduch/AppData/Local/R/win-library/4.2/RcppArmadillo/include" -I ../inst/include/svmlight -I ../inst/include/utils -I ../inst/include -I ../inst/include/cec -I ../inst/include/gng -I ../inst/include/svm -mtune=native -static-libstdc++ -static-libgcc -lstdc++ -lpthread -I'C:/Users/wduch/AppData/Local/R/win-library/4.2/Rcpp/include' -I'C:/Users/wduch/AppData/Local/R/win-library/4.2/RcppArmadillo/include' -I'C:/Users/wduch/AppData/Local/R/win-library/4.2/BH/include' -I"C:/rtools42/x86_64-w64-mingw32.static.posix/include" --std=c++0x -O2 -Wall -gdwarf-2 -mfpmath=sse -msse2 -mstackrealign -c svm/libsvm_runner.cpp -o svm/libsvm_runner.o
    In file included from svm/libsvm_runner.cpp:18:
    ../inst/include/utils/utils.h:28:47: error: extended character – is not valid in an identifier
    28 | #define FORD(x, b, e) for(size_t x=b; x>=(e); ––x)
    | ^
    ../inst/include/utils/utils.h:28:47: error: extended character – is not valid in an identifier
    ../inst/include/utils/utils.h:51: warning: "DBG" redefined
    51 | #define DBG(verbosity, level, text)
    |
    In file included from ../inst/include/svm/svm.h:6,
    from ../inst/include/svm/libsvm_runner.h:14,
    from svm/libsvm_runner.cpp:14:
    ../inst/include/utils/logger.h:29: note: this is the location of the previous definition
    29 | #define DBG(logger, level, text)
    |
    In file included from C:/Users/wduch/AppData/Local/R/win-library/4.2/RcppArmadillo/include/armadillo:23,
    from C:/Users/wduch/AppData/Local/R/win-library/4.2/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:56,
    from C:/Users/wduch/AppData/Local/R/win-library/4.2/RcppArmadillo/include/RcppArmadillo.h:29,
    from ../inst/include/utils/logger.h:10,
    from ../inst/include/svm/svm.h:6,
    from ../inst/include/svm/libsvm_runner.h:14,
    from svm/libsvm_runner.cpp:14:
    C:/Users/wduch/AppData/Local/R/win-library/4.2/RcppArmadillo/include/armadillo_bits/compiler_check.hpp:67:65: note: '#pragma message: WARNING: option ARMA_DONT_USE_CXX11 ignored'
    67 | #pragma message ("WARNING: option ARMA_DONT_USE_CXX11 ignored")
    | ^
    In file included from C:/Users/wduch/AppData/Local/R/win-library/4.2/BH/include/boost/foreach.hpp:76,
    from ../inst/include/utils/utils.h:21,
    from svm/libsvm_runner.cpp:18:
    C:/Users/wduch/AppData/Local/R/win-library/4.2/BH/include/boost/mpl/assert.hpp:194:21: warning: unnecessary parentheses in declaration of 'assert_arg' [-Wparentheses]
    194 | failed ************ (Pred::************
    | ^
    C:/Users/wduch/AppData/Local/R/win-library/4.2/BH/include/boost/mpl/assert.hpp:199:21: warning: unnecessary parentheses in declaration of 'assert_not_arg' [-Wparentheses]
    199 | failed ************ (boost::mpl::not_::************
    | ^
    svm/libsvm_runner.cpp: In member function 'void LibSVMRunner::libraryParseCommandLine(SVMConfiguration&, svm_parameter&, int, char**, char*, char*)':
    svm/libsvm_runner.cpp:397:9: warning: unused variable 'print_func' [-Wunused-variable]
    397 | void (print_func)(const char) = NULL; // default printing to stdout
    | ^~~~~~~~~~
    In file included from svm/libsvm_runner.cpp:18:
    ../inst/include/utils/utils.h: At global scope:
    ../inst/include/utils/utils.h:131:15: warning: 'double __double_rnd(double, double)' defined but not used [-Wunused-function]
    131 | static double __double_rnd(double min, double max) {
    | ^~~~~~~~~~~~
    ../inst/include/utils/utils.h:127:12: warning: 'int __int_rnd(int, int)' defined but not used [-Wunused-function]
    127 | static int __int_rnd(int min, int max) {
    | ^~~~~~~~~
    ../inst/include/utils/utils.h:123:12: warning: 'int __rnd(int, int)' defined but not used [-Wunused-function]
    123 | static int __rnd(int min, int max) {
    | ^~~~~
    ../inst/include/utils/utils.h:107:12: warning: 'int __seed(int)' defined but not used [-Wunused-function]
    107 | static int __seed(int seed) {
    | ^~~~~~
    make: *** [C:/PROGRA1/R/R-421.2/etc/x64/Makeconf:260: svm/libsvm_runner.o] Error 1
    ERROR: compilation failed for package 'gmum.r'
  • removing 'C:/Users/wduch/AppData/Local/R/win-library/4.2/gmum.r'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant