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 8J2lIezb22IMLgAAbAwnHQ (envelope-from ) for ; Sat, 23 Jul 2022 13:30:52 +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 AKa/Iezb22IYFAAA9RJhRA (envelope-from ) for ; Sat, 23 Jul 2022 13:30:52 +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 7775F3F567 for ; Sat, 23 Jul 2022 13:30:51 +0200 (CEST) Received: from localhost ([::1]:34636 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oFDLO-0007XZ-IP for larch@yhetil.org; Sat, 23 Jul 2022 07:30:50 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40232) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oFDL2-0007XI-6i for help-guix@gnu.org; Sat, 23 Jul 2022 07:30:28 -0400 Received: from wout3-smtp.messagingengine.com ([64.147.123.19]:45765) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oFDL0-0007lt-0V for help-guix@gnu.org; Sat, 23 Jul 2022 07:30:27 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id 173133200AA9 for ; Sat, 23 Jul 2022 07:30:22 -0400 (EDT) Received: from imap52 ([10.202.2.102]) by compute4.internal (MEProxy); Sat, 23 Jul 2022 07:30:22 -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:message-id:mime-version :reply-to:sender:subject:subject:to:to; s=fm3; t=1658575821; x= 1658662221; bh=5cbIZEwP8lkMDMh8eO9DHLrGPcCSNOrCN665jHTemVo=; b=f QW8heFh4r4HQ1HL0bxK0EezdpR4NPNZyR1Dm4jbsq9DIA58kCOkx5hT61cOnNyxC HBU+jX1zTeKqr/APu0zMQ0XEwwikRzVUz1Dm4NkzQqR0XXSyBXhDwCsVu5fQQsa1 dLFCFAK4G7gnFfQ/bRaIYbVoOOMNtMhzdZEQK+EO5Otd/6KrpLQ6bX13e/QRbr3r ZhIm/EglJL3zQUPhvbYobJAGZljOX8JTK32ayGtJoR5h0YJU1aS2VBcZBJji+VnU IbsN1KOQuS4tIdSJLuHpg9EGQQuTBB0OJUVMoFINPJVriKmukFCA1BEuWpKWuwSE j7blbqJzn4t/DBZ3gJiLw== 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 :message-id:mime-version: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=1658575821; x=1658662221; bh=5cbIZEwP8lkMDMh8eO9DHLrGPcCS NOrCN665jHTemVo=; b=QZDXDPAevPL8cJKwNXTGtCWt1Z6hQgXqYWJlBg3xB6y9 SpLt1S9wxnmxzYZyXqd0ZhATcRw2/NfF+vqBzpequYALZF5wzVP2BSPsuxZABvvv yddhM/y4tTb5HmFjJNTGiXK4eL5a0xu8Vyr6fJxpuV9gZ2/LRA5Wx1E/d0yBpEDh V6aa4kQuadX8heYrgHVWS6CnDeZQJ0A8a3n71zPvvI3HiZOyqBB8DHe/HyBT2udi 1T1+kxaY6L3Vts4Qo9gxIabNTdr/Qie37BlFpZEp4lOq6uwU3ehPTAPvgC3DQjWp F7Cdq35839+nqG+QjfwScO4M9wZkzg7d7RvZioH7Tg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrvddtgedggeefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefofgggkfffhffvufgtgfesthhqre dtreerjeenucfhrhhomhepfdfrhhhilhhiphcuofgtifhrrghthhdfuceophhhihhlihhp sehphhhilhhiphhmtghgrhgrthhhrdgtohhmqeenucggtffrrghtthgvrhhnpeelheduje fhhffgueehgeegtdejkeekjeelvdetueefgeeiteeigeelveetvefhteenucffohhmrghi nhepughishgtohhurhhsvgdrghhrohhuphdprhgrtghkvghtqdhlrghnghdrohhrghdpgh hithhlrggsrdgtohhmnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghi lhhfrhhomhepphhhihhlihhpsehphhhilhhiphhmtghgrhgrthhhrdgtohhm X-ME-Proxy: Feedback-ID: i2b1146f3:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 5CE11C6008B; Sat, 23 Jul 2022 07:30:21 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.7.0-alpha0-757-gc3ad9c75d3-fm-20220722.001-gc3ad9c75 Mime-Version: 1.0 Message-Id: <9b97fff1-9de9-4e81-bb5d-1dd20a17b6fb@www.fastmail.com> Date: Sat, 23 Jul 2022 07:30:01 -0400 From: "Philip McGrath" To: help-guix@gnu.org Subject: Debugging cross-compilation dependencies Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=64.147.123.19; envelope-from=philip@philipmcgrath.com; helo=wout3-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=1658575852; 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:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=5cbIZEwP8lkMDMh8eO9DHLrGPcCSNOrCN665jHTemVo=; b=EtOThf3+D0LW1QFP34mfi3UkBnLwWJPKju/GSyfcg7PBMhya+EQjjfXw79HkSzx7a3Cxvn +PeaBFurSSeRljcjIRSZ8eqbhI7ebw9hnMSkPK9wQat8pTlju2vrvkGUUmd1Rpkxm7ZH9I F8/kb4CYIf0mUxFb2ftQqEpkILUwxMy/+Qn9w3Bt+PDJ4vlzHzKwAYF5c+Ul4mGhd6lD1m sqnTcpHnIKKq8XPd+76pb3RHq+nSMf2/q3cm2R99aRA3LJxPDkJM34FiRu4tHouHaNDqCG BcH6z1GfuB93TgxezYjrJ9JWfN8QgMN3MnQwd9eSQmIEesn3wQzEbrHK/1H75w== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1658575852; a=rsa-sha256; cv=none; b=PEuxm80plILDfxz/a1TUEFcfXPNJh6DvQ8q3lzr5/GsjkLLHuXr/robHT9+/VR8vjfPfZh pK9Cz4DtfYDqvQAWV/WiWmaZ3ia1BIZrv/UusdsdahPD+NZ2WbFYdsl4ZQzonakP+kek+0 XZ40qa7+utjoGud/Oi9tGc6+kb64sLwjw1onNN5qklOQXSa/dKt2QHvWENrmg/L2T+rMfO n3vhvnLInHDTR+ZnnffWWBKwzpZN2dPWE8viBDMV02m+UKZD+J2ALkMfIAXHlqeU12JOHS 67g8x/S6hgtzEFw185+Q0+1GIg1DCTvhgU2gTC9OdViksN/iKiO20A6oFKevOQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=philipmcgrath.com header.s=fm3 header.b="f QW8heF"; dkim=fail ("headers rsa verify failed") header.d=messagingengine.com header.s=fm3 header.b=QZDXDPAe; 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.18 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=philipmcgrath.com header.s=fm3 header.b="f QW8heF"; dkim=fail ("headers rsa verify failed") header.d=messagingengine.com header.s=fm3 header.b=QZDXDPAe; 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: 7775F3F567 X-Spam-Score: 2.18 X-Migadu-Scanner: scn1.migadu.com X-TUID: qwKQWK2GFWqF Hi Guix, For the upcoming Racket 8.6 release, I've been trying to get the Chez-Sc= heme=E2=80=93based implementation working for architectures without nati= ve code-generation backends [1] and initial support for cross-compilatio= n. (Full support for cross-compilation will come after there is a `racke= t-build-system`, since it involved building a cross-compilation plugin f= or the compiler, and tooling for doing so lives in a different package, = but I had a problem during the bootstrapping process with QEMU [2].) I thought I had things working at least up through `chez-scheme-for-rack= et`, but, when I later removed the QEMU binfmt_misc package from my (for= eign) system, I discovered that a dependency was incorrectly being cross= -compiled when it needed to be run on the build machine. Specifically, t= he problem was with Zuo (a tiny Racket-like language for build scripts, = [3] which replaces complex makefiles in 8.6), which was particularly sur= prising, since it is only ever used in `native-inputs`. I've put my work in progress at [4]. With that Guix commit, if I run `./= pre-inst-env guix build --keep-failed --target=3Dpowerpc64le-linux-gnu c= hez-scheme-for-racket`, the log shows that these flags get passed to Zuo= 's configure (generated via Autoconf): ``` configure flags: ("CC_FOR_BUILD=3Dgcc" "CONFIG_SHELL=3D/gnu/store/4y5m9l= b8k3qkb1y9m02sw9w9a6hacd16-bash-minimal-5.1.8/bin/bash" "SHELL=3D/gnu/st= ore/4y5m9lb8k3qkb1y9m02sw9w9a6hacd16-bash-minimal-5.1.8/bin/bash" "--pre= fix=3D/gnu/store/ldjkknahc9hl6vzc6mqxa5zga4qd4lmf-zuo-1.0-racket8.5.900-= guix1" "--enable-fast-install" "--build=3Dx86_64-unknown-linux-gnu" "--h= ost=3Dpowerpc64le-linux-gnu" "--prefix=3D/gnu/store/ldjkknahc9hl6vzc6mqx= a5zga4qd4lmf-zuo-1.0-racket8.5.900-guix1" "CPPFLAGS=3D-DGUIX_RKTIO_PATCH= _BIN_SH=3D/gnu/store/q9pidl3hg9l0qga88gsgjs8brv82qy0v-bash-minimal-5.1.8= /bin/sh") ``` which leads to: ``` starting phase `build' powerpc64le-linux-gnu-gcc -DGUIX_RKTIO_PATCH_BIN_SH=3D/gnu/store/q9pidl3= hg9l0qga88gsgjs8brv82qy0v-bash-minimal-5.1.8/bin/sh -g -O2 -DZUO_LIB_PAT= H=3D'"'"../zuo/lib"'"' -o zuo ../zuo/zuo.c =20 ./zuo . zuos-to-run-and-install ./zuo: ./zuo: cannot execute binary file make: *** [Makefile:24: zuos-to-run-and-install] Error 126 error: in phase 'build': uncaught exception: %exception #<&invoke-error program: "make" arguments: ("-j" "12") exit-s= tatus: 2 term-signal: #f stop-signal: #f>=20 phase `build' failed after 2.2 seconds command "make" "-j" "12" failed with status 2 note: keeping build directory `/tmp/guix-build-zuo-1.0-racket8.5.900-gui= x1.drv-4' builder for `/gnu/store/66n0cf0fyzwbv5j29f12if2ghk69p7vq-zuo-1.0-racket8= .5.900-guix1.drv' failed with exit code 1 build of /gnu/store/66n0cf0fyzwbv5j29f12if2ghk69p7vq-zuo-1.0-racket8.5.9= 00-guix1.drv failed View build log at '/var/log/guix/drvs/66/n0cf0fyzwbv5j29f12if2ghk69p7vq-= zuo-1.0-racket8.5.900-guix1.drv.gz'. cannot build derivation `/gnu/store/4lrhirlyp0h7bb3ihwdknh86pm8yvlgx-che= z-scheme-for-racket-9.5.9.2.drv': 1 dependencies couldn't be built guix build: error: build of `/gnu/store/4lrhirlyp0h7bb3ihwdknh86pm8yvlgx= -chez-scheme-for-racket-9.5.9.2.drv' failed ``` (It's an additional issue that cross-compiling Zuo currently fails, but = that's unrelated to the fact that we shouldn't be trying to cross-compil= e Zuo.) I'm not sure how to debug this. In particular, `guix graph` doesn't seem= to support `--target=3D`. -Philip [1]: https://racket.discourse.group/t/chez-for-architectures-without-nat= ive-backends/950 [2]: https://racket.discourse.group/t/chez-for-architectures-without-nat= ive-backends/950/13 [3]: https://docs.racket-lang.org/zuo/ [4]: https://gitlab.com/philip1/guix-patches/-/commit/e28ff4c0f520a88aa7= 81f847f52b0bbd12948caa