From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id +C1ZOooKfmBxGQEAgWs5BA (envelope-from ) for ; Tue, 20 Apr 2021 00:56:10 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id qFPiNYoKfmAjSAAAbx9fmQ (envelope-from ) for ; Mon, 19 Apr 2021 22:56:10 +0000 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 572EB10F20 for ; Tue, 20 Apr 2021 00:56:10 +0200 (CEST) Received: from localhost ([::1]:37402 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lYcoL-0004zO-6U for larch@yhetil.org; Mon, 19 Apr 2021 18:56:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37342) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lYcnW-0004y5-5v for help-guix@gnu.org; Mon, 19 Apr 2021 18:55:18 -0400 Received: from cascadia.aikidev.net ([173.255.214.101]:56472) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lYcnU-0003Db-68 for help-guix@gnu.org; Mon, 19 Apr 2021 18:55:17 -0400 Received: from localhost (unknown [IPv6:2600:3c01:e000:21:21:21:0:100b]) (Authenticated sender: vagrant@cascadia.debian.net) by cascadia.aikidev.net (Postfix) with ESMTPSA id C83FE1AAB4; Mon, 19 Apr 2021 15:55:09 -0700 (PDT) From: Vagrant Cascadian To: Grant Wilson II , Leo Famulari Subject: Re: Pinebook pro build In-Reply-To: References: Date: Mon, 19 Apr 2021 15:55:05 -0700 Message-ID: <875z0hq3zq.fsf@yucca> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Received-SPF: none client-ip=173.255.214.101; envelope-from=vagrant@debian.org; helo=cascadia.aikidev.net X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: help-guix@gnu.org Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1618872970; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=nnhRNqZyjgRwjNheKP9VwDpl8AY9VgKFDQPnZr2Q7TU=; b=aT7QyGT7RwfNFXTdMKX8LtNMFjrXs8ZazA2nz8Qlr3BvpomGs34nQPQsQDrnsXmuyAN+zE Mme8Rg6UBia26jes7uc5NuUyo0JB3EuIBxx/tvygZkKaYlxRsjyVwrrkBj0xcS8cMviK4E 2rOi9GmI4kENR4UbGYN+5sftOIGMdG/L91vR/TPH0nUq6ENtWIBBSHqHFYmh5+4LQMtFpe atjy+uVpN3x65MVV5TR9QuqcZEmV+wLNYmv/qEipVQAH52BXNZus4ZqIo4ePLQCnl4KOc4 7WHfS4vMxXfkqvT/QCqJzeOuWAP4Y945QA/3wn1450QJFP8W0HKTFxjOm/lEyg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1618872970; a=rsa-sha256; cv=none; b=VgI5OPacTY0iRb8sAJ3ziP6IE/Gf+aHAEou5TmZQxaJNI5QLrxuuVDXHUd7GYjfkPYH7jb ez4twuJ8h6nq9qnquGbGl7ObgcFr/xNqR2jODoFGkfMXgYhbwHvUoAC7tUMrJffMlakpOO giBgP+lqySZw8t9IlqWZ4f4XgUX2u+/lar4IV+sexGOr15PI5hVPTJTy1m5KOlbj5hkp0G JYs7j79pcTtLyyNWS3recytRl1ULNDcOYgiYTqSkCzBpKabWchf3T2lEgcCiYpaEJdgJ1E +b226XvXM2kVc6/e3Hn3lt6cM7Pi2I20XX65rI3khpLJoTCNUsPzePpLSaTHNA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Migadu-Spam-Score: -4.04 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Migadu-Queue-Id: 572EB10F20 X-Spam-Score: -4.04 X-Migadu-Scanner: scn0.migadu.com X-TUID: ybL0oe77LH6N --=-=-= Content-Type: text/plain On 2021-04-18, Grant Wilson II wrote: > If I interpret the source correctly, "firmware" is being provided to the > package as a native input. > When I attempt the build without cross compiling then it does succeed... > `guix build -e "(@ (gnu packages bootloaders) u-boot-pinebook-pro-rk3399)"` > > However that does defeat the purpose. > > Why would the "firmware" native input not be available when targeting > aarch64-linux-gnu? That seems to be the problem, yes... It is failing in the set-environment phase... (define-public u-boot-pinebook-pro-rk3399 ... (add-after 'unpack 'set-environment (lambda* (#:key inputs #:allow-other-keys) (setenv "BL31" (string-append (assoc-ref inputs "firmware") "/bl31.elf")) #t)) Works: guix build arm-trusted-firmware-rk3399 guix build u-boot-pinebook-pro-rk3399 guix build --target=aarch64-linux arm-trusted-firmware-rk3399 Fails: guix build --target=aarch64-linux u-boot-pinebook-pro-rk3399 So the firmware (arm-trusted-firmware-rk3399) exists, but for some reason isn't available while cross-building. It appears to be present in the both the cross-built and "regular" firmware package: $ guix build --target=aarch64-linux arm-trusted-firmware-rk3399 /gnu/store/v3nkj3hiihllwp9kn65ih7xi2bjbp58v-arm-trusted-firmware-rk3399-2.4 $ guix build arm-trusted-firmware-rk3399 /gnu/store/jpm4hfqh08s9ns3pd5h3r798z7pdbp0m-arm-trusted-firmware-rk3399-2.4 $ ls /gnu/store/v3nkj3hiihllwp9kn65ih7xi2bjbp58v-arm-trusted-firmware-rk3399-2.4 /gnu/store/jpm4hfqh08s9ns3pd5h3r798z7pdbp0m-arm-trusted-firmware-rk3399-2.4 /gnu/store/jpm4hfqh08s9ns3pd5h3r798z7pdbp0m-arm-trusted-firmware-rk3399-2.4: bl31.elf rk3399m0.bin rk3399m0.elf rk3399m0pmu.bin rk3399m0pmu.elf share /gnu/store/v3nkj3hiihllwp9kn65ih7xi2bjbp58v-arm-trusted-firmware-rk3399-2.4: bl31.elf rk3399m0.bin rk3399m0.elf rk3399m0pmu.bin rk3399m0pmu.elf share So... I'm not very familiar with how --target=ARCH cross-building works in guix, but that somehow appears to trigger the issue... live well, vagrant --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEARYKAB0WIQRlgHNhO/zFx+LkXUXcUY/If5cWqgUCYH4KSgAKCRDcUY/If5cW qllWAP0fi8BpDgrTQrtYReEhsbSIqA8sfYBZrS70VIWePMiDLwEAycUHXsVYEkJc jRZJ2EUn6zoMLEDCM7/Gb//ZqUKbAgI= =2Mfg -----END PGP SIGNATURE----- --=-=-=--