GNU bug report logs - #34203
scmutils fails to build

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: guix; Reported by: Ricardo Wurmus <rekado@HIDDEN>; dated Fri, 25 Jan 2019 22:16:01 UTC; Maintainer for guix is bug-guix@HIDDEN.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 25 Jan 2019 22:15:51 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Jan 25 17:15:51 2019
Received: from localhost ([127.0.0.1]:45685 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1gn9lP-0001jN-BW
	for submit <at> debbugs.gnu.org; Fri, 25 Jan 2019 17:15:51 -0500
Received: from eggs.gnu.org ([209.51.188.92]:53876)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <rekado@HIDDEN>) id 1gn9lN-0001jB-Q2
 for submit <at> debbugs.gnu.org; Fri, 25 Jan 2019 17:15:50 -0500
Received: from lists.gnu.org ([209.51.188.17]:55480)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <rekado@HIDDEN>) id 1gn9lI-0004rd-Bg
 for submit <at> debbugs.gnu.org; Fri, 25 Jan 2019 17:15:44 -0500
Received: from eggs.gnu.org ([209.51.188.92]:35791)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <rekado@HIDDEN>) id 1gn9lH-0003MV-6p
 for bug-guix@HIDDEN; Fri, 25 Jan 2019 17:15:44 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,RCVD_IN_DNSWL_NONE
 autolearn=disabled version=3.3.2
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <rekado@HIDDEN>) id 1gn9lC-0004kY-F1
 for bug-guix@HIDDEN; Fri, 25 Jan 2019 17:15:39 -0500
Received: from sender-of-o51.zoho.com ([135.84.80.216]:21048)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <rekado@HIDDEN>) id 1gn9l4-0004ZX-Vq
 for bug-guix@HIDDEN; Fri, 25 Jan 2019 17:15:34 -0500
ARC-Seal: i=1; a=rsa-sha256; t=1548454512; cv=none; d=zoho.com; s=zohoarc; 
 b=R3Zp4AK3NhU/UTo+l0me+Pr+leedT29t+T7/FzYPcxwDiZe9sHxxRSAt2qtb+dCvjq1cconT8JmzNS/LGxkASDqj+Fybf86mHU/wEIEZsFKI85nwmu82WgkGSJqZaS9RD1Qt5CuABfr0+YZ6K5seczyKuCa4p+ze4qDpgffzfzU=
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com;
 s=zohoarc; t=1548454512;
 h=Content-Type:Content-Transfer-Encoding:Date:From:MIME-Version:Message-ID:Subject:To:ARC-Authentication-Results;
 bh=QUeZ0pbBwBaZkKQGLhu3+cfhepvhrwCL9N6pwKIceoQ=; 
 b=OBqNZPADwMKTznIgpKZQuDsb2rO74g1+285haHcGduZfx1yLP8FQ/ER7HwOZGshj08K0yPL6OVERj1JO/22N8wjzFxNszT25TQ4oA66SfrPEh54t3JohyVSf3fG01PD/iC5FBpwRbG+34w5ZXHCKNA9vUD89/elCn0m/IMO0rvA=
ARC-Authentication-Results: i=1; mx.zoho.com; dkim=pass  header.i=elephly.net;
 spf=pass  smtp.mailfrom=rekado@HIDDEN;
 dmarc=pass header.from=<rekado@HIDDEN> header.from=<rekado@HIDDEN>
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1548454512; 
 s=zoho; d=elephly.net; i=rekado@HIDDEN;
 h=From:To:Subject:Date:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding;
 l=1874; bh=QUeZ0pbBwBaZkKQGLhu3+cfhepvhrwCL9N6pwKIceoQ=;
 b=FsCbXjkx87XhDLKwWLgpF1n+P49YqCqiZvdOL3XAWgT1IgfN2R3dlFbwDPr/vNTj
 SR3Ikv9JrxCWCkBIq3I/rNKbI6GnZ+/HHz1tQUoA/9ZimcMldM2nPAMWvFk6rUq1sij
 OBayyYMCzE4g3aKX8uIkwVgz0lSdH93J4iNlokRo=
Received: from localhost (p578E7F3B.dip0.t-ipconnect.de [87.142.127.59]) by
 mx.zohomail.com with SMTPS id 1548454510217190.23160986776657;
 Fri, 25 Jan 2019 14:15:10 -0800 (PST)
User-agent: mu4e 1.0; emacs 26.1
From: Ricardo Wurmus <rekado@HIDDEN>
To: bug-guix@HIDDEN
Subject: scmutils fails to build
X-URL: https://elephly.net
X-PGP-Key: https://elephly.net/rekado.pubkey
X-PGP-Fingerprint: BCA6 89B6 3655 3801 C3C6  2150 197A 5888 235F ACAC
Date: Fri, 25 Jan 2019 23:15:02 +0100
Message-ID: <87d0okv0yh.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-ZohoMailClient: External
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From: 135.84.80.216
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Spam-Score: 1.0 (+)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.0 (/)

scmutils fails to build with the current MIT Scheme.  I first thought it
might just be minor problems, so I applied some patches in build phases:

--8<---------------cut here---------------start------------->8---
diff --git a/gnu/packages/scheme.scm b/gnu/packages/scheme.scm
index bcaccb452..bb2a9f9fb 100644
--- a/gnu/packages/scheme.scm
+++ b/gnu/packages/scheme.scm
@@ -680,8 +680,25 @@ threads.")
                                  "(disk-save \"edwin-mechanics.com\")'"
                                  "| mit-scheme")))
                  (with-directory-excursion "scmutils/scmutils"
-                   (and (zero? (system "mit-scheme < compile.scm"))
-                        (zero? (system make-img))))
+                   ;; Case seems to be important.
+                   (substitute* "kernel/utils.scm"
+                     (("#F") "#f"))
+                   (substitute* "display/exdisplay.scm"
+                     (("SPACE") "space"))
+                   (substitute* "enclose/jinx-utils.scm"
+                     (("Space") "space"))
+                   ;; These files only contain comments, so don't compile =
them
+                   ;; or else we get an error.
+                   (substitute* "mechanics/compile.scm"
+                     (("\"Lagrangian-evolution\"") "")
+                     (("\"Hamiltonian-evolution\"") "")
+                     (("\"generating-functions\"") ""))
+                   (substitute* "compile.scm"
+                     (("\\(cf \"./patch\"\\)") "(display \"skipping\")"))
+
+                   (invoke "mit-scheme" "--load" "compile.scm")
+                   (unless (zero? (system make-img))
+                     (error "could not build scmutils")))
                  #t)))
            (add-before 'install 'fix-directory-names
              ;; Correct directory names in the startup script.
--8<---------------cut here---------------end--------------->8---

Unfortunately, this is not enough as some procedure bindings have
disappeared, such as =E2=80=9Cguarantee-procedure-arity=E2=80=9D.

The compilation results in a lot of warnings; I=E2=80=99m not sure if they =
are
harmless.  There is no more recent release of scmutils.  There is a port
to Guile 2.0, but it is not obvious how to compile it:

    https://www.cs.rochester.edu/~gildea/guile-scmutils/

--
Ricardo





Acknowledgement sent to Ricardo Wurmus <rekado@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-guix@HIDDEN. Full text available.
Report forwarded to bug-guix@HIDDEN:
bug#34203; Package guix. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Fri, 25 Jan 2019 22:30:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.