From patchwork Mon Aug 15 05:47:37 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Philip McGrath X-Patchwork-Id: 41685 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 71B8F27BBEA; Mon, 15 Aug 2022 06:50:14 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 6361527BBE9 for ; Mon, 15 Aug 2022 06:50:13 +0100 (BST) Received: from localhost ([::1]:44944 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oNSzM-0007ai-Fd for patchwork@mira.cbaines.net; Mon, 15 Aug 2022 01:50:12 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44466) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oNSyE-0007Zp-Lw for guix-patches@gnu.org; Mon, 15 Aug 2022 01:49:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:50601) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oNSyD-0002Ng-SR for guix-patches@gnu.org; Mon, 15 Aug 2022 01:49:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oNSyD-0005FS-OS for guix-patches@gnu.org; Mon, 15 Aug 2022 01:49:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#57050] [RFC PATCH] gnu: racket-vm-cs: Avoid 'configure' bug with '--enable-racket'. Resent-From: Philip McGrath Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 15 Aug 2022 05:49:01 +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: Thiago Jung Bauermann Cc: 57050@debbugs.gnu.org, Liliana Marie Prikler , Philip McGrath , Liliana Marie Prikler Received: via spool by 57050-submit@debbugs.gnu.org id=B57050.166054250920119 (code B ref 57050); Mon, 15 Aug 2022 05:49:01 +0000 Received: (at 57050) by debbugs.gnu.org; 15 Aug 2022 05:48:29 +0000 Received: from localhost ([127.0.0.1]:40344 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oNSxh-0005ER-1r for submit@debbugs.gnu.org; Mon, 15 Aug 2022 01:48:29 -0400 Received: from mail-qv1-f48.google.com ([209.85.219.48]:42995) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oNSxe-0005E5-Io for 57050@debbugs.gnu.org; Mon, 15 Aug 2022 01:48:27 -0400 Received: by mail-qv1-f48.google.com with SMTP id ct13so4760455qvb.9 for <57050@debbugs.gnu.org>; Sun, 14 Aug 2022 22:48:26 -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=Zg5HUArde71ceFtFuzTzfuvLBUHFY5F7VyP51ynF7ik=; b=iyLdfMCwQ7D0TvVrhCstJvhC1LiWef8YTsX3V2cBeQsFsxM9VcGkIPzSBvH+ygmIGt +ov1WQnO9sV3qEjIH2ZaColhc5whlRHBVE4FABLTwl9NK7zQ44cWmEs/cpVGTgBRmR2f usAZA2rI8yK/sOJILnbywFOPos/AEJQJtqE6lUIliY7Hza3v8DsY5/nffJRSDDpvpys4 Vrtq7m0nTF94JibxmXpaakPGwQeuDJinpZZHcwzkhJYgtsnFW9noGXytdp61QrjmwBld fSQdPHS8bbLtfJfswN7h0IB7mGNVBtSeOw0APYs1zRke1hnFwQz+NjLLlg33clezTjQ9 as0g== 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=Zg5HUArde71ceFtFuzTzfuvLBUHFY5F7VyP51ynF7ik=; b=11aUg/4l7+zhCELfLIbtR4y+LoT1vzb6JUXxQ2owWPQWocetE7vJklg3dir6Tstgj2 u9XMhKX3wNde6lSYFgXhLFukLXPE4whb2QqsBqh6CmpZX05dEMx2Kbxvuua5IZfkeNWS duVivVLMYj2t8t7PlPzJuzqAiWp0sxhrefsRfqK29Fh6S37nQc5z7MmGB9FRGyu41/4h wJJM/HFTMSbSt8c5/amnykI8RtRZQI38Dmy6SwajdaqmtrPcpFIsG3atO6ds4vMKYQvw 06QirseCBFp23esfv1RYkkV12H8y1DdLmvzP8UqRNk2Cs2dXlXvZS8CWhXQCfq/yUXoZ Krow== X-Gm-Message-State: ACgBeo3FS3dK2eKFUt3kUH9iSxLLkdL7IecdGkLuD1+w4cqM5G5Rq/ys 7QaRPeuexc8ftia0qu/nWhpcNw== X-Google-Smtp-Source: AA6agR4syoKSHN6O87GpAIGUqAZt+4R6ou2Y7dEJsHyN/RodBUd4z6BDU+f7CW2esGHgKsdu7D6JVw== X-Received: by 2002:a05:6214:20aa:b0:47b:5547:bbdd with SMTP id 10-20020a05621420aa00b0047b5547bbddmr12270336qvd.99.1660542500931; Sun, 14 Aug 2022 22:48:20 -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 y9-20020a05620a25c900b006b629f86244sm8160906qko.50.2022.08.14.22.48.20 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 14 Aug 2022 22:48:20 -0700 (PDT) From: Philip McGrath Date: Mon, 15 Aug 2022 01:47:37 -0400 Message-Id: <64be5566c119d5b4ab83d5fb44d01aa1ecaed599.1660541551.git.philip@philipmcgrath.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <875yiwxc6o.fsf@kolabnow.com> References: <875yiwxc6o.fsf@kolabnow.com> <87ilmzk04q.fsf@kolabnow.com> <2ef11386-5362-40af-981a-39f9562242c0@www.fastmail.com> MIME-Version: 1.0 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+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches Hi Thiago, > Nice! thanks for the quick fix. I tested guix-issue-57050-v2 and now > chez-scheme-for-racket-bootstrap-bootfiles builds successfully! > Unfortunately there's still a holdup: the install phase of racket-vm-cs-8.6 > fails: > > [...] > > Apparently some part of the racket-vm-cs build system thinks that it's > cross-compiling when it's not. I'm still trying to figure out where this > “--cross-compiler” argument is being added but thought I'd provide an early > report. > Thanks for trying this! I think I've found what's going wrong in the 'configure' script is going wrong, but I'm not sure yet what's the right way to fix it. In the meantime, I think the patch below on top of the guix-issue-57050-v2 tag should avoid triggering the bad assumption in the 'configure' script: could you give it a try? It's also at https://gitlab.com/philip1/guix-patches as the current tip of the 'zuo' branch, commit 64be5566c119d5b4ab83d5fb44d01aa1ecaed599. -Philip -- >8 -- Date: Mon, 15 Aug 2022 00:35:23 -0400 Subject: gnu: racket-vm-cs: Avoid 'configure' bug with '--enable-racket'. On systems like powerpc64le-linux that rely on the 'pbarch' backends for Chez Scheme, configuring with '--enable-racket' incorrectly triggers cross-compilation mode: see and . We can avoid the problem by including a bootstrap Racket in 'native-inputs' only for cross-compilation. The fact that this works reveals that we are bootstrapping slightly less that we thought we were. We have to rely on generated code for Racket's macro expander (which includes the reader and module system) because it is not bootstrappable, though it is auditable. However, apparently we are also relying on generated code for the 'io', 'regexp', and 'thread' subsystems, which can be bootstrapped via Racket BC. We should bootstrap them once the 'configure' issue is fixed. * gnu/packages/racket.scm (racket-vm-cs)[native-inputs]: Don't use 'racket-vm-bc' for non-cross builds. --- gnu/packages/racket.scm | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) base-commit: aaa95de8c6cff1ba749a9dd0365dedb822ffa625 diff --git a/gnu/packages/racket.scm b/gnu/packages/racket.scm index b1de6cf885..4ff36077ef 100644 --- a/gnu/packages/racket.scm +++ b/gnu/packages/racket.scm @@ -462,14 +462,12 @@ (define-public racket-vm-cs (let ((native-inputs (package-native-inputs racket-vm-cgc))) (modify-inputs (if (%current-target-system) (modify-inputs native-inputs + (prepend racket-vm-cs) (delete "racket-vm-cgc")) native-inputs) (delete "libtool") (prepend chez-scheme-for-racket - chez-nanopass-bootstrap - (if (%current-target-system) - racket-vm-cs - racket-vm-bc))))) + chez-nanopass-bootstrap)))) (arguments (substitute-keyword-arguments (package-arguments racket-vm-cgc) ((#:phases those-phases #~%standard-phases)