From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id wFdmBGRpCmPRvQAAbAwnHQ (envelope-from ) for ; Sat, 27 Aug 2022 20:58:44 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id 6C1eBGRpCmMa/gAAauVa8A (envelope-from ) for ; Sat, 27 Aug 2022 20:58:44 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id D53038F31 for ; Sat, 27 Aug 2022 20:58:43 +0200 (CEST) Received: from localhost ([::1]:44854 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oS110-000521-LZ for larch@yhetil.org; Sat, 27 Aug 2022 14:58:42 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34370) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oS10P-0004MR-3Q for guix-patches@gnu.org; Sat, 27 Aug 2022 14:58:05 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:39109) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oS10O-0001iK-QV for guix-patches@gnu.org; Sat, 27 Aug 2022 14:58:04 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oS10O-0008JX-MO for guix-patches@gnu.org; Sat, 27 Aug 2022 14:58:04 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#57050] [PATCH v4 13/14] gnu: racket-vm-bc: Add workaround for ppc64le. Resent-From: Philip McGrath Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 27 Aug 2022 18:58:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 57050 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 57050@debbugs.gnu.org Cc: Philip McGrath , Thiago Jung Bauermann , "\(" , Maxime Devos , Liliana Marie Prikler , Efraim Flashner , Liliana Marie Prikler Received: via spool by 57050-submit@debbugs.gnu.org id=B57050.166162665531867 (code B ref 57050); Sat, 27 Aug 2022 18:58:04 +0000 Received: (at 57050) by debbugs.gnu.org; 27 Aug 2022 18:57:35 +0000 Received: from localhost ([127.0.0.1]:57081 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oS0zu-0008Hp-HE for submit@debbugs.gnu.org; Sat, 27 Aug 2022 14:57:34 -0400 Received: from mail-vs1-f41.google.com ([209.85.217.41]:41734) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oS0za-0008Df-FB for 57050@debbugs.gnu.org; Sat, 27 Aug 2022 14:57:14 -0400 Received: by mail-vs1-f41.google.com with SMTP id k2so4666950vsk.8 for <57050@debbugs.gnu.org>; Sat, 27 Aug 2022 11:57:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=philipmcgrath.com; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc; bh=YU4ih04xkhF5TGuDL+m5IHS3ZamHPV1zq/3MmOm+d5A=; b=PWEFotXkdrfuWG+K6BoZ13I/Z65Fz3dzeWy1iASoOYkkG2W0oK8Zw4qyflSHsvhWw2 MGQVOCHMAOtFpZj8VP1k1MWDG4+tcv/WyUZYE2IabhDzgDBDYMegn80swzQB5NpFygwn x5psf+GTyw8WlstTZgnLwhvh5Ivlv7R2lLywZOFAmfG1I8wo7qANiZsCu5cSFdRaUhEw N0VZbxDeWE6uATGXeO79FhnmLBcKlpHUPou/t21HsNglJNg5/g93sNVY3SwtqMyJNw/5 g3LCsNccP/h4/Jw3L3s9Ben+9el6AfvslhPo7GB+4q0OgKi/3MtcGnqmkQybAUR7/bSf Z2Ow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc; bh=YU4ih04xkhF5TGuDL+m5IHS3ZamHPV1zq/3MmOm+d5A=; b=YCbqAnrx3u6oJidwT+5d9OYFX3/629PojiX/nk8FA+Dn8+vRTJA/JO2N8TUYXuRRtz 3H9154+1vLIAhSzKllxbny0F3G22pEVwFR3UzQf9IflSNfm+rp0hcThKifHxa69PUzdW 7Ac/p1IrJHW81haUkcunJzaZDamfMxMAvC25sSk+9kSyHPULTEoCkZCuE/mwq2Yfp9j0 /SgzGAeIYZ/TRHwLlzfEJsQLHXLZgFDqKNuwe03JjSKBrJJipQ72I7rj8HTC0R+P6WxX RgAb3to9aGDY54H4au7GfIo5gekO7PAPOH3r78Z2eD8esPSMhowDkp/OeeDX9DKwFXak 4G9A== X-Gm-Message-State: ACgBeo36sr5YHbNSLlTzJFcPLR+J5HecIi5efXltVqKWWM0Qjk/E25EE xVwqca7CU+MK72PMURB1gy/Eq9jR5v9XjFiX X-Google-Smtp-Source: AA6agR5gJk1uDwYICbDwRMJYq/D1upoLUDOx8vMGyHKMBXcE7CdRC5M7De1ItUVND65CzmXFD239QA== X-Received: by 2002:a67:ef8c:0:b0:390:1f12:16c0 with SMTP id r12-20020a67ef8c000000b003901f1216c0mr1533639vsp.9.1661626634089; Sat, 27 Aug 2022 11:57:14 -0700 (PDT) Received: from localhost (c-73-125-98-51.hsd1.fl.comcast.net. [73.125.98.51]) by smtp.gmail.com with UTF8SMTPSA id 196-20020a1f16cd000000b0039452821f2asm164852vkw.25.2022.08.27.11.57.13 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 27 Aug 2022 11:57:13 -0700 (PDT) From: Philip McGrath Date: Sat, 27 Aug 2022 14:55:53 -0400 Message-Id: <3b4d21a89901a434b1d37f53a0ad7f51a0e4adfa.1661626113.git.philip@philipmcgrath.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1661626723; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=YU4ih04xkhF5TGuDL+m5IHS3ZamHPV1zq/3MmOm+d5A=; b=Y9z1gjce05NzR+uHakPoLkTwZ3iHFTBVdpAi0ez83m3gtucGpjy0WoiRHBUYhZ9ZDqHDjS uHAqJqSoZAuRHpz4FzASabc8Zfnm3MqAChCZwkK1Imt55Jl21oTU17d2X42BRZeCv+R8V0 CaxEMj2p0Xig6HzxnPU6NAYUdcqSLudv8dz2+vBak3VWYn97bZPLCh7kvuT8QST80cj/7C I9aQWViueDOAXQFbuadJvZ3mcM/bz2P0uE1VAMraQuuTVIWwjZB6+YxC1NsODLm9ET2Wkd 2+tiAMWgAaRQ/4QkeC0eiF78Hhz/H/qI4sN8lno+zKfDy0b5UGjcP4M2Pldn2w== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1661626723; a=rsa-sha256; cv=none; b=q3vtmMze2PFzjNhi/+NdN4f08eBIZloCocBvhDiM2oZPHyMiX5DqjLDimV8okxWKczpl4z wjwR7OU/5WUSNBsPFqFo4HR1ZNKcV7IMEMXs3IF6NRZcXCaCbZy3ukNy32V5Ok9mACbqvP jvAG0gFQrAL0tC766LAj8/lYGAj2hwVgJYPk4wvybBrur5qEWqk/2OYmiSEzbvb4DjzQt+ gHFqIOve9wpcFVZdOuyqd+9vW+2UMMjPorQvXRz+MCbF8weM+6ax1v5iN5IHfRbgz/MdpO BHS9MqfxZeYLq5hYlvJXu7vqWGu768z9f59txAF7sqpOdtmxSdFY4FeJhzYICg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=philipmcgrath.com header.s=google header.b=PWEFotXk; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 4.10 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=philipmcgrath.com header.s=google header.b=PWEFotXk; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: D53038F31 X-Spam-Score: 4.10 X-Migadu-Scanner: scn0.migadu.com X-TUID: a5rdK2CuGXQd This is an attempt to avoid a problem with Racket BC on ppc64 reported in that was exposed by attempting to use Racket BC to bootstrap Chez Scheme. Thanks to Matthew Flatt for the workaround: . * 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 264b44b7fd..74052d47eb 100644 --- a/gnu/packages/racket.scm +++ b/gnu/packages/racket.scm @@ -412,7 +412,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 + ;; and . + #~(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