* using log directory 'd:/Rcompile/CRANpkg/local/3.3/medSTC.Rcheck' * using R version 3.3.2 (2016-10-31) * using platform: x86_64-w64-mingw32 (64-bit) * using session charset: ISO8859-1 * checking for file 'medSTC/DESCRIPTION' ... OK * checking extension type ... Package * this is package 'medSTC' version '1.0.0' * checking package namespace information ... OK * checking package dependencies ... OK * checking if this is a source package ... OK * checking if there is a namespace ... OK * checking for hidden files and directories ... OK * checking for portable file names ... OK * checking whether package 'medSTC' can be installed ... ERROR Installation failed. See 'd:/Rcompile/CRANpkg/local/3.3/medSTC.Rcheck/00install.out' for details. * DONE The installation logfile: * installing *source* package 'medSTC' ... ** package 'medSTC' successfully unpacked and MD5 sums checked ** libs *** arch - i386 make[1]: Entering directory `/cygdrive/d/temp/RtmpYFBFOW/R.INSTALL212879b21cc/medSTC/src-i386' d:/Compiler/gcc-4.9.3/mingw_32/bin/g++ -I"D:/RCompile/recent/R-3.3.2/include" -DNDEBUG -I. -D WINDOWS_VERSION -I"d:/Compiler/gcc-4.9.3/local330/include" -O2 -Wall -mtune=core2 -c medstc/cokus.cpp -o medstc/cokus.o d:/Compiler/gcc-4.9.3/mingw_32/bin/g++ -I"D:/RCompile/recent/R-3.3.2/include" -DNDEBUG -I. -D WINDOWS_VERSION -I"d:/Compiler/gcc-4.9.3/local330/include" -O2 -Wall -mtune=core2 -c medstc/lbfgscpp.cpp -o medstc/lbfgscpp.o d:/Compiler/gcc-4.9.3/mingw_32/bin/g++ -I"D:/RCompile/recent/R-3.3.2/include" -DNDEBUG -I. -D WINDOWS_VERSION -I"d:/Compiler/gcc-4.9.3/local330/include" -O2 -Wall -mtune=core2 -c medstc/medstc.cpp -o medstc/medstc.o medstc/medstc.cpp: In member function 'double MedSTC::sparse_coding(Document*, const int&, Params*, double*, double**)': medstc/medstc.cpp:1032:9: warning: 'fval' may be used uninitialized in this function [-Wmaybe-uninitialized] return fval; ^ d:/Compiler/gcc-4.9.3/mingw_32/bin/g++ -I"D:/RCompile/recent/R-3.3.2/include" -DNDEBUG -I. -D WINDOWS_VERSION -I"d:/Compiler/gcc-4.9.3/local330/include" -O2 -Wall -mtune=core2 -c medstc/utils.cpp -o medstc/utils.o d:/Compiler/gcc-4.9.3/mingw_32/bin/g++ -I"D:/RCompile/recent/R-3.3.2/include" -DNDEBUG -I. -D WINDOWS_VERSION -I"d:/Compiler/gcc-4.9.3/local330/include" -O2 -Wall -mtune=core2 -c medstc/corpus.cpp -o medstc/corpus.o d:/Compiler/gcc-4.9.3/mingw_32/bin/g++ -I"D:/RCompile/recent/R-3.3.2/include" -DNDEBUG -I. -D WINDOWS_VERSION -I"d:/Compiler/gcc-4.9.3/local330/include" -O2 -Wall -mtune=core2 -c medstc/main.cpp -o medstc/main.o medstc/main.cpp: In function 'SEXPREC* medSTCTrain(SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP)': medstc/main.cpp:221:40: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] model.train("random", dir, c, ¶m); ^ d:/Compiler/gcc-4.9.3/mingw_32/bin/g++ -I"D:/RCompile/recent/R-3.3.2/include" -DNDEBUG -I. -D WINDOWS_VERSION -I"d:/Compiler/gcc-4.9.3/local330/include" -O2 -Wall -mtune=core2 -c medstc/params.cpp -o medstc/params.o d:/Compiler/gcc-4.9.3/mingw_32/bin/g++ -I"D:/RCompile/recent/R-3.3.2/include" -DNDEBUG -I. -D WINDOWS_VERSION -I"d:/Compiler/gcc-4.9.3/local330/include" -O2 -Wall -mtune=core2 -c svm_multiclass/svm_struct_api.cpp -o svm_multiclass/svm_struct_api.o d:/Compiler/gcc-4.9.3/mingw_32/bin/g++ -I"D:/RCompile/recent/R-3.3.2/include" -DNDEBUG -I. -D WINDOWS_VERSION -I"d:/Compiler/gcc-4.9.3/local330/include" -O2 -Wall -mtune=core2 -c svm_multiclass/svm_struct_common.cpp -o svm_multiclass/svm_struct_common.o d:/Compiler/gcc-4.9.3/mingw_32/bin/g++ -I"D:/RCompile/recent/R-3.3.2/include" -DNDEBUG -I. -D WINDOWS_VERSION -I"d:/Compiler/gcc-4.9.3/local330/include" -O2 -Wall -mtune=core2 -c svm_multiclass/svm_struct_learn.cpp -o svm_multiclass/svm_struct_learn.o svm_multiclass/svm_struct_learn.cpp: In function 'void svm_learn_struct(SAMPLE, STRUCT_LEARN_PARM*, LEARN_PARM*, KERNEL_PARM*, STRUCTMODEL*, int)': svm_multiclass/svm_struct_learn.cpp:436:7: warning: variable 'k' set but not used [-Wunused-but-set-variable] int k = sm->svm_model->supvec[i]->orgDocNum; ^ svm_multiclass/svm_struct_learn.cpp:42:33: warning: variable 'fullround' set but not used [-Wunused-but-set-variable] int opti_round, *opti, fullround, use_shrinking; ^ svm_multiclass/svm_struct_learn.cpp: In function 'void svm_learn_struct_joint(SAMPLE, STRUCT_LEARN_PARM*, LEARN_PARM*, KERNEL_PARM*, STRUCTMODEL*, int)': svm_multiclass/svm_struct_learn.cpp:642:48: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] print_percent_progress(&progress,n,10,"."); ^ svm_multiclass/svm_struct_learn.cpp: In function 'void svm_learn_struct_joint(SAMPLE, STRUCT_LEARN_PARM*, LEARN_PARM*, KERNEL_PARM*, STRUCTMODEL*, int, double*, const int&)': svm_multiclass/svm_struct_learn.cpp:1091:48: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] print_percent_progress(&progress,n,10,"."); ^ svm_multiclass/svm_struct_learn.cpp: In function 'void update_constraint_cache_for_model(CCACHE*, MODEL*)': svm_multiclass/svm_struct_learn.cpp:1627:53: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] print_percent_progress(&progress,ccache->n,10,"+"); ^ d:/Compiler/gcc-4.9.3/mingw_32/bin/g++ -I"D:/RCompile/recent/R-3.3.2/include" -DNDEBUG -I. -D WINDOWS_VERSION -I"d:/Compiler/gcc-4.9.3/local330/include" -O2 -Wall -mtune=core2 -c svmlight/svm_common.cpp -o svmlight/svm_common.o d:/Compiler/gcc-4.9.3/mingw_32/bin/g++ -I"D:/RCompile/recent/R-3.3.2/include" -DNDEBUG -I. -D WINDOWS_VERSION -I"d:/Compiler/gcc-4.9.3/local330/include" -O2 -Wall -mtune=core2 -c svmlight/svm_hideo.cpp -o svmlight/svm_hideo.o svmlight/svm_hideo.cpp: In function 'double* optimize_qp(QP*, double*, long int, double*, LEARN_PARM*)': svmlight/svm_hideo.cpp:204:74: error: 'isnan' was not declared in this scope if((qp->opt_m>0) && (result != NAN_SOLUTION) && (!isnan(dual[1]-dual[0]))) ^ svmlight/svm_hideo.cpp:204:74: note: suggested alternative: In file included from D:/RCompile/recent/R-3.3.2/include/R.h:43:0, from svmlight/svm_hideo.cpp:21: D:/Compiler/gcc-4.9.3/mingw_32/i686-w64-mingw32/include/c++/cmath:837:5: note: 'std::isnan' isnan(_Tp __f) ^ svmlight/svm_hideo.cpp: In function 'int solve_dual(long int, long int, double, double, long int, double*, double*, double*, double*, double*, double*, double*, double*, double*, double*, double*, double*, double*, long int)': svmlight/svm_hideo.cpp:910:20: error: 'isnan' was not declared in this scope if(isnan(isnantest)) { ^ svmlight/svm_hideo.cpp:910:20: note: suggested alternative: In file included from D:/RCompile/recent/R-3.3.2/include/R.h:43:0, from svmlight/svm_hideo.cpp:21: D:/Compiler/gcc-4.9.3/mingw_32/i686-w64-mingw32/include/c++/cmath:837:5: note: 'std::isnan' isnan(_Tp __f) ^ svmlight/svm_hideo.cpp:922:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ make[1]: *** [svmlight/svm_hideo.o] Error 1 make[1]: Leaving directory `/cygdrive/d/temp/RtmpYFBFOW/R.INSTALL212879b21cc/medSTC/src-i386' Warning: running command 'make -f "Makevars.win" -f "D:/RCompile/recent/R-3.3.2/etc/i386/Makeconf" -f "D:/RCompile/recent/R-3.3.2/etc/i386/Makevars.site" -f "D:/RCompile/recent/R-3.3.2/share/make/winshlib.mk" SHLIB_LDFLAGS='$(SHLIB_CXXLDFLAGS)' SHLIB_LD='$(SHLIB_CXXLD)' SHLIB="medSTC.dll" ' had status 2 ERROR: compilation failed for package 'medSTC' * removing 'd:/Rcompile/CRANpkg/lib/3.3/medSTC' * restoring previous 'd:/Rcompile/CRANpkg/lib/3.3/medSTC'