[Rcpp-devel] Problem installing Rcpp version 0.12.2 on Ubuntu 12.04 LTS
Pierre Lafaye de Micheaux
lafaye at dms.umontreal.ca
Sat Jan 9 19:18:22 CET 2016
Dear all,
I tried to install roxygen2 and got an error at compilation time. So I
tried first to install the last version of Rcpp but it failed (see below).
lafaye at XPS13UdeM:~$ R --version
R version 3.2.0 (2015-04-16) -- "Full of Ingredients"
Copyright (C) 2015 The R Foundation for Statistical Computing
Platform: x86_64-unknown-linux-gnu (64-bit)
lafaye at XPS13UdeM:~$ g++ --version
g++ (Ubuntu 4.9.2-0ubuntu1~12.04) 4.9.2
lafaye at XPS13UdeM:~$ sudo R CMD INSTALL Rcpp_0.12.2.tar.gz
* installing to library ‘/home/lafaye/R/x86_64-pc-linux-gnu-library/3.2’
* installing *source* package ‘Rcpp’ ...
** package ‘Rcpp’ correctement décompressé et sommes MD5 vérifiées
** libs
g++ -I/usr/share/R/include -DNDEBUG -I../inst/include/ -fpic -g -O2
-fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security
-Werror=format-security -D_FORTIFY_SOURCE=2 -g -c Date.cpp -o Date.o
g++ -I/usr/share/R/include -DNDEBUG -I../inst/include/ -fpic -g -O2
-fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security
-Werror=format-security -D_FORTIFY_SOURCE=2 -g -c Module.cpp -o Module.o
Module.cpp:29:20: error: ‘CppFunctionBase’ is not a member of ‘Rcpp’
typedef Rcpp::XPtr<Rcpp::CppFunctionBase> XP_Function;
^
Module.cpp:29:20: error: ‘CppFunctionBase’ is not a member of ‘Rcpp’
Module.cpp:29:41: error: template argument 1 is invalid
typedef Rcpp::XPtr<Rcpp::CppFunctionBase> XP_Function;
^
Module.cpp:29:41: error: template argument 3 is invalid
Module.cpp:29:54: error: invalid type in declaration before ‘;’ token
typedef Rcpp::XPtr<Rcpp::CppFunctionBase> XP_Function;
^
Module.cpp: In function ‘SEXPREC* InternalFunction_invoke(SEXP)’:
Module.cpp:120:23: error: invalid conversion from ‘SEXP’ to ‘XP_Function
{aka int}’ [-fpermissive]
XP_Function fun(CAR(p)); p = CDR(p);
^
Module.cpp:122:12: error: base operand of ‘->’ is not a pointer
return fun->operator()(cargs);
^
make: *** [Module.o] Erreur 1
ERROR: compilation failed for package ‘Rcpp’
* removing ‘/home/lafaye/R/x86_64-pc-linux-gnu-library/3.2/Rcpp’
I have no idea on what goes wrong but I hope you could give some clue on
what I could do?
Many thanks in advance.
Best regards,
Pierre L.
--
Pierre Lafaye de Micheaux
Adresse courrier:
Université de Montréal
Pavillon André-Aisenstadt
Département de Mathématiques et Statistique
CP 6128 Succursale Centre-ville
Montréal Qc H3C 3J7
CANADA
Adresse physique:
Département de Mathématiques et Statistique
Bureau 4249, Pavillon André-Aisenstadt
2920, chemin de la Tour
Montréal, Québec H3T 1J4
CANADA
Tél.: (00-1) 514-343-6607 / Fax: (00-1) 514-343-5700
lafaye at dms.umontreal.ca
http://www.biostatisticien.eu
More information about the Rcpp-devel
mailing list