-
Notifications
You must be signed in to change notification settings - Fork 6
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
Cannot build CRAN version on Archlinux #14
Comments
The report says that the The report says that the C++ compiler cannot create files (presumably because it does not have permission). |
I understand this, but there is no |
I have no idea. Try manually downloading the polyclip tar file and manually installing it. |
I installed Here is the install output:
Feel free to close if you want to. |
Same issue on Ubuntu 18.04, but does not work with 'sudo R'. |
This is not quite the same issue, because it is not fixed by using Does the error message say "C++ compiler cannot create executables"? If so, then this problem is not caused by the |
I don't understand where it's failing, as other packages compile nice. And I tested this lignes in R, and it worked...so I guess you can close it now. I really don't understand how, but as it works \o/
|
@gowachin Just out of curiosity can you install other packages that compile C++ code from source without problems? E.g.
|
@rubak It works without problems |
This is quite strange. And you say it also works without any problems when you use
|
It works with
I don't know a lot a stuff about R, but yeah, really strange. |
I've got the same behavior as gowachin, plus a minor observation. Running this on 18.04 Ubuntu, I can't install via Downloading, un-compressing the package to a The error appears to come from the |
I got the same problem when I try to install
|
Just had this problem running ArchLinux as well. |
I have the same issue when trying to install the package on Debian 10. |
Same issue on Fedora 32.
|
It would be great if someone was able to provide a reproducible example in a docker container, so we could investigate further. |
@rubak try this
then from the MRO (it's already launched MRO from the command above), run
|
Thanks @ismailsunni. Is it also reproducible with GNU-R? I expect it is easier to get help from the mailing lists that way. |
hi @rubak |
@rubak I had the same issue on Archlinux, and found at least one cause. Your configure script hard-codes the C++ compiler to g++ and over-rides any local preferences for clang. But the initial .. .But that's not the only fix that'll be necessary, because the whole configure is also hard-coded for CXX11, which will not be acceptable for latest CRAN policies, so the entire configure setup will need to be updated. Hope that helps!! SolutionEnsure local compiler options (for example, set via
Thanks for trying so hard over so many years to investigate these issues - really appreciate the effort! |
Thanks a lot for that explanation @mpadge 👍 |
... not necessarily. The devtools workflows are complicated in the way they respect local compiler flags. I suspect also that your configure is entirely overwriting local flags, which devtools does not generally do. More generally, i suspect all issues can be traced back to compilers and/or compiler flags set or overwritten in your configure script. |
Great. That sounds promising. Hopefully this could then solve the issue completely. Thanks again for pointing it out. |
@mpadge thank you very much for your advice. |
It seems I cannot build the latest version of
polyclip
from CRAN:All other packages get built properly, do you have any idea why this version cannot compile? My system (ArchLinux) is up to date, using
gcc 8.2.1+20181127-1
.EDIT: cannot build GH version either:
The text was updated successfully, but these errors were encountered: