From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 128231 invoked by alias); 22 Jun 2017 20:01:22 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 128021 invoked by uid 89); 22 Jun 2017 20:01:20 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.2 required=5.0 tests=AWL,BAYES_50,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,FREEMAIL_REPLYTO_END_DIGIT,GIT_PATCH_2,RCVD_IN_DNSWL_NONE,SPF_PASS,T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 spammy=H*x:6.1, H*x:Mozilla, H*x:Gecko, H*r:sk:sonic.g X-HELO: sonic317-1.consmr.mail.ne1.yahoo.com Received: from sonic317-1.consmr.mail.ne1.yahoo.com (HELO sonic317-1.consmr.mail.ne1.yahoo.com) (66.163.184.228) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 22 Jun 2017 20:01:15 +0000 Received: from sonic.gate.mail.ne1.yahoo.com by sonic317.consmr.mail.ne1.yahoo.com with HTTP; Thu, 22 Jun 2017 20:01:13 +0000 Date: Thu, 22 Jun 2017 20:01:00 -0000 From: "Ian Lambert via cygwin" Reply-To: Ian Lambert Reply-To: Ian Lambert To: "cygwin@cygwin.com" Cc: Message-ID: <609771492.1632666.1498161432148@mail.yahoo.com> Subject: libuv uv__io_poll or uv__poll_io R tolerance, giving me uv polio, help? MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable References: <609771492.1632666.1498161432148.ref@mail.yahoo.com> X-IsSubscribed: yes X-SW-Source: 2017-06/txt/msg00275.txt.bz2 Can someone please help with getting libuv to compile, as part of: $ R CMD /usr/lib/R/bin/INSTALL -l /usr/lib/R/site-library httpuv_1.3.3[mod= ].tar.gz I think I may have stumbled across a bug in the libuv core.c and/or interna= l.h source, but I'm not sure. From a search of the maillist, I know libuv may n= ot be fully compatible, but why not try... https://cygwin.com/ml/cygwin/2015-12/msg00023.html https://sourceware.org/ml/cygwin/2016-08/msg00322.html Goal: Install and run R tolerance package on cygwin (or windos). Roadblocks:=20 Corporate approved windos R, version 3.1.1 (2014-07-10) -- "Sock it to Me": Will not install tolerance package, Error: This is R 3.1.1, package =E2= =80=98tolerance=E2=80=99 needs >=3D 3.2.0 Newer downloaded windos R, version 3.4.0 (2017-04-21) -- "You Stupid Darkne= ss" Cannot access internet within R (proxy issues as always), so it requires downloading and individually installing and loading about 2 dozen other= =20 prerequisite packages supporting tolerance. This may be the fall-back. More details: In Cygwin, CYGWIN_NT-6.1 2.8.0(0.309/5/3) 2017-04-01 20:47 x86_64 Cygwin $ R --version R version 3.4.0 (2017-04-21) -- "You Stupid Darkness" So, like a good (or bad) cygwin soldier, I've downloaded and done the insta= ll as in the R CMD command above, for the following packages: config/ crayon/ digest/ evaluate/ highr/ htmltools/ htmlwidgets/ jsonlite/ knitr/ magrittr/ markdown/ mime/ praise/ R6/ Rcpp/ sourcetools/ stringi/ stringr/ testthat/ xtable/ yaml/ However, this still leaves tolerance, which needs rgl, which needs shiny,=20 which needs hpuv, and this is where I am stuck. $ R CMD /usr/lib/R/bin/INSTALL -l /usr/lib/R/site-library tolerance_1.3.0.= tar.gz=20 ERROR: dependency =E2=80=98rgl=E2=80=99 is not available for package =E2=80= =98tolerance=E2=80=99 $ R CMD /usr/lib/R/bin/INSTALL -l /usr/lib/R/site-library rgl_0.98.1.tar.gz= =20 ERROR: dependency =E2=80=98shiny=E2=80=99 is not available for package =E2= =80=98rgl=E2=80=99 $ R CMD /usr/lib/R/bin/INSTALL -l /usr/lib/R/site-library shiny_1.0.3.tar.= gz=20 ERROR: dependency =E2=80=98httpuv=E2=80=99 is not available for package =E2= =80=98shiny=E2=80=99 So..... $ R CMD /usr/lib/R/bin/INSTALL -l /usr/lib/R/site-library httpuv_1.3.3 gcc -D_GNU_SOURCE -I/tmp/Rtmp5WsS2T/R.INSTALL2214f28b836/httpuv/src/libuv/i= nclude - I/tmp/Rtmp5WsS2T/R.INSTALL2214f28b836/httpuv/src/libuv/include/uv-private - I/tmp/Rtmp5WsS2T/R.INSTALL2214f28b836/httpuv/src/libuv/src -D_LARGEFILE_SOU= RCE - D_FILE_OFFSET_BITS=3D64 -ggdb -O2 -pipe -Wimplicit-function-declaration -st= d=3Dgnu99 -fdebug- prefix-map=3D/cygdrive/e/cyg_pub/devel/R/R-3.4.0-1.x86_64/build=3D/usr/src/= debug/R-3.4.0-1 - fdebug-prefix-map=3D/cygdrive/e/cyg_pub/devel/R/R-3.4.0-1.x86_64/src/R-3.4.= 0=3D/usr/src/debug/R- 3.4.0-1 -c src/unix/core.c -o src/unix/core.o src/unix/core.c: In function =E2=80=98uv_run=E2=80=99: src/unix/core.c:317:5: warning: implicit declaration of function =E2=80=98u= v__poll_io=E2=80=99 [-Wimplicit- function-declaration] uv__poll_io(loop, timeout); ^ Looking at the source, it seems there may be confusion on ordering of poll = and io, or I don't understand the need for both uv__poll_io and uv__io_poll, but so= mething=20 is wrong, and both are currently used: $ grep -i uv__poll_io * poll.c:static void uv__poll_io(uv_loop_t* loop, uv__io_t* w, unsigned int e= vents) { poll.c: uv__io_init(&handle->io_watcher, uv__poll_io, fd); $ grep -i uv__io_poll * core.c: uv__io_poll(loop, timeout); internal.h:void uv__io_poll(uv_loop_t* loop, int timeout); /* in millisecon= ds or -1 */ kqueue.c:void uv__io_poll(uv_loop_t* loop, int timeout) { linux-core.c:void uv__io_poll(uv_loop_t* loop, int timeout) { sunos.c:void uv__io_poll(uv_loop_t* loop, int timeout) { So, I've tried 2 changes, changing uv__io_poll to uv__poll_io, but neither = has fixed it: $ diff core.c /tmp/2nd/httpuv/src/libuv/src/unix/core.c 317c317 < uv__io_poll(loop, timeout); --- > uv__poll_io(loop, timeout); $ diff core.c /tmp/3rd/httpuv/src/libuv/src/unix/core.c 317c317 < uv__io_poll(loop, timeout); --- > uv__poll_io(loop, timeout); $ diff internal.h /tmp/3rd/httpuv/src/libuv/src/unix/internal.h=20 127c127 < void uv__io_poll(uv_loop_t* loop, int timeout); /* in milliseconds or -1 = */ --- > void uv__poll_io(uv_loop_t* loop, int timeout); /* in milliseconds or -1 = */ and the latest error is as follows: $ R CMD /usr/lib/R/bin/INSTALL -l /usr/lib/R/site-library httpuv_1.3.3y.ta= r.gz gcc -D_GNU_SOURCE -I/tmp/RtmpQa0A69/R.INSTALL2b94587184b0/httpuv/src/libuv/= include -I/tmp/RtmpQa0A69/R.INSTALL2b94587184b0/httpuv/src/libuv/include/uv= -private -I/tmp/RtmpQa0A69/R.INSTALL2b94587184b0/httpuv/src/libuv/src -D_LA= RGEFILE_SOURCE -D_FILE_OFFSET_BITS=3D64 -ggdb -O2 -pipe -Wimplicit-function= -declaration -std=3Dgnu99 -fdebug-prefix-map=3D/cygdrive/e/cyg_pub/devel/R/= R-3.4.0-1.x86_64/build=3D/usr/src/debug/R-3.4.0-1 -fdebug-prefix-map=3D/cyg= drive/e/cyg_pub/devel/R/R-3.4.0-1.x86_64/src/R-3.4.0=3D/usr/src/debug/R-3.4= .0-1 -c src/unix/poll.c -o src/unix/poll.o src/unix/poll.c:30:13: error: conflicting types for =E2=80=98uv__poll_io=E2= =80=99 static void uv__poll_io(uv_loop_t* loop, uv__io_t* w, unsigned int events)= { ^ In file included from src/unix/poll.c:23:0: src/unix/internal.h:127:6: note: previous declaration of =E2=80=98uv__poll_= io=E2=80=99 was here void uv__poll_io(uv_loop_t* loop, int timeout); /* in milliseconds or -1 */ ^ make[1]: *** [/tmp/RtmpQa0A69/R.INSTALL2b94587184b0/httpuv/src/libuv/config= -unix.mk:189: src/unix/poll.o] Error 1 make[1]: Leaving directory '/tmp/RtmpQa0A69/R.INSTALL2b94587184b0/httpuv/sr= c/libuv' make: *** [Makevars:27: libuv.a] Error 2 ERROR: compilation failed for package =E2=80=98httpuv=E2=80=99 * removing =E2=80=98/usr/lib/R/site-library/httpuv=E2=80=99 Is the fix obvious to someone?=20 Thanks! -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple