Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork219
first crack at checking compiler versions from R#474
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
currently limited to g++
JanMarvin commentedMay 14, 2016
intgccver(){return( __GNUC__ *10000 + \ __GNUC_MINOR__ *100 + \ __GNUC_PATCHLEVEL__);} Isn't this what you want? |
eddelbuettel commentedMay 14, 2016
@JanMarvin: Thanks. In fact,@dcdillon made a similar point ("just compile We do actually have some tests in Rcpp already:
so I don't think the last word has been said. Right now it is more about helping usersright at the start of a build process, ie in |
eddelbuettel commentedMay 14, 2016
I'm going to merge this in, it is unlikely to cause harm as it isn't even exported yet. |
jjallaire commentedMay 14, 2016
It would be cool to have a variation of this which could be called from Makevars and which throws an error when the minimum compiler version isn't met. The error would have a nice clear message indicating that the issue is the compiler version. |
eddelbuettel commentedMay 14, 2016 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Certainly. The bigger question really is whether we want
Making the error message nicer/more informative is easy. I was just happy when I realized that I could test |
jjallaire commentedMay 14, 2016
I think that#2 (have folks add a line to Makevars) strikes the best On Sat, May 14, 2016 at 12:27 PM, Dirk Eddelbuettel <
|
eddelbuettel commentedMay 14, 2016
How do you suggest to hook it in? It is not just an expansion as Or expand to something which gets called and remains silent on success but emits loud and clear error messages on failure? |
jjallaire commentedMay 14, 2016
Yeah, I'd say silent on success and loud and clear error messages on On Sat, May 14, 2016 at 12:33 PM, Dirk Eddelbuettel <
|
eddelbuettel commentedMay 14, 2016
I thought about that while going for a run and I am not so sure we can 'break' cleanly there. It is R calling make calling our (Rscript-based ?) snippet. I still think |
currently limited to g++
works reasonably well -- log from my Ubuntu 15.10 box below