-
Notifications
You must be signed in to change notification settings - Fork 5
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
INSTALLATION: Requires gcc (> 4.8.5) - compiles with gcc 5.3.1 (useful for RHEL/CentOS users) #13
Comments
Hello @HenrikBengtsson, Thanks for reporting this. I will add this to the DESCRIPTION file in the next release. Joseph |
+1 feel free to close when ever you like |
Hello @HenrikBengtsson, I want to make sure I do this right, so I scoured all 15000+ packages on CRAN with the I wanted to get your opinion on what the best approach is. With the
Thanks, |
Wow, that's an impressive scan. I don't know what's best - you might want to reach out on the r-pkg-devel mailing list - but using "A modern compiler (e.g. gcc (>= 4.9))" looks like a good template. It avoids suggesting that one has to use The only thing that complicates how to phrase it is the fact that we don't know the lower version limit, only that gcc 4.8.5 is not enough an gcc 5.3.1 works. Using If it gets too wordy, one could add an |
@HenrikBengtsson, I really appreciate your feedback. I forgot to mention the additional research I did that led me to saying at least gcc version 4.9. First off, I went straight to Writing R Extensions and didn't find anything promising. I then found a couple of post that talked about version 4.8 in regards to C++11 compatibility. Here is a good one with a very simple reproducible example that backs up the claim that 4.8.x isn't C++11 complete: Is GCC 4.8.1 C++11 complete?. This site has some interesting information as well: https://gcc.gnu.org/projects/cxx-status.html. Anywho, I will definitely reach out to the r-pkg-devel mailing list. In the meantime I will leave this open. Again, thanks for your help! |
I took your advice and added an INSTALL.md file with the relevant information. Thanks again for your help. Joseph |
Just wanna mention that RcppAlgos requires something newer than gcc 4.8.5 (see error below), which is the default on the RHEL/CentOS 7 distro. I've confirmed that gcc 5.3.1 is sufficient.
Maybe you could add a note on this in the DESCRIPTION file? It'll help people on RHEL/CentOS.
With
RedHat/CentOS users: If you're on RHEL/CentOS and have CentOS Software Collections (SCL) installed - check with
scl --list
, you can compile RcppAlgos using one of them. This is what I did on an up-to-date CentOS 7 distro:The error you get with gcc 4.8.5 is:
The text was updated successfully, but these errors were encountered: