Rcpp: Compilation failed for package ‘Rcpp’

Created on 5 Jun 2021  Â·  4Comments  Â·  Source: RcppCore/Rcpp

Seeing compilation errors while trying to install Rcpp, below are the details of the environment. It will be great if someone could guide me to resolve it please.

Package being tried to install Rcpp_0.12.15.tar.gz
Command used to install R CMD INSTALL Rcpp_0.12.15.tar.gz
OS Red Hat Enterprise Linux release 8.3 (Ootpa)
R version R version 3.4.3 (2017-11-30) -- "Kite-Eating Tree"
gcc version gcc (GCC) 8.3.1 20191121 (Red Hat 8.3.1-5)
Attaching the error if in case required, there were multiple errors so not sure which one would best fit on the body here.
output.txt

All 4 comments

Did you _read_ the template we present before you added your hundreds of lines of output?

/usr/include/bits/local_lim.h:87:1: error: ‘define’ does not name a type; did you mean ‘rewind’?

 define TTY_NAME_MAX  256
 ^~~~~~
 rewind

This error make me think your system headers are messed up somehow. There should be a # before the define.

Seems not to be an Rcpp issue.

Disclaimer: 25+ user and contributor to Debian. I know _very little_ about RHEL and CentOS.

But I just installed the default centos:8 Docker image and bumbled my way around two google searches, The RStudio page on installation was helpful. And in short ... "it just worked". Briefly edited from my bash history:

dnf install epel-release
dnf install dnf-plugins-core     # because something else wanted config-manager
curl -O https://cdn.rstudio.com/r/centos-8/pkgs/R-4.0.5-1-1.x86_64.rpm
yum install R-4.0.5-1-1.x86_64.rpm
/opt/R/4.0.5/bin/R -q -e 'install.packages("Rcpp", repos="https://cloud.r-project.org")'

at which point I had R and Rcpp on CentOS 8 so I am going to close this now. If you can actually find something reproducible that is a bug in our package --always possible, happened often enough -- then please reopen and let us know but as Kevin just noted this looks more like it is in your court.

Edit: You didn't exactly motivate why you wanted an old version of Rcpp, but those should install the exact same way

thanks all we will check our env.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

steve-s picture steve-s  Â·  4Comments

sgsokol picture sgsokol  Â·  7Comments

krlmlr picture krlmlr  Â·  9Comments

jgellar picture jgellar  Â·  8Comments

kevinushey picture kevinushey  Â·  6Comments