[Rcpp-devel] Cannot install Rcpp 0.8.6 under R 2.11.0 or R 3.0.0 in Ubuntu 12.10

Kirill Müller kirill.mueller at ivt.baug.ethz.ch
Mon Apr 8 15:07:17 CEST 2013


Hi

I cannot install Rcpp 0.8.6 from source in Ubuntu 12.10. Installation 
fails with the message appended below. The error is similar for R 2.11.0 
and R 3.0. What am I doing wrong?

I'd like to build a test environment with R 2.11.0 and a corresponding 
version of Rcpp. Thank you for your help.


Cheers

Kirill


 > install.packages('~/Downloads/Rcpp_0.8.6.tar.gz')
Installing package into ‘/home/.../R/x86_64-pc-linux-gnu-library/3.0’
(as ‘lib’ is unspecified)
inferring 'repos = NULL' from the file name
* installing *source* package ‘Rcpp’ ...
** libs
g++ -I/usr/share/R/include -DNDEBUG -I../inst/include/ -fpic -O3 -pipe 
-g -c Date.cpp -o Date.o
In file included from ../inst/include/Rcpp/grow.h:47:0,
from ../inst/include/Rcpp/Function.h:27,
from Date.cpp:29:
../inst/include/Rcpp/generated/grow__pairlist.h: In instantiation of 
‘SEXPREC* Rcpp::pairlist(const T1&, const T2&, const T3&) [with T1 = 
std::basic_string<char>; T2 = std::basic_string<char>; T3 = char [4]; 
SEXP = SEXPREC*]’:
../inst/include/Rcpp/generated/Function__operator.h:45:72: required from 
‘SEXPREC* Rcpp::Function::operator()(const T1&, const T2&, const T3&) 
[with T1 = std::basic_string<char>; T2 = std::basic_string<char>; T3 = 
char [4]; SEXP = SEXPREC*]’
Date.cpp:56:44: required from here
../inst/include/Rcpp/generated/grow__pairlist.h:45:54: error: ‘grow’ was 
not declared in this scope, and no declarations were found by 
argument-dependent lookup at the point of instantiation [-fpermissive]
In file included from ../inst/include/Rcpp/Function.h:27:0,
from Date.cpp:29:
../inst/include/Rcpp/grow.h:75:6: note: ‘template<class T> SEXPREC* 
Rcpp::grow(const T&, SEXP)’ declared here, later in the translation unit
In file included from ../inst/include/Rcpp/grow.h:47:0,
from ../inst/include/Rcpp/Function.h:27,
from Date.cpp:29:
../inst/include/Rcpp/generated/grow__pairlist.h:45:54: error: ‘grow’ was 
not declared in this scope, and no declarations were found by 
argument-dependent lookup at the point of instantiation [-fpermissive]
In file included from ../inst/include/Rcpp/Function.h:27:0,
from Date.cpp:29:
../inst/include/Rcpp/grow.h:75:6: note: ‘template<class T> SEXPREC* 
Rcpp::grow(const T&, SEXP)’ declared here, later in the translation unit
In file included from ../inst/include/Rcpp/grow.h:47:0,
from ../inst/include/Rcpp/Function.h:27,
from Date.cpp:29:
../inst/include/Rcpp/generated/grow__pairlist.h:45:54: error: ‘grow’ was 
not declared in this scope, and no declarations were found by 
argument-dependent lookup at the point of instantiation [-fpermissive]
In file included from ../inst/include/Rcpp/Function.h:27:0,
from Date.cpp:29:
../inst/include/Rcpp/grow.h:75:6: note: ‘template<class T> SEXPREC* 
Rcpp::grow(const T&, SEXP)’ declared here, later in the translation unit
make: *** [Date.o] Error 1
ERROR: compilation failed for package ‘Rcpp’
* removing ‘/home/.../R/x86_64-pc-linux-gnu-library/3.0/Rcpp’
Warning message:
In install.packages("~/Downloads/Rcpp_0.8.6.tar.gz") :
installation of package ‘/home/.../Downloads/Rcpp_0.8.6.tar.gz’ had 
non-zero exit status



More information about the Rcpp-devel mailing list