From mboxrd@z Thu Jan 1 00:00:00 1970 From: Federico Beffa Subject: Re: hackage importer broken Date: Sun, 5 Feb 2017 14:31:47 +0100 Message-ID: References: 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]:32831) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1caMv2-00085p-MK for guix-devel@gnu.org; Sun, 05 Feb 2017 08:31:53 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1caMuz-0000dR-8k for guix-devel@gnu.org; Sun, 05 Feb 2017 08:31:52 -0500 Received: from mail-vk0-x236.google.com ([2607:f8b0:400c:c05::236]:33901) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1caMuz-0000dF-3v for guix-devel@gnu.org; Sun, 05 Feb 2017 08:31:49 -0500 Received: by mail-vk0-x236.google.com with SMTP id r136so41168141vke.1 for ; Sun, 05 Feb 2017 05:31:49 -0800 (PST) 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" To: Guix-devel On Fri, Feb 3, 2017 at 2:53 PM, Federico Beffa wrote: > Hi, > > I notice that with a recent Guix checkout (commit > d8e85b20325073d90cfaf3060889d59d91362deb) the hackage importer doesn't > work and the problem seems to be with Guile itself or the lalr parser > coming with it: > > -------------------------------------------------------------------------= ------------------------------ > GNU Guile 2.0.13 > Copyright (C) 1995-2016 Free Software Foundation, Inc. > > Guile comes with ABSOLUTELY NO WARRANTY; for details type `,show w'. > This program is free software, and you are welcome to redistribute it > under certain conditions; type `,show c' for details. > > Enter `,help' for help. > scheme@(guile-user)> ,m (guix import hackage) > scheme@(guix import hackage)> (canonical-newline-port (http-fetch > "https://hackage.haskell.org/package/hmatrix/hmatrix.cabal" > #:verify-certificate? #f)) > $2 =3D # > scheme@(guix import hackage)> (read-cabal $2) > system/base/lalr.upstream.scm:1851:2: In procedure ___push: > system/base/lalr.upstream.scm:1851:2: Wrong number of arguments to > # > > Entering a new prompt. Type `,bt' for a backtrace or `,q' to continue. > scheme@(guix import hackage) [1]> ,locals > Local variables: > $3 =3D delta =3D 1 > $4 =3D new-category =3D 6 > $5 =3D lvalue =3D (# #) > While executing meta-command: > ERROR: In procedure frame-local-ref: Argument 2 out of range: 3 > scheme@(guix import hackage) [1]> > -------------------------------------------------------------------------= ------------------------------ > > Notice that inspecting the stack of the backtrace results in an error! > > The importer does work as expected with Guile 2.0.11: > > -------------------------------------------------------------------------= ------------------------------ > GNU Guile 2.0.11 > Copyright (C) 1995-2014 Free Software Foundation, Inc. > > Guile comes with ABSOLUTELY NO WARRANTY; for details type `,show w'. > This program is free software, and you are welcome to redistribute it > under certain conditions; type `,show c' for details. > > Enter `,help' for help. > scheme@(guile-user)> ,m (guix import hackage) > scheme@(guix import hackage)> (canonical-newline-port (http-fetch > "https://hackage.haskell.org/package/hmatrix/hmatrix.cabal" > #:verify-certificate? #f)) > $1 =3D # > scheme@(guix import hackage)> (read-cabal $1) > $2 =3D (("name" ("hmatrix")) ("version" ("0.18.0.0")) ("license" > ("BSD3")) ("license-file" ("LICENSE")) ("author" ("Alberto Ruiz")) > ("maintainer" ("Alberto Ruiz")) ("stability" ("provisional")) > ("homepage" ("https://github.com/albertoruiz/hmatrix")) ("synopsis" > ("Numeric Linear Algebra")) ("description" ("Linear systems, matrix > decompositions, and other numerical computations based on BLAS and > LAPACK. . Standard interface: \"Numeric.LinearAlgebra\". . Safer > interface with statically checked dimensions: > \"Numeric.LinearAlgebra.Static\". . Code examples: > ")) ("category" > ("Math")) ("tested-with" ("GHC=3D=3D8.0")) ("cabal-version" (">=3D1.8")) > ("build-type" ("Simple")) ("extra-source-files" ("THANKS.md > CHANGELOG")) ("extra-source-files" ("src/Internal/C/lapack-aux.h")) > (section flag "openblas" (("description" ("Link with OpenBLAS > (https://github.com/xianyi/OpenBLAS) optimized libraries.")) > ("default" ("False")) ("manual" ("True")))) (section library > (("build-depends" ("base >=3D 4.8 && < 5, binary, array, deepseq, > random, split, bytestring, storable-complex, vector >=3D 0.8")) > ("hs-source-dirs" ("src")) ("exposed-modules" ("Numeric.LinearAlgebra > Numeric.LinearAlgebra.Devel Numeric.LinearAlgebra.Data > Numeric.LinearAlgebra.HMatrix Numeric.LinearAlgebra.Static")) > ("other-modules" ("Internal.Vector Internal.Devel Internal.Vectorized > Internal.Matrix Internal.ST Internal.IO Internal.Element > Internal.Conversion Internal.LAPACK Internal.Numeric > Internal.Algorithms Internal.Random Internal.Container Internal.Sparse > Internal.Convolution Internal.Chain Numeric.Vector Internal.CG > Numeric.Matrix Internal.Util Internal.Modular Internal.Static")) > ("c-sources" ("src/Internal/C/lapack-aux.c > src/Internal/C/vector-aux.c")) ("extensions" > ("ForeignFunctionInterface")) ("ghc-options" ("-Wall > -fno-warn-missing-signatures -fno-warn-orphans -fprof-auto")) > ("cc-options" ("-O4 -Wall")) (if (arch "x86_64") (("cc-options" > ("-msse2"))) ()) (if (arch "i386") (("cc-options" ("-msse2"))) ()) (if > (os "OSX") ((if (flag "openblas") (("extra-lib-dirs" > ("/opt/local/lib/openblas/lib")) ("extra-libraries" ("openblas"))) > (("extra-libraries" ("blas lapack")))) ("extra-lib-dirs" > ("/opt/local/lib/")) ("include-dirs" ("/opt/local/include/")) > ("extra-lib-dirs" ("/usr/local/lib/")) ("include-dirs" > ("/usr/local/include/")) (if (arch "i386") (("cc-options" ("-arch > i386"))) ()) ("frameworks" ("Accelerate"))) ()) (if (os "freebsd") > ((if (flag "openblas") (("extra-lib-dirs" > ("/usr/local/lib/openblas/lib")) ("extra-libraries" ("openblas"))) > (("extra-libraries" ("blas lapack"))))) ()) ("extra-lib-dirs" > ("/usr/local/lib")) ("include-dirs" ("/usr/local/include")) > ("extra-libraries" ("gfortran")) (if (os "windows") ((if (flag > "openblas") (("extra-libraries" ("libopenblas, libgcc_s_seh-1, > libgfortran-3, libquadmath-0"))) (("extra-libraries" ("blas > lapack"))))) ()) (if (os "linux") ((if (flag "openblas") > (("extra-lib-dirs" ("/usr/lib/openblas/lib")) ("extra-libraries" > ("openblas"))) (("extra-libraries" ("blas lapack")))) (if (arch > "x86_64") (("cc-options" ("-fPIC"))) ())) ()))) (section > source-repository "head" (("type" ("git")) ("location" > ("https://github.com/albertoruiz/hmatrix"))))) > scheme@(guix import hackage)> > -------------------------------------------------------------------------= ------------------------------ The importer is now working and I can't reproduce the problem. Weird. Fede