From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.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 AGwQJAty42LcFQAAbAwnHQ (envelope-from ) for ; Fri, 29 Jul 2022 07:37:15 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id AOFBIwty42JiFAAAG6o9tA (envelope-from ) for ; Fri, 29 Jul 2022 07:37:15 +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 440142049B for ; Fri, 29 Jul 2022 07:37:15 +0200 (CEST) Received: from localhost ([::1]:35798 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oHIgU-0004s0-0t for larch@yhetil.org; Fri, 29 Jul 2022 01:37:14 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58038) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oHIgC-0004rn-1y for help-guix@gnu.org; Fri, 29 Jul 2022 01:36:58 -0400 Received: from out3-smtp.messagingengine.com ([66.111.4.27]:33739) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oHIgA-0006uD-Cf for help-guix@gnu.org; Fri, 29 Jul 2022 01:36:55 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id A52FB5C013E for ; Fri, 29 Jul 2022 01:36:51 -0400 (EDT) Received: from imap52 ([10.202.2.102]) by compute4.internal (MEProxy); Fri, 29 Jul 2022 01:36:51 -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=fm3; t=1659073011; x=1659159411; bh=8dRsFKTQ4SsatRp9P5PoGpRN5 bylg8a+ZjYQqKWKt9c=; b=NbIm3ouLAxSYoHcGbsB7yE7ZmFn13k+AQ7yMXanDa CBr4qTj78jkuFpy9IHoHE8moUGlooZHDhAD8F7wXWjqCcvbZDHS8ec/+FEaxlXf3 9v6DZ/IwVHrnVOMqXN2b9Fa4EyQtAt7opUwfSDsq3H3XEPA7GaXIuMSvlyKZhC2n hm4KFeZwtjnGhh+Wi5HtvKjxHhdYgi3OqEQMuhFL2WpFP3L/dUoRoQdX2/g7YRZo 4sze7cqeiU9SgDVB3mtvYAX6pu6GpuWdpTBDBhy/fM6zv8Auy6gzR/qwrdmyoJqi UXQnAHEOJE0DMhUO2WZJE+2C25+CN7NspCCxESxY7Ukgw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:date:feedback-id:feedback-id: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=fm3; t=1659073011; x=1659159411; bh=8 dRsFKTQ4SsatRp9P5PoGpRN5bylg8a+ZjYQqKWKt9c=; b=3aOUVxUO6SoQ7ZOn6 8bPELwF+6DcpHmOMdCOPtU/ozE0TR2+eAUMFUMe2C+SbYoM9xB+T7tDCHjo87P38 w0qsad7QIqW2RiyQGhtYv1Ec0OTeWAs6jOhs+8NpH4arnLVy12lc6Fsqc2L3hZzX 6kYeqNy6QqUFr5+twnC2LYQD+BlOVBDcYkKoI3WdBxOxeSJE58L6unLghRnUMBYi KaFsOjjbzL0GfMVu7b9+IqtZNSnk7R1l96zsNapMKJ6RFz6TL3SYXIKW1s0NGWnf JQ4P+U7JYhHdOGJfYB46QCJ9bKWpJm8jLW0rBG+MvQw+DjC3ikuYuePohPEZp4JD 2Wp7g== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrvdduiedggeduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefofgggkfgjfhffhffvufgtgfesth hqredtreerjeenucfhrhhomhepfdfrhhhilhhiphcuofgtifhrrghthhdfuceophhhihhl ihhpsehphhhilhhiphhmtghgrhgrthhhrdgtohhmqeenucggtffrrghtthgvrhhnpeevff efleefueeujeegleegjeelgfehgefhteetjeejjedvgedthffggfegfeeihfenucevlhhu shhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehphhhilhhiphesph hhihhlihhpmhgtghhrrghthhdrtghomh X-ME-Proxy: Feedback-ID: i2b1146f3:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 5ECBDC6008B; Fri, 29 Jul 2022 01:36:51 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.7.0-alpha0-758-ge0d20a54e1-fm-20220729.001-ge0d20a54 Mime-Version: 1.0 Message-Id: <5edb2b76-2df5-42d4-84ec-f844a8bbf985@www.fastmail.com> In-Reply-To: <9b97fff1-9de9-4e81-bb5d-1dd20a17b6fb@www.fastmail.com> References: <9b97fff1-9de9-4e81-bb5d-1dd20a17b6fb@www.fastmail.com> Date: Fri, 29 Jul 2022 01:36:31 -0400 From: "Philip McGrath" To: help-guix@gnu.org Subject: Re: Debugging cross-compilation dependencies Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=66.111.4.27; envelope-from=philip@philipmcgrath.com; helo=out3-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" 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=1659073035; 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: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=8dRsFKTQ4SsatRp9P5PoGpRN5bylg8a+ZjYQqKWKt9c=; b=S/DOBtB3l6u1DXSq7Jw+TVfUvZmohCPaXK8FyevFhtuWY0I7AR4kcTY0T3QjsGhGeVZVbz kLkZYno/vh79OQArJYPfmtyXqToQ9b4+cZB7kRBilS6813dMRktsMOpEKWs8jTdCmsCUdM grUDmqkNl9jfjf4EGf+6mF4W0FJtE1rfHQjY6hI+qdBWTOAA9ay2tvMpJMElSSqBGoFAep tKOA+ZLuUmlEa4dsCybg/fak4i6Q0XB+T7OyNlUfjBoTuDzt5D7+cgyfJiOhWAZ9AEZgLD PA44fC9L5y/LheNQmDrNzc7WghSpx3HEXRHWzBZ0QOwVBEiwFiSbds3CPaae/A== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1659073035; a=rsa-sha256; cv=none; b=h71QqV56ei/pNvrlMgBbsLY9CXAmHuOsdPv/4pfX3BtceijU9rZusBtaDRTekvKQlip7Gk IBB91HdamvHstXG0aX3230maz+sRKuUltRYAJiH/9Kn5JyJDDdNwC2jnADVZbmRYUmkM8E B2OoS9T7QMpZkKwizRbtuzQytwFca6ythschG1qmbj/qFiETr9vLBFjTPweKJffuSNTn4V DdQ9nph/8QaslyxhnSTqguFbxqQEFlQ5jBxBHYkmol5y0giTcntXIDAvW0tl5SyD6HKjG+ HhDy6iXdzEWizofv3Ti8ceZ7u3w3DvHridvrX2Gh6YTPy4xbS+6agfzA8B7OeA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=philipmcgrath.com header.s=fm3 header.b=NbIm3ouL; dkim=fail ("headers rsa verify failed") header.d=messagingengine.com header.s=fm3 header.b=3aOUVxUO; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 2.79 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=philipmcgrath.com header.s=fm3 header.b=NbIm3ouL; dkim=fail ("headers rsa verify failed") header.d=messagingengine.com header.s=fm3 header.b=3aOUVxUO; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 440142049B X-Spam-Score: 2.79 X-Migadu-Scanner: scn0.migadu.com X-TUID: 211D7Mjp4b8h On Sat, Jul 23, 2022, at 7:30 AM, Philip McGrath wrote: > Hi Guix, > > For the upcoming Racket 8.6 release, I've been trying to get the=20 > Chez-Scheme=E2=80=93based implementation working for architectures wit= hout=20 > native code-generation backends [1] and initial support for=20 > cross-compilation. (Full support for cross-compilation will come after=20 > there is a `racket-build-system`, since it involved building a=20 > cross-compilation plugin for the compiler, and tooling for doing so=20 > lives in a different package, but I had a problem during the=20 > bootstrapping process with QEMU [2].) > > I thought I had things working at least up through=20 > `chez-scheme-for-racket`, but, when I later removed the QEMU=20 > binfmt_misc package from my (foreign) system, I discovered that a=20 > dependency was incorrectly being cross-compiled when it needed to be=20 > run on the build machine. Specifically, the problem was with Zuo (a=20 > tiny Racket-like language for build scripts, [3] which replaces comple= x=20 > makefiles in 8.6), which was particularly surprising, since it is only=20 > ever used in `native-inputs`. > > I've put my work in progress at [4].=20 Much to my surprise, I discovered I can avoid the problem by changing co= de for #:make-flags like this: ``` #~(string-append "ZUO=3D" #$(this-package-native-input "zuo") "/bin/zuo")) ``` to instead use `%build-inputs`, like this: ``` #~(string-append "ZUO=3D" (search-input-file %build-inputs "/bin/zuo")) ``` Is this expected behavior? Maybe `this-package-native-input` is supposed= to only be used under `ungexp-native`, rather than `ungexp`? -Philip