X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org AB94C3882AC0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1701747639; bh=3/AHZ8tF5qrLoAo0Qqo+++fk5C7flAN2DmzKQQOtksM=; 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=c3MrlNuFOYFMz3jaaLpvFEKxtSl3y1CrLnXopRA4zrqqGKvc/RyxECPdIFgg09s6I IeRq7XsPE0I1V9KG31POoQlwOd2CjWxqj7crmGs76YmYF3Zrt4n4KlBnspmZr9/oz5 lO9sKlFZSxObBhreaso5zfHht9aMdrOk9ayyxnZs= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 900D53858C50 ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 900D53858C50 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1701747603; cv=none; b=AenWe1U5y2y+GFy3KaxRPEQul14ZbPr+1S/TsL0dM6vrZu2waniNS5DXVMUpPqlUpARt8FlN0Fz22ndzEeHjic/iPpyQcrKGF3gi3q0MKLVYVW7PqdE2NQ8IwHB7JtY2JlEgQ2fOL1XC2LGq0ZTvoJdm6fr8qql27+GGkMjPY6Y= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1701747603; c=relaxed/simple; bh=sQaadoXmbk9u59X806kDU9jNQYnTRt/pTllOieL5UH4=; h=DKIM-Signature:MIME-Version:From:Date:Message-ID:Subject:To; b=IhjNdjIcKXnd3USp5MSSLJ3XkeUDz5oKuKODx7tGVgcTPs0PZlMwiumZf7c9612JQXFzAILrrnmjC3lW3fwJIgmJ3mObEmMckFHNsGoKX7/GucUBsHVh8lfKYobifhgEeHoi0gvUhuCpf5qrWTd//kS7S4zjnYaWLPSNGYCoSNE= 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=1701747591; x=1702352391; 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=VU+4by6anP9B7i0CBUIFN9DYgSsja+EpMTpcL3wY9RM=; b=oNiLlpDRzWrqWMSa2E5YdW64OtEk1JIvZHSbHIM2apuYGfIFVDhogg1w0UpX5TZMCS dZMKEd4ZVD+w5FGnvNRWDfOABcmpWK1QdtViyr91WLfFk/9F8NK1juIaDcjcMb+c9ZNh gnWpKKK4WNrX0TD7d3fXWeRQ0+sfNESvjqwgNvSVT8suePYREW93I5Su5CBK30yCJ0KC toaKxUXLENWEwjf3UVra9gk9RrIGAWjqhzOUDKDcD+bglVpFX0nQdWHG9Vwq0tcZBmAI hjNG8t/ILCZ2BVQ2DEc0MZRdsPrPHkkJOFmC6q5TSuLWZKQ5I36//WzHtB1KM6DslIz2 dYXA== X-Gm-Message-State: AOJu0Ywnb7jCfP/SKdn8MvsdMilUIAVJjRvH2vVrDnZwZoSKhgUlW3kd FgNPRGPAFDY5GlbyCydCxWTlhrxXcRhDEA7Ugx20UTFuDT4efjnDz0A= X-Google-Smtp-Source: AGHT+IFNgsETyHfCr7zAumdm9L349RmPxZBwhyDD5nB6SRbRiwP/B+CZ68KjW76drY7qauPG1mAprBpGOSgfz85z7N8= X-Received: by 2002:ac2:5b47:0:b0:50b:fa6e:e397 with SMTP id i7-20020ac25b47000000b0050bfa6ee397mr974783lfp.47.1701747591006; Mon, 04 Dec 2023 19:39:51 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: Date: Mon, 4 Dec 2023 19:39:39 -0800 Message-ID: Subject: Re: R library() bug To: Marco Atzeri Cc: "cygwin AT cygwin DOT com" X-Spam-Status: No, score=-0.5 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 List-Archive: List-Post: List-Help: List-Subscribe: , From: Stephen P Carrier via Cygwin Reply-To: Stephen P Carrier Content-Type: text/plain; charset="utf-8" Sender: "Cygwin" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 3B53flZ5020238 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 wrote: > On 02/12/2023 00:29, Stephen P Carrier wrote: > > > > > > On Fri, Dec 1, 2023 at 3:24 PM Stephen P Carrier > > wrote: > > > > > > > > On Tue, Nov 28, 2023 at 8:32 PM Marco Atzeri > > 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 > > > -- 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