public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Stephen P Carrier <carrier@berkeley.edu>
To: Marco Atzeri <marco.atzeri@gmail.com>
Cc: "cygwin@cygwin.com" <cygwin@cygwin.com>
Subject: Re: R library() bug
Date: Mon, 4 Dec 2023 19:39:39 -0800	[thread overview]
Message-ID: <CAKEdzN+bgp03fGTjygGLCAYbyiaZPST_koimuBs30sYJHfA9yQ@mail.gmail.com> (raw)
In-Reply-To: <ec26aa59-b168-4157-ae42-7cf60c282512@gmail.com>

[-- Attachment #1: Type: text/plain, Size: 3138 bytes --]

Thanks for this explanation.  That is exactly what was happening.  I regret
not noticing the issue from this:

# ldd stats.dll
ntdll.dll => /cygdrive/c/Windows/SYSTEM32/ntdll.dll (0x7ff9fc820000)
KERNEL32.DLL => /cygdrive/c/Windows/System32/KERNEL32.DLL (0x7ff9fbf10000)
KERNELBASE.dll => /cygdrive/c/Windows/System32/KERNELBASE.dll
(0x7ff9fa260000)
msvcrt.dll => /cygdrive/c/Windows/System32/msvcrt.dll (0x7ff9fb930000)
stats.dll => /usr/lib/R/library/stats/libs/stats.dll (0x3ee780000)
cygwin1.dll => /usr/bin/cygwin1.dll (0x7ff9ee760000)
libR.dll => /usr/bin/libR.dll (0x3ef040000)
cyggomp-1.dll => /usr/bin/cyggomp-1.dll (0x3f95a0000)
cygblas-0.dll => /usr/bin/cygblas-0.dll (0x3ec3f0000)
cyglapack-0.dll => not found

I do wonder if the error message could be changed from file not found to
file could not be loaded.

Thank you so much!  --Stephen

On Sat, Dec 2, 2023 at 4:37 AM Marco Atzeri <marco.atzeri@gmail.com> wrote:

> On 02/12/2023 00:29, Stephen P Carrier wrote:
> >
> >
> > On Fri, Dec 1, 2023 at 3:24 PM Stephen P Carrier <carrier@berkeley.edu
> > <mailto:carrier@berkeley.edu>> wrote:
> >
> >
> >
> >     On Tue, Nov 28, 2023 at 8:32 PM Marco Atzeri <marco.atzeri@gmail.com
> >     <mailto:marco.atzeri@gmail.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:
>
> >          > 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
>
> Hi Stephen,
> a big hint is what stats.dll requires
>
> $ cygcheck /usr/lib/R/library/stats/libs/stats.dll | grep -v "^   "
> C:\cygwin64\lib\R\library\stats\libs\stats.dll
>    C:\cygwin64\bin\libR.dll
>    C:\cygwin64\lib\lapack\cyglapack-0.dll
>
> the last math library is, for specific system reason, in an unusual
> position, and for that reason the package provides the etc/profile to
> add "/usr/lib/lapack" to the PATH
>
> $ cygcheck -l liblapack0
> /etc/profile.d/lapack0.csh
> /etc/profile.d/lapack0.sh
> /usr/lib/lapack/cygblas-0.dll
> /usr/lib/lapack/cyglapack-0.dl
>
> $ echo $PATH
>
> /home/marco/bin:/usr/local/bin:/usr/bin:/usr/lib/lapack:/usr/sbin:/cygdrive/c/WINDOWS/system32:/cygdrive/c/WINDOWS:/cygdrive/d/utility
>
> I assume that you are redefining the PATH and missed this Lapack directory
>
>
> Regards
> Marco
>
>
>

  reply	other threads:[~2023-12-05  3:39 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-11-29  1:12 Stephen P Carrier
2023-11-29  4:32 ` Marco Atzeri
2023-11-29 23:38   ` Stephen P Carrier
2023-12-01 23:24   ` Stephen P Carrier
2023-12-01 23:29     ` Stephen P Carrier
2023-12-02 12:37       ` Marco Atzeri
2023-12-05  3:39         ` Stephen P Carrier [this message]
2023-12-05  6:07           ` marco atzeri

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAKEdzN+bgp03fGTjygGLCAYbyiaZPST_koimuBs30sYJHfA9yQ@mail.gmail.com \
    --to=carrier@berkeley.edu \
    --cc=cygwin@cygwin.com \
    --cc=marco.atzeri@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).