delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2023/12/01/18:25:19

X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B9377385DC1D
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1701473117;
bh=UG1EkPSbwdEteFDurxGWIP/ZDAkDRkTuMkc2rZRmbBY=;
h=References:In-Reply-To:Date:Subject:To:Cc:List-Id:
List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe:
From:Reply-To:From;
b=t+MjimcBuYFmbRkoKUbJdHhnYr+6Am0l4wU3CXxw+RJERRyDoXnRVwcBq9ZKrLwcN
3DK3n5UHyclerJvC8AT5B/WVeJyshLXomTL09KBUL9ibNT+EgI34W6KqoPjEC0YTox
5V5jlXVeVjiznrX/tnOE8tv6qplxit12xzvv+WhA=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 7C8043858C29
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 7C8043858C29
ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1701473102; cv=none;
b=MhSG83wpZ35GnmbaLob2+r1Xo+tA3eZ9YWxRsCAuAF0gY/kcsxxiqixQk4pRWa112s1mGLbQkf9JW8xg2Bto7OVrfsXHZ9fU63EfPKSyp6kq8tjFB+CVs6rWbSR/EYioykK9KtYJWRJiYwyqtwpwzEUWA+8gQ1m67w8MCD4DJDw=
ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key;
t=1701473102; c=relaxed/simple;
bh=u+c4kDpzFaG4eGVFwHsajITOkQYJicZsb1JB5WImGac=;
h=DKIM-Signature:MIME-Version:From:Date:Message-ID:Subject:To;
b=EWipafv6bAWhVTrbpBFiNV4e0nrsx0fpoXpsq7KaMQivG7gTGCJF5jE8WU76Fv5TUyV0jwfkvgs9BAuohvksDHuVBaX4L2e3lLZlBRDkUk6lNXgQpRE1cZdTomoadmW0V2nEh1pFqVp/GJhkpdthD3rhzqGawNBmYx8hM/kYVEQ=
ARC-Authentication-Results: i=1; server2.sourceware.org
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20230601; t=1701473098; x=1702077898;
h=cc:to:subject:message-id:date:from:in-reply-to:references
:mime-version:x-gm-message-state:from:to:cc:subject:date:message-id
:reply-to;
bh=dBiYinuQ/dZFpEEr1xSw9eUbMHd2YQHe0awokYmqHic=;
b=e3czhKgVhpHLIBs1qtVubbEPeSxfxAzzTy7saNrRhxw49nnT06g/2AV3+I9WkFXkQs
+7iDidBSM9OvTVkQsmpqu/CVFTeAR69kEeXBkHXkD9AB39fWoLVJFQfqvFoWcd3mWiqV
LTGGFNbYAhyi6j9/j0IHsDoyURT3ha9InntZwH4UDOJjj7OV0zH3NUCsz6QYmVP6gFPH
KePJe+N4+lwALVrOZLHujeDnh1nZT8a+muUb5eqUTrrpBckNVvSO5H+E+9xtqCILuFei
r5d1ltp2J9u3eioYPX997JWWEdMT+QSEhFjHpGQBu8axCjTwO6kQEvRu3fBVZN8K6X44
g1yQ==
X-Gm-Message-State: AOJu0YxeeFMnSsJ/DfsUcDwc2y9UmoUUwtf95O9ffCyeab888/37LCtP
26FVYnvLt1CtL82HTtO0RPK5q2ouOLoVmZ/Ibcwimqv2cI0ninXRIwA=
X-Google-Smtp-Source: AGHT+IHi0NObDww0Ue4U+TeA/r+gWJI9pQMTlvmnSArKQxPMk65/bMzfK42VZTLLROxbcQu/ZWfoZNxJmGxxACbHVDs=
X-Received: by 2002:a50:d651:0:b0:54c:4fec:f1 with SMTP id
c17-20020a50d651000000b0054c4fec00f1mr597726edj.128.1701473097932;
Fri, 01 Dec 2023 15:24:57 -0800 (PST)
MIME-Version: 1.0
References: <CAKEdzNLhEZ8-Fm2DM0HBodHgjFtyHUy3XaRQSGTEQrQy96NnnQ AT mail DOT gmail DOT com>
<ce44ddcd-3190-4398-ad1d-ef4bac7dcfcd AT gmail DOT com>
In-Reply-To: <ce44ddcd-3190-4398-ad1d-ef4bac7dcfcd@gmail.com>
Date: Fri, 1 Dec 2023 15:24:46 -0800
Message-ID: <CAKEdzN+1kZS1JOwCuVQ9B=ZLg037EU3wAzB9jp2AgeEHYo1Ctw@mail.gmail.com>
Subject: Re: R library() bug
To: Marco Atzeri <marco DOT atzeri AT gmail DOT com>
Cc: "cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com>
X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00, DKIMWL_WL_MED,
DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, HTML_MESSAGE,
RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP,
T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6
X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on
server2.sourceware.org
X-Content-Filtered-By: Mailman/MimeDel 2.1.30
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.30
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
From: Stephen P Carrier via Cygwin <cygwin AT cygwin DOT com>
Reply-To: Stephen P Carrier <carrier AT berkeley DOT edu>
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com>
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 3B1NPJUd024635

On Tue, Nov 28, 2023 at 8:32 PM Marco Atzeri <marco DOT atzeri AT gmail DOT com> wrote:

> On 29.11.2023 02:12, Stephen P Carrier via Cygwin wrote:
> > I have found another issue with Cygwin R.
> >
> > This is for a brand new R installation (4.3.0) on up-to-date Cygwin.  I
> am
> > warned when starting R that "stats" package was not found.  Though it was
> > just a warning I do need the stats package for some things.
> >
> > Minimal test case:  I invoke "R" with no arguments and get:
> >
> > -----
> > R version 4.3.0 (2023-04-21) -- "Already Tomorrow"
> > Copyright (C) 2023 The R Foundation for Statistical Computing
> > Platform: x86_64-pc-cygwin (64-bit)
> >
> > R is free software and comes with ABSOLUTELY NO WARRANTY.
> > You are welcome to redistribute it under certain conditions.
> > Type 'license()' or 'licence()' for distribution details.
> >
> > R is a collaborative project with many contributors.
> > Type 'contributors()' for more information and
> > 'citation()' on how to cite R or R packages in publications.
> >
> > Type 'demo()' for some demos, 'help()' for on-line help, or
> > 'help.start()' for an HTML browser interface to help.
> > Type 'q()' to quit R.
> >
> > During startup - Warning message:
> > package ‘stats’ in options("defaultPackages") was not found
> >> library("stats")
> > Error: package or namespace load failed for ‘stats’ in dyn.load(file,
> > DLLpath = DLLpath, ...):
> >   unable to load shared object '/usr/lib/R/library/stats/libs/stats.dll':
> >    No such file or directory
> > -----
> >
> > However, the file /usr/lib/R/library/stats/libs/stats.dll is very much a
> > file that exists and is readable by the user running R.  I've looked over
> > file and folder permissions and don't see an issue.  Other packages in
> > options('defaultPackages') load without difficulty.
> >
> > Could the maintainer have a look?  Thanks.
> >
> > --Stephen Carrier
> >
>
> Can you share as attachment the cygcheck.out ?
>
> https://www.cygwin.com/problems.html
>
> Run
>     "cygcheck -s -v -r > cygcheck.out"
> and include that file as an attachment in your report. Please do not
> compress or otherwise encode the output. Just attach it as a straight
> text file so that it can be easily viewed.
>


I was able to reproduce on a different windows machine which is more
convenient for me to troubleshoot on, so I'll send along a new
cygcheck2.out to capture the few differences between the systems.

I ran R under strace and R does find the "missing" file and tries to load
it, immediately unloads it, and reports an error that seems to come from
newlib.

I think there may be a problem in newlib or in the way R tries to use
newlib?  (or, Windows is changing things again.)  Fixing something like
this is beyond my abilities.  I hope this report is useful.

I am attaching cygcheck2.out and also strace2_select.out, a selection of
the strace output that shows the error and points to line 288 of dlfcn.cc
in the newlib source:

https://sourceware.org/git/?p=newlib-cygwin.git;a=history;f=winsup/cygwin/dlfcn.cc;h=fb705247352e46fb8fe408937a6e766fa37760e2;hb=HEAD

I have no idea why this one package is affected and none of the others.

The full strace2.out is too big for e-mail, I can make it available if
anyone who will look at itt.  I will try any suggestions.  Thanks,

Stephen Carrier

-- 
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019