-
Notifications
You must be signed in to change notification settings - Fork 80
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
strmode not found in cygwin #329
Comments
I'm also having this exact issue as well. Basically everywhere I try to install |
Get source code of 'fs' from CRAN Extract the source
Edit /tmp/fs/src/Makevars to replace
with
Build manually and install
|
cygwin is not a platform that we support out of the box, but if you have a patch I will consider it. |
This patch fixes the Cygwin problem (tested fs 1.5.2). It just adds the check for CYGWIN in uname after the Linux and friends check fails. It is the very last check in Makevars before the rules.
|
@georgedemmy Thanks! Would you like to submit a PR? (No pressure. :)) |
Done! |
I see at the end of
#145
that a fix for “conflicting types for 'strmode'” was checked in at
18f93ac
and it appears to be committed into 1.5.0. So what I expect:
install.packages(“fs”)
installs fs correctly on Cygwin. What I get instead:
: Selection: 75
: trying URL 'https://ftp.osuosl.org/pub/cran/src/contrib/fs_1.5.0.tar.gz'
: Content type 'application/x-gzip' length 796244 bytes (777 KB)
: ==================================================
: downloaded 777 KB
…
: /tmp/RtmpekZitb/R.INSTALL594291a2fb2/fs/src/unix/getmode.cc:32:(.text+0x77):
: relocation truncated to fit: R_X86_64_PC32 against undefined symbol
: `strmode'
:
: collect2: error: ld returned 1 exit status
: make: *** [/usr/lib/R/share/make/shlib.mk:6: fs.dll] Error 1
: ERROR: compilation failed for package ‘fs’
: * removing ‘/usr/lib/R/site-library/fs’
Can you help? This has been blocking me from using R on Cygwin for many moons.
Thank you,
Background:
:
:
: setmode isn't a standard library function; it's a libbsd
: function. That's only the same thing on BSD-derived systems like OS X,
: which that man page is from. Pass the -lbsd argument to get the linker
: to find it on Linux.
(https://stackoverflow.com/questions/15608116/gnu-undefined-reference-to-setmode)
I also tried this:
: install.packages('fs',repos='http://cran.us.r-project.org')
James Powell, Ph.D. Candidate
NRS3 MOVES Modeler, Air Technical Services
Oregon Department of Environmental Quality
700 NE Multnomah St. Suite 600, Portland OR 97212
Phone: 503-235-3679
Email: James.Powell (at) deq.state.or.us
Pronouns: him/his
The text was updated successfully, but these errors were encountered: