Skip to content

Instantly share code, notes, and snippets.

@mllg
Created November 14, 2014 20:18
Show Gist options
  • Save mllg/d4455ef18856a2ef1a32 to your computer and use it in GitHub Desktop.
Save mllg/d4455ef18856a2ef1a32 to your computer and use it in GitHub Desktop.
RcppArmadillo winbuilder error
* installing *source* package 'fmrmr' ...
** libs
*** arch - i386
g++ -I"D:/RCompile/recent/R-3.1.2/include" -I"d:/RCompile/CRANpkg/lib/3.1/Rcpp/include" -I"d:/RCompile/CRANpkg/lib/3.1/RcppArmadillo/include" -I"d:/Rcompile/CRANpkg/extralibs215/local215/include" -O3 -Wall -mtune=core2 -c RcppExports.cpp -o RcppExports.o
g++ -I"D:/RCompile/recent/R-3.1.2/include" -I"d:/RCompile/CRANpkg/lib/3.1/Rcpp/include" -I"d:/RCompile/CRANpkg/lib/3.1/RcppArmadillo/include" -I"d:/Rcompile/CRANpkg/extralibs215/local215/include" -O3 -Wall -mtune=core2 -c mrmr.cpp -o mrmr.o
g++ -shared -s -static-libgcc -o fmrmr.dll tmp.def RcppExports.o mrmr.o -LD:/RCompile/recent/R-3.1.2/bin/i386 -lRlapack -LD:/RCompile/recent/R-3.1.2/bin/i386 -lRblas -lgfortran -Ld:/Rcompile/CRANpkg/extralibs215/local215/lib/i386 -Ld:/Rcompile/CRANpkg/extralibs215/local215/lib -LD:/RCompile/recent/R-3.1.2/bin/i386 -lR
installing to d:/RCompile/CRANguest/R-release/lib/fmrmr/libs/i386
*** arch - x64
g++ -m64 -I"D:/RCompile/recent/R-3.1.2/include" -I"d:/RCompile/CRANpkg/lib/3.1/Rcpp/include" -I"d:/RCompile/CRANpkg/lib/3.1/RcppArmadillo/include" -I"d:/Rcompile/CRANpkg/extralibs215/local215/include" -O3 -Wall -mtune=core2 -c RcppExports.cpp -o RcppExports.o
In file included from d:/RCompile/CRANpkg/lib/3.1/Rcpp/include/Rcpp/as.h:25:0,
from d:/RCompile/CRANpkg/lib/3.1/Rcpp/include/RcppCommon.h:169,
from d:/RCompile/CRANpkg/lib/3.1/RcppArmadillo/include/RcppArmadilloForward.h:26,
from d:/RCompile/CRANpkg/lib/3.1/RcppArmadillo/include/RcppArmadillo.h:30,
from RcppExports.cpp:4:
d:/RCompile/CRANpkg/lib/3.1/Rcpp/include/Rcpp/internal/Exporter.h: In constructor 'Rcpp::traits::Exporter<T>::Exporter(SEXP) [with T = long long unsigned int, SEXP = SEXPREC*]':
d:/RCompile/CRANpkg/lib/3.1/Rcpp/include/Rcpp/as.h:79:51: instantiated from 'T Rcpp::internal::as(SEXP, Rcpp::traits::r_type_generic_tag) [with T = long long unsigned int, SEXP = SEXPREC*]'
d:/RCompile/CRANpkg/lib/3.1/Rcpp/include/Rcpp/as.h:144:84: instantiated from 'T Rcpp::as(SEXP) [with T = long long unsigned int, SEXP = SEXPREC*]'
d:/RCompile/CRANpkg/lib/3.1/Rcpp/include/Rcpp/InputParameter.h:59:55: instantiated from 'Rcpp::ConstInputParameter<T>::ConstInputParameter(SEXP) [with T = long long unsigned int, SEXP = SEXPREC*]'
RcppExports.cpp:19:81: instantiated from here
d:/RCompile/CRANpkg/lib/3.1/Rcpp/include/Rcpp/internal/Exporter.h:31:31: error: invalid conversion from 'SEXP' to 'long long unsigned int' [-fpermissive]
make: *** [RcppExports.o] Error 1
Warning: running command 'make -f "Makevars.win" -f "D:/RCompile/recent/R-3.1.2/etc/x64/Makeconf" -f "D:/RCompile/recent/R-3.1.2/etc/x64/Makevars.site" -f "D:/RCompile/recent/R-3.1.2/share/make/winshlib.mk" -f "C:\Users\CRAN\Documents/.R/Makevars" SHLIB_LDFLAGS='$(SHLIB_CXXLDFLAGS)' SHLIB_LD='$(SHLIB_CXXLD)' SHLIB="fmrmr.dll" WIN=64 TCLBIN=64 OBJECTS="RcppExports.o mrmr.o"' had status 2
g++ -m64 -I"D:/RCompile/recent/R-3.1.2/include" -I"d:/RCompile/CRANpkg/lib/3.1/Rcpp/include" -I"d:/RCompile/CRANpkg/lib/3.1/RcppArmadillo/include" -I"d:/Rcompile/CRANpkg/extralibs215/local215/include" -O3 -Wall -mtune=core2 -c RcppExports.cpp -o RcppExports.o
In file included from d:/RCompile/CRANpkg/lib/3.1/Rcpp/include/Rcpp/as.h:25:0,
from d:/RCompile/CRANpkg/lib/3.1/Rcpp/include/RcppCommon.h:169,
from d:/RCompile/CRANpkg/lib/3.1/RcppArmadillo/include/RcppArmadilloForward.h:26,
from d:/RCompile/CRANpkg/lib/3.1/RcppArmadillo/include/RcppArmadillo.h:30,
from RcppExports.cpp:4:
d:/RCompile/CRANpkg/lib/3.1/Rcpp/include/Rcpp/internal/Exporter.h: In constructor 'Rcpp::traits::Exporter<T>::Exporter(SEXP) [with T = long long unsigned int, SEXP = SEXPREC*]':
d:/RCompile/CRANpkg/lib/3.1/Rcpp/include/Rcpp/as.h:79:51: instantiated from 'T Rcpp::internal::as(SEXP, Rcpp::traits::r_type_generic_tag) [with T = long long unsigned int, SEXP = SEXPREC*]'
d:/RCompile/CRANpkg/lib/3.1/Rcpp/include/Rcpp/as.h:144:84: instantiated from 'T Rcpp::as(SEXP) [with T = long long unsigned int, SEXP = SEXPREC*]'
d:/RCompile/CRANpkg/lib/3.1/Rcpp/include/Rcpp/InputParameter.h:59:55: instantiated from 'Rcpp::ConstInputParameter<T>::ConstInputParameter(SEXP) [with T = long long unsigned int, SEXP = SEXPREC*]'
RcppExports.cpp:19:81: instantiated from here
d:/RCompile/CRANpkg/lib/3.1/Rcpp/include/Rcpp/internal/Exporter.h:31:31: error: invalid conversion from 'SEXP' to 'long long unsigned int' [-fpermissive]
make: *** [RcppExports.o] Error 1
Warning: running command 'make -f "Makevars.win" -f "D:/RCompile/recent/R-3.1.2/etc/x64/Makeconf" -f "D:/RCompile/recent/R-3.1.2/etc/x64/Makevars.site" -f "D:/RCompile/recent/R-3.1.2/share/make/winshlib.mk" -f "C:\Users\CRAN\Documents/.R/Makevars" SHLIB_LDFLAGS='$(SHLIB_CXXLDFLAGS)' SHLIB_LD='$(SHLIB_CXXLD)' SHLIB="fmrmr.dll" WIN=64 TCLBIN=64 OBJECTS="RcppExports.o mrmr.o" symbols.rds' had status 2
ERROR: compilation failed for package 'fmrmr'
* removing 'd:/RCompile/CRANguest/R-release/lib/fmrmr'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment