[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#57050] [PATCH v3 13/14] gnu: racket-vm-bc: Add workaround for ppc64
From: |
Philip McGrath |
Subject: |
[bug#57050] [PATCH v3 13/14] gnu: racket-vm-bc: Add workaround for ppc64le. |
Date: |
Thu, 25 Aug 2022 04:54:15 -0400 |
This is an attempt to avoid a problem with Racket BC on ppc64 reported
in <https://issues.guix.gnu.org/57050#19> that was exposed by attempting
to use Racket BC to bootstrap Chez Scheme. Thanks to Matthew Flatt for
the workaround: <https://racket.discourse.group/t/950/30>.
* gnu/packages/racket.scm (racket-vm-bc)[arguments]<#:configure-flags>:
Increase the number of bytes that should be available on the stack for
"safety" when checking for stack overflow.
---
gnu/packages/racket.scm | 15 ++++++++++++++-
1 file changed, 14 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/racket.scm b/gnu/packages/racket.scm
index 2fecae31f8..2d6bebf10e 100644
--- a/gnu/packages/racket.scm
+++ b/gnu/packages/racket.scm
@@ -414,7 +414,20 @@ (define-public racket-vm-bc
(substitute-keyword-arguments (package-arguments racket-vm-cgc)
((#:configure-flags _ '())
#~(cons "--enable-bconly"
- #$racket-vm-common-configure-flags))))
+ #$(cond
+ ((target-ppc64le?)
+ ;; Attempt to avoid a problem bootstrapping Chez Scheme:
+ ;; see <https://issues.guix.gnu.org/57050#19>
+ ;; and <https://racket.discourse.group/t/950/30>.
+ #~(map
+ (lambda (flag)
+ (if (string-prefix? "CPPFLAGS=" flag)
+ (string-append flag
+ " -DSTACK_SAFETY_MARGIN=2000000")
+ flag))
+ #$racket-vm-common-configure-flags))
+ (else
+ racket-vm-common-configure-flags))))))
(synopsis "Racket BC [3M] implementation")
(description "The Racket BC (``before Chez'' or ``bytecode'')
implementation was the default before Racket 8.0. It uses a compiler written
--
2.32.0
- [bug#57050] [PATCH v3 06/14] gnu: chez-scheme: Fix use of "/bin/sh"., (continued)
- [bug#57050] [PATCH v3 11/14] gnu: racket: Support cross-compiling the VM packages., Philip McGrath, 2022/08/25
- [bug#57050] [PATCH v3 09/14] gnu: chez-scheme: Make bootfiles regular inputs., Philip McGrath, 2022/08/25
- [bug#57050] [PATCH v3 12/14] gnu: chez-scheme-for-racket: Suport all systems., Philip McGrath, 2022/08/25
- [bug#57050] [PATCH v3 12/14] gnu: chez-scheme-for-racket: Suport all systems., Liliana Marie Prikler, 2022/08/25
- [bug#57050] [PATCH v3 12/14] gnu: chez-scheme-for-racket: Suport all systems., Efraim Flashner, 2022/08/25
- [bug#57050] [PATCH v3 12/14] gnu: chez-scheme-for-racket: Suport all systems., Philip McGrath, 2022/08/25
- [bug#57050] [PATCH v3 13/14] gnu: racket-vm-bc: Add workaround for ppc64le.,
Philip McGrath <=
- [bug#57050] [PATCH v3 10/14] gnu: chez-scheme-for-racket: Support cross-compilation., Philip McGrath, 2022/08/25
- [bug#57050] [PATCH v3 14/14] gnu: racket: Use Racket CS on all systems., Philip McGrath, 2022/08/25
- [bug#57050] [PATCH v3 14/14] gnu: racket: Use Racket CS on all systems., Liliana Marie Prikler, 2022/08/25
- [bug#57050] [PATCH v3 00/14] gnu: Update Racket to 8.6. Add Zuo., Thiago Jung Bauermann, 2022/08/26
- [bug#57050] [PATCH v4 00/14] gnu: Update Racket to 8.6. Add Zuo., Philip McGrath, 2022/08/27
- [bug#57050] [PATCH v4 02/14] gnu: stex: Fix read-only gifs and math directories., Philip McGrath, 2022/08/27
- [bug#57050] [PATCH v4 05/14] gnu: racket: Adjust patch for "/bin/sh" in rktio., Philip McGrath, 2022/08/27
- [bug#57050] [PATCH v4 06/14] gnu: chez-scheme: Fix use of "/bin/sh"., Philip McGrath, 2022/08/27
- [bug#57050] [PATCH v4 01/14] gnu: stex: Update to 1.2.2-2.afa6075., Philip McGrath, 2022/08/27
- [bug#57050] [PATCH v4 03/14] etc: teams: Add racket team., Philip McGrath, 2022/08/27