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 SOKcEIkvdGKOkQAAbAwnHQ (envelope-from ) for ; Thu, 05 May 2022 22:11:53 +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 uAqvEIkvdGK3wgAA9RJhRA (envelope-from ) for ; Thu, 05 May 2022 22:11:53 +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 EB749363F8 for ; Thu, 5 May 2022 22:11:52 +0200 (CEST) Received: from localhost ([::1]:58210 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nmhpH-0002cb-FV for larch@yhetil.org; Thu, 05 May 2022 16:11:51 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57530) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nmhKU-0005iW-Vd for guix-patches@gnu.org; Thu, 05 May 2022 15:40:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:52623) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nmhKU-00051b-M5 for guix-patches@gnu.org; Thu, 05 May 2022 15:40:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nmhKU-000645-G5 for guix-patches@gnu.org; Thu, 05 May 2022 15:40:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#55248] [PATCH 6/7] gnu: stex: Get machine type dynamically. Resent-From: Philip McGrath Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 05 May 2022 19:40:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 55248 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Liliana Marie Prikler , 55248@debbugs.gnu.org, Maxime Devos Received: via spool by 55248-submit@debbugs.gnu.org id=B55248.165177958123279 (code B ref 55248); Thu, 05 May 2022 19:40:02 +0000 Received: (at 55248) by debbugs.gnu.org; 5 May 2022 19:39:41 +0000 Received: from localhost ([127.0.0.1]:46520 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nmhK9-00063P-6n for submit@debbugs.gnu.org; Thu, 05 May 2022 15:39:41 -0400 Received: from wout1-smtp.messagingengine.com ([64.147.123.24]:40415) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nmhK6-000639-Vz for 55248@debbugs.gnu.org; Thu, 05 May 2022 15:39:39 -0400 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id A8A8C3200973; Thu, 5 May 2022 15:39:32 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Thu, 05 May 2022 15:39:33 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= philipmcgrath.com; h=cc:content-transfer-encoding:content-type :date:date:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:sender:subject:subject:to:to; s=fm1; t=1651779572; x=1651865972; bh=TYV7EYxGxJDuhtydJU+gx//Zb ZcjC22jlpSQV0hjbf0=; b=KGeyUmSpH+doMuw4Lb5BunByOjaM7WFK2jrO65DGg DyJs7VQnFhRdimO+XXe9w7Bxete3RUVF4DwbUkxELsPLnPs2oFeczyAQSVneoSV5 Tt1vR0kG6koi6xZX6Za8lublpJGb4Nyq7yY4naP0VK+K1hKBI6XCJJdG7BCqeXQp P1gnw2cSd7FGywjbF4HOIWJVI3LvpQQIh9hJPD7jMJd2rpn06KMrzsozTsXAhvjd 36e2FHuge9n86+5mvUyP7tAOmHgGCfkyuPcmbFcuJpryiO3Jfi0ZcXduEGrnLXPm WYI8efa/gfgUygd3xJbqgcFV4XXEXLqEAyoGL8W/txEPg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:date:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:sender:subject:subject:to:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; t=1651779572; x=1651865972; bh=TYV7EYxGxJDuhtydJU+gx//ZbZcj C22jlpSQV0hjbf0=; b=dOK8ulyzLIwCWm6y465ym/nZ0p/BzQmONOeC9VvxzC1R UoA7w0vWfZG2m5V4XuGLlbNyl3dPqgvrEmwd4cBt0IDz5akb+JKlN5WuwBYZoMRH QtiXQ/B4w++vo7xXNGsLilw7tggsqIkwJhsuQ/KOt4c6cCUE+lS7P6sGcrC550S8 SwSnq20qJy7TqIgobobcDB9Ud8zm1mt5ZAUxD6lTnUnhAtjbiQ4RzckBzCCrb9uu ikkx4XcUMmZXt6nHbkAYvL38/z32F05g6S1LGMaO9ASG9WNgH718/9pQZzVxc6GI MWztBCLdo5kV09c3pdCv/w+j6W0TBSN7s/4HksG55Q== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrfedugddufeejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepkfffgggfuffvfhfhjggtgfesthejredttdefjeenucfhrhhomheprfhhihhl ihhpucfotgfirhgrthhhuceophhhihhlihhpsehphhhilhhiphhmtghgrhgrthhhrdgtoh hmqeenucggtffrrghtthgvrhhnpeegudfffeffjeejtdfhtefgtdduieevudeihfdtjedv fffgteefuefhgfelueekgfenucffohhmrghinhepghhithhhuhgsrdgtohhmnecuvehluh hsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepphhhihhlihhpsehp hhhilhhiphhmtghgrhgrthhhrdgtohhm X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 5 May 2022 15:39:31 -0400 (EDT) Message-ID: <7dbcbd6e-4038-79f1-ec83-f93434f61985@philipmcgrath.com> Date: Thu, 5 May 2022 15:39:30 -0400 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.8.1 Content-Language: en-US References: <5375de56eda0ee7c218ddf48da61ea600c0d2589.1651594312.git.philip@philipmcgrath.com> <95374cf5b8dc2f7e2406506f00df274e29122077.camel@ist.tugraz.at> From: Philip McGrath In-Reply-To: <95374cf5b8dc2f7e2406506f00df274e29122077.camel@ist.tugraz.at> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit 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=1651781513; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to: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=TYV7EYxGxJDuhtydJU+gx//ZbZcjC22jlpSQV0hjbf0=; b=unBfMaP5AFt16mNYp4lV3OCM0OWCg5u0jA77/oxcJti8suyCZNQD+Sr+PyosYn+2iUL/O6 Sjz4qaQOFdKLUYDcuIa6q9VjLO8oEQ4aqNpilDyQJop/RDURwAxelZMiLrUGAsOpZ9mIds IgI109QC1oBPCPIiGHpamOp40UAiEcmogmxQ7Mq+GtZQxf3E/KXnNbZVDXwiVe97apSU/Y 0OkKDMtUF4a2zxLwE3JLM60Gdu4+hlpFTtsRMDn9tqcfOPAOoZwUYL5tvqWMxG8o7+ounF ZlRVKRPplgw74zCcP2Yup6YahXSVBHdocGKQYLNw0R5hAv4n/PWNNA5CZM2omQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1651781513; a=rsa-sha256; cv=none; b=sVRoZWqeqVVQq1ltofTiQA2N/t0dupKjipQwShHrl+8DfAB3aU9AK4mHQI8K+smGGVJrvC 1AYcXmHSl9mJzOi6Va+kZDsVvvSReAzPWhKWHctd7XI6ethBYMZgoCgUeZxYyOhaJ04PDQ AGvDQOoDA0y9SfCMpatcm4sCG0uhfoB0r6gW0p3nS/+ueJOzQf74CKjdJK3HUODHOqKM9j eZhbCmo/DPIUUCg2cV6wrhf8rbGi00ZQ+bdqRFa29Orlxa2BfqUM0IvhPz2hjO98aQ7NqG Z71rvHC38YHWSQhxVZ7mNp+ZJTZ3EImR6hKwjje6KE+GAAs21hm+5TSp2cKbbg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=philipmcgrath.com header.s=fm1 header.b=KGeyUmSp; dkim=fail ("headers rsa verify failed") header.d=messagingengine.com header.s=fm1 header.b=dOK8ulyz; 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: 0.41 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=philipmcgrath.com header.s=fm1 header.b=KGeyUmSp; dkim=fail ("headers rsa verify failed") header.d=messagingengine.com header.s=fm1 header.b=dOK8ulyz; 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: EB749363F8 X-Spam-Score: 0.41 X-Migadu-Scanner: scn0.migadu.com X-TUID: NzYzxEKHLMS7 Hi, On 5/4/22 02:58, Liliana Marie Prikler wrote: > Am Dienstag, dem 03.05.2022 um 14:33 -0400 schrieb Philip McGrath: >> * gnu/packages/chez.scm (stex)[arguments]: Run 'scheme' to determine >> the machine type. > How is this beneficial? At some high level of generality, there are two ways we could determine the machine type:* 1. We could predict ahead of time what it will be; or 2. We can ask the `scheme` executable we actually have. Trying to predict is easy to get wrong, because there's more than one possible machine type for a given system: currently that's true due to "--threads", and it will be even more true with "portable bytecode" back-ends. The `scheme` executable we're compiling with knows the definitive answer. This lets us remove the only use of 'nix-system->chez-machine'. > What about cross-compilation? I remembered this backwards; it should be `(#%$target-machine)` rather than `(machine-type)`. I'll fix that. But note that upstream stex does not support cross-compilation (though I hope to fix that one day). For example, both `Makefile` and `Mf-stex` contain: m := $(shell echo '(machine-type)' | $(Scheme) -q) (* To some extent there's an XY problem here: we don't care about the machine type per se, we care about the extension of intermediate object files we don't want to have installed, analogous to ".o" files. I think [1] upstream may have incidentally fixed the issues that made us build in that odd way, but it hasn't been part of a release yet. I plan to reevaluate before Racket 8.6, when we'll need [2] anyway to fix a bug exposed by Zuo.) -Philip [1]: https://github.com/dybvig/stex/pull/5 [2]: https://github.com/dybvig/stex/pull/6