all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [bug#64285] [PATCH] gnu: mit-scheme: Fix building
@ 2023-06-25 14:48 Zac Berkowitz
  2023-07-11 14:05 ` bug#64285: " Ludovic Courtès
  0 siblings, 1 reply; 2+ messages in thread
From: Zac Berkowitz @ 2023-06-25 14:48 UTC (permalink / raw)
  To: 64285


[-- Attachment #1.1: Type: text/plain, Size: 280 bytes --]

mit-scheme 11.2 is failing to compile with -Warray-parameter turned
errors.  This patch disables these warnings.  Package builds and passes all
tests, but haven't investigated further.

Apparent first failed build of this nature:
https://ci.guix.gnu.org/build/822542/details

Zac

[-- Attachment #1.2: Type: text/html, Size: 415 bytes --]

[-- Attachment #2: 0001-gnu-mit-scheme-Fix-building.patch --]
[-- Type: text/x-patch, Size: 1402 bytes --]

From 5f84f9ffc531d8435fb11009f095a7ed5a6b6c3e Mon Sep 17 00:00:00 2001
Message-Id: <5f84f9ffc531d8435fb11009f095a7ed5a6b6c3e.1687704033.git.zac.berkowitz@gmail.com>
From: Zac Berkowitz <zac.berkowitz@gmail.com>
Date: Sun, 25 Jun 2023 10:27:08 -0400
Subject: [PATCH] gnu: mit-scheme: Fix building

* gnu/packages/scheme.scm (mit-scheme)[arguments] Add 'set-env
  before 'configure, setting -Wno-array-parameter in CFLAGS and
  CPPFLAGS to ignore warning causing build break.
---
 gnu/packages/scheme.scm | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/gnu/packages/scheme.scm b/gnu/packages/scheme.scm
index 2337b60ee9..215ea741f8 100644
--- a/gnu/packages/scheme.scm
+++ b/gnu/packages/scheme.scm
@@ -138,6 +138,12 @@ (define-public mit-scheme
                (("\\./configure")
                 (string-append (which "sh") " configure")))
              #t))
+         ;; disable array-parameter warnings that become errors while
+         ;; compiling microcode target
+         (add-before 'configure 'set-flags
+           (lambda* (#:key inputs #:allow-other-keys)
+             (setenv "CFLAGS" "-Wno-array-parameter")
+             (setenv "CPPFLAGS" "-Wno-array-parameter")))
          (replace 'build
            (lambda* (#:key system outputs #:allow-other-keys)
              (let ((out (assoc-ref outputs "out")))

base-commit: 7400797341f2185dc77997070b0bb174347279b3
-- 
2.40.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* bug#64285: [PATCH] gnu: mit-scheme: Fix building
  2023-06-25 14:48 [bug#64285] [PATCH] gnu: mit-scheme: Fix building Zac Berkowitz
@ 2023-07-11 14:05 ` Ludovic Courtès
  0 siblings, 0 replies; 2+ messages in thread
From: Ludovic Courtès @ 2023-07-11 14:05 UTC (permalink / raw)
  To: Zac Berkowitz; +Cc: 64285-done

Hi,

Zac Berkowitz <zac.berkowitz@gmail.com> skribis:

> From 5f84f9ffc531d8435fb11009f095a7ed5a6b6c3e Mon Sep 17 00:00:00 2001
> Message-Id: <5f84f9ffc531d8435fb11009f095a7ed5a6b6c3e.1687704033.git.zac.berkowitz@gmail.com>
> From: Zac Berkowitz <zac.berkowitz@gmail.com>
> Date: Sun, 25 Jun 2023 10:27:08 -0400
> Subject: [PATCH] gnu: mit-scheme: Fix building
>
> * gnu/packages/scheme.scm (mit-scheme)[arguments] Add 'set-env
>   before 'configure, setting -Wno-array-parameter in CFLAGS and
>   CPPFLAGS to ignore warning causing build break.

Applied, thanks!

Ludo’.




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-07-11 14:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-06-25 14:48 [bug#64285] [PATCH] gnu: mit-scheme: Fix building Zac Berkowitz
2023-07-11 14:05 ` bug#64285: " Ludovic Courtès

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.