-
Notifications
You must be signed in to change notification settings - Fork 59
Cannot install RccpParallel #189
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
You need to use a less old operating system, or at least provide it with more recent compilers -- which you can do via something called |
Thanks for your response. Could you share what the minimum version requirements are for OS and compilers? This will help me communicate with the IT department which has sudo privileges. |
I think the devtoolsset for CentOS 7 gets you gcc/g++ 8.* which should be good enough. CRAN uses newer versions (10 and later). Also note that your R version is also two years behind so you may get other trouble from other packages. |
For reference, the relevant error:
But that flag should only be turned on if using gcc 6 or newer: RcppParallel/src/tbb/build/linux.gcc.inc Lines 60 to 65 in c5d3b57
It looks like the R-related files are being compiled using gcc 7:
But, for whatever reason, TBB itself is seeing (and using) the "system" gcc installation:
Can you share the output of:
I wonder if we're somehow failing to pass along the right path to the C++ compiler to TBB here. |
That's a very good observation. It's been a few years since I saw a devtoolset-enhance CentOS but I also recall that a) these are installed off the path and b) require sourcing a shell script to 'activate' and so c) may not be found in R's own compile time config as R may not have been recompiled. |
Below are the outputs:
I also tried installing RccpParallel using the most recent R installation we have on our system, which is R-4.1.0, and I am seeing the same errors there as well. |
I think this explains it:
|
I've now installed your tool successfully! I did exactly what you suggested and changed the path on
Thank you both for taking the time to help me solve the problem! |
Thanks to you for persevering! Turns out your IT folks did try to help and had a newer compiler, but one went astray. One thing I find helps is to not just 'fail' at the top-level (in your case via remotes) but to try to run |
Hello,
I've tried to install your package from github using
devtools::install_github("RcppCore/RcppParallel")
and from CRAN, but neither method has worked for me. Do you have any suggestions for how I could troubleshoot this?I've listed my R version and machine used as well as the error message below.
Thank you in advance!
Yuka
R version/ Machine used:
R version 4.0.2 (2020-06-22)
Platform: x86_64-centos7-linux-gnu (64-bit)
Running under: CentOS Linux 7 (Core)
Error message:
The text was updated successfully, but these errors were encountered: