From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ricardo Wurmus Subject: Re: R Date: Fri, 5 Feb 2016 18:17:04 +0100 Message-ID: References: <20160204193924.GA8852@debian> <20160205100040.GA4213@debian.eduroam.u-bordeaux.fr> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54295) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aRk0T-0001lb-Fv for guix-devel@gnu.org; Fri, 05 Feb 2016 12:17:18 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aRk0P-000542-BO for guix-devel@gnu.org; Fri, 05 Feb 2016 12:17:17 -0500 Received: from venus.bbbm.mdc-berlin.de ([141.80.25.30]:45359) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aRk0P-00052C-2n for guix-devel@gnu.org; Fri, 05 Feb 2016 12:17:13 -0500 In-Reply-To: List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: Andreas Enge Cc: guix-devel@gnu.org Ricardo Wurmus writes: > There=E2=80=99s a separate section for OpenBLAS, which also mentions th= at using > a =E2=80=9Cshared BLAS=E2=80=9D is a preferred alternative to linking w= ith a particular > BLAS implementation. We already pass =E2=80=9C--enable-BLAS-shlib=E2=80= =9D, so we > actually do use a shared BLAS, IIUC. > > I guess we could drop the =E2=80=9C--with-blas=E2=80=9D flag and see if= that helps. I > remember struggling with this a lot in the past. I=E2=80=99ll try buil= ding R > again without that flag and see if it still works. I dropped the flag and noticed that OpenBLAS is not mentioned at all (it does retain a reference, but that=E2=80=99s expected when =E2=80=9Copenbl= as=E2=80=9D is among the inputs), so I also dropped =E2=80=9Copenblas=E2=80=9D from the inputs= and R built just fine. It=E2=80=99s a bit sad to me that we won=E2=80=99t be able to just use th= is BLAS implementation, but if it fixes the build on ARM and MIPS I=E2=80=99m all= for it. I can also confirm that dropping openblas from the R build =E2=80=9Cfixes= =E2=80=9D the segfault when running x <- eigen(crossprod(matrix(rnorm(50 * 500), 50, 500))) as reported here: https://github.com/xianyi/OpenBLAS/issues/703 So, I think it=E2=80=99s a good idea to build R without OpenBLAS on all architectures for now. ~~ Ricardo