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
R installation failing on Cygwin #20655
Comments
Attachment: r-3.2.4-revised.p0.log |
comment:1
Ahahahahah I at least slightly understand better. I was losing my mind because I could not for the life of me find where this error message could be coming from. Turns out it's coming from the GNU |
comment:2
Okay, I think this is a bug in R IMO. R installs a bunch of "scripts" particular to R with names like The problem here is that |
Upstream: Not yet reported upstream; Will do shortly. |
comment:4
I guess on *nix it still has to mark those scripts as executable in order for them to work with Nevertheless the |
comment:5
This adds a patch that is the bare minimum to work around the issue and is essentially harmless. New commits:
|
Author: Erik Bray |
Commit: |
Branch: u/embray/cygwin-r-issue |
Changed upstream from Not yet reported upstream; Will do shortly. to None of the above - read trac for reasoning. |
comment:6
Changed my mind about reporting upstream. According to this issue, and a few others it seems they don't want to officially support Cygwin builds and will close Cygwin issues as wontfix. This is also environment specific. It only affects you if you're building sage on a Cygwin filesystem that is mounted with noacl. So maybe this doesn't affect most users. I still think the patch is worth keeping for the sake of least resistance on trying to build Sage on Cygwin. This was a very mysterious and hard to track down problem. |
comment:7
needs some documentation (in the patch header) |
comment:9
Done! |
comment:10
I was able to build R on cygwin32 using 7.3 without this. Still waiting on my cygwin64. |
comment:11
Also built okay without this patch on cygwin64. Should we close this as wont-fix? |
comment:12
Replying to @tscrim:
This issue only impacts if you're building in a directory mounted with The end result is that setting executable flags may not always work. |
comment:13
So it's something more with the configuration then? I will try rebuilding R with this branch later tonight. |
comment:14
It worries me when executable permissions don't work correctly. I think that false positives ( |
comment:15
It's not really a problem in the shell so much. Cygwin relies on a lot more than the |
comment:16
So then should we consider merging this ticket Jeroen? I'm not sure what changing |
comment:17
I having nothing against adding this patch to R. I am only saying that it's an ugly workaround and not really a fix. Just one thing: the patch is missing documentation. At the very least, it should refer to this Trac ticket. |
Work Issues: patch description |
comment:19
Replying to @jdemeyer:
No disagreement there. And really what it's working around is a shortcoming in Cygwin. If you prefer, it could be a Cygwin-only patch. It's just there's no real reason that the patched line strictly needs to |
Branch pushed to git repo; I updated commit sha1. New commits:
|
New commits:
|
comment:22
If this works for you... |
Changed work issues from patch description to none |
Reviewer: Jeroen Demeyer |
comment:23
I guess this is the real bug. |
comment:24
Replying to @jdemeyer:
Yes and no. I think the real bug is that it requires them to be executable, because the way those particular scripts are invoked, IIRC, is by sourcing them from an actual executable. In other words, they shouldn't be considered executables in their own right in the first place. Otherwise yes, I agree they should have a shebang line. |
Changed branch from u/embray/cygwin-r-issue to |
When running a
make
of Sage on Cygwin the build fails upon installation of R. I will attach the full log, but the relevant error is:--pkglock
is an argument to theINSTALL
script for installing R packages. But it seems it's been passed in as literally-- pkglock
(with a space). Not sure why.This issue also raises the question again about whether to make R an optional package (as well as whether to allow Sage to use a system install of R).
Upstream: None of the above - read trac for reasoning.
Component: porting: Cygwin
Keywords: windows cygwin R
Author: Erik Bray
Branch/Commit:
b2ebe0b
Reviewer: Jeroen Demeyer
Issue created by migration from https://trac.sagemath.org/ticket/20655
The text was updated successfully, but these errors were encountered: