From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id CNpkMWPe+WLUrQAAbAwnHQ (envelope-from ) for ; Mon, 15 Aug 2022 07:49:23 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id SKtxMWPe+WITugAA9RJhRA (envelope-from ) for ; Mon, 15 Aug 2022 07:49:23 +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 4646C1189E for ; Mon, 15 Aug 2022 07:49:23 +0200 (CEST) Received: from localhost ([::1]:44944 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oNSyY-0007ai-4z for larch@yhetil.org; Mon, 15 Aug 2022 01:49:22 -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 Content-Type: text/plain; charset=UTF-8 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=1660542563; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: 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=Zg5HUArde71ceFtFuzTzfuvLBUHFY5F7VyP51ynF7ik=; b=IXjPqiAoasa2tMRQQH36MahQaQU1wEL74wA5GlRWnypovIEw/HcjN1R3TOnSey9pp9yuxD s4GIOjyXIqZx9bUproPxBhNcEzgHGwoBhlfS+FgguawzqhSiA/d6UkOBOuOFxKTjghCZTP przF2DxPiTlIaJF5oo6945ABdm3Woy5DKIBSiUh1dH3lw9V2bT2uKKQDf829LAyu8U5rxC D9R0mO+PGM+3rjpXn8HpZWi/Pa84K2L2q0Da+QP4sjmFqBVPYE+576+NGnAIwKyHaJmkPV iMvVi8ste42n7GdzP+PbsQ/xFX8wpNaaNHElV3qJMKcjsxO53tp/TDN2s9SD2w== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1660542563; a=rsa-sha256; cv=none; b=sfGiWrMOsFMVc7ij8EHMejnZOOM4rRiY4AG7Vrju46XXUXAkxCp9ysLi57npCiCfbEaWfc el1zcQ76SOTQ8XCK/FhvcGzRCaLA+SjVu4jjntoJOD1AHXwiYV0NGGUji0xMdkUjMHUHFN 4Zlf0p0qJyLDVJUMvTw5tuwQXoNL9VR5BirfPgD7JU/KSoa5naRDuIYC8v4vlbR3m6whH+ 7jHnI/PzrQ88AgYdkSHsqlqf4w0bk76ixNYZHpaKmJrTOXea7uF6P/rXw1Zeo2i3tV+uxA c5/H46y75ciJeFLjmjCGdnMul7dW+4z29vG3a4XWla1nAvaEXyGOQEegdS6RXQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=philipmcgrath.com header.s=google header.b=iyLdfMCw; 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: 3.64 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=philipmcgrath.com header.s=google header.b=iyLdfMCw; 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: 4646C1189E X-Spam-Score: 3.64 X-Migadu-Scanner: scn1.migadu.com X-TUID: XXPCnLS45Bi4 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(-) 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) base-commit: aaa95de8c6cff1ba749a9dd0365dedb822ffa625 -- 2.32.0