GNU bug report logs - #34203
scmutils fails to build

Previous Next

Package: guix;

Reported by: Ricardo Wurmus <rekado <at> elephly.net>

Date: Fri, 25 Jan 2019 22:16:01 UTC

Severity: normal

Done: Ricardo Wurmus <rekado <at> elephly.net>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 34203 in the body.
You can then email your comments to 34203 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guix <at> gnu.org:
bug#34203; Package guix. (Fri, 25 Jan 2019 22:16:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Ricardo Wurmus <rekado <at> elephly.net>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Fri, 25 Jan 2019 22:16:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Ricardo Wurmus <rekado <at> elephly.net>
To: bug-guix <at> gnu.org
Subject: scmutils fails to build
Date: Fri, 25 Jan 2019 23:15:02 +0100
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 “guarantee-procedure-arity”.

The compilation results in a lot of warnings; I’m 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





Reply sent to Ricardo Wurmus <rekado <at> elephly.net>:
You have taken responsibility. (Mon, 29 Apr 2019 15:23:01 GMT) Full text and rfc822 format available.

Notification sent to Ricardo Wurmus <rekado <at> elephly.net>:
bug acknowledged by developer. (Mon, 29 Apr 2019 15:23:02 GMT) Full text and rfc822 format available.

Message #10 received at 34203-done <at> debbugs.gnu.org (full text, mbox):

From: Ricardo Wurmus <rekado <at> elephly.net>
To: 34203-done <at> debbugs.gnu.org
Subject: Re: scmutils fails to build
Date: Mon, 29 Apr 2019 17:22:09 +0200

> scmutils fails to build with the current MIT Scheme.

I have removed the scmutils package with commit 4267481a4e.

-- 
Ricardo





bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 28 May 2019 11:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 4 years and 306 days ago.

Previous Next


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