From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:bcc0::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id OKNSHV4qf2AfbgEAgWs5BA (envelope-from ) for ; Tue, 20 Apr 2021 21:24:14 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id KM/0GF4qf2AGfQAAB5/wlQ (envelope-from ) for ; Tue, 20 Apr 2021 19:24:14 +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 6E48325719 for ; Tue, 20 Apr 2021 21:24:13 +0200 (CEST) Received: from localhost ([::1]:39840 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lYvyl-0000CV-43 for larch@yhetil.org; Tue, 20 Apr 2021 15:24:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:49310) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lYvyd-0000CJ-13 for bug-guix@gnu.org; Tue, 20 Apr 2021 15:24:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:44501) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lYvyc-0003pD-PJ for bug-guix@gnu.org; Tue, 20 Apr 2021 15:24:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lYvyc-0006Mq-LR for bug-guix@gnu.org; Tue, 20 Apr 2021 15:24:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#47908: Cross building disk image for ARM Asus C201 fails Resent-From: Maxime Devos Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Tue, 20 Apr 2021 19:24:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47908 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Martin , 47908@debbugs.gnu.org Received: via spool by 47908-submit@debbugs.gnu.org id=B47908.161894660824424 (code B ref 47908); Tue, 20 Apr 2021 19:24:02 +0000 Received: (at 47908) by debbugs.gnu.org; 20 Apr 2021 19:23:28 +0000 Received: from localhost ([127.0.0.1]:56046 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lYvy3-0006Lq-Jd for submit@debbugs.gnu.org; Tue, 20 Apr 2021 15:23:27 -0400 Received: from albert.telenet-ops.be ([195.130.137.90]:49594) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lYvy1-0006Lf-GL for 47908@debbugs.gnu.org; Tue, 20 Apr 2021 15:23:26 -0400 Received: from ptr-bvsjgyjmffd7q9timvx.18120a2.ip6.access.telenet.be ([IPv6:2a02:1811:8c09:9d00:aaf1:9810:a0b8:a55d]) by albert.telenet-ops.be with bizsmtp id v7PP2400J0mfAB4067PP3g; Tue, 20 Apr 2021 21:23:24 +0200 Message-ID: <5b3bf4b60ea3f5e4522981a0111d8743b8602e34.camel@telenet.be> From: Maxime Devos Date: Tue, 20 Apr 2021 21:23:17 +0200 In-Reply-To: <96121f63-a710-0364-0408-b61907f8e5f5@disroot.org> References: <96121f63-a710-0364-0408-b61907f8e5f5@disroot.org> Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-dPefPXRWjF0DmxD0EIBo" User-Agent: Evolution 3.34.2 MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telenet.be; s=r21; t=1618946604; bh=made/1WRjAQwDS2P6EkJV5azCworKkxoPhamJpp0s4g=; h=Subject:From:To:Date:In-Reply-To:References; b=UnYhOjKjqNdkW+o/0Fdnwv7USO/se5dRdjEGqwXBx9eLpjyaU0Yy+mZoaTIkWbvN4 fsyzkoYq92xCp054SbVIWu/IzYeag4HMy6S/kmj+RJZlDujlgz6qZxIme8zJrnSdLZ 4BnSJ67cSLQZZXdGh8OUIJmF5SlDdey0wHnX6J+LLrLPI7cEMBNefVrt+Tk3Vedzfq twtawHV5WF4gOT2sH3bbfzpRKC22zpQis5V8GgfKbKdirX7kcYSGf7lJjS5mruCuns r03gNb6TZGZNFr80Jk6he5Dger/yv8HIS3JMYm44fs3wfHhx4wldPMNOzPLUcVd9Vj YAhYlD0COrZbQ== X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1618946654; 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: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=made/1WRjAQwDS2P6EkJV5azCworKkxoPhamJpp0s4g=; b=SSMef278XhWqEY8ihwwKReLwwhnB32CBtabw4HJcPEOpJu6080L8HfXOeN0sdgIqAPADyo lEs+LW50DWHtY3YeqT/VqM+oiEwMOoa2mKHVwxg7S3Z92fa7gzsE7Ee2aUp3IHz9hDkCwG dE7g4xNh8RDrXBWGts1AlMZ5Mx1uIPKWx0WYg48CuP7LaZs2ZyGX8nxKTWCVvlk8h+g5nM QjJLh0rfn2lqGjjV0gHky03uZCM/FAAIob6xHXqoLkxfu/djT4mgFmsrAtVJ2WcRDPN6Pi eIJLfRrsxaNHdyKQmdprhtxqrhh9eB4PafqkvO8UoR45PDj1aPEs/YBhWPCbjg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1618946654; a=rsa-sha256; cv=none; b=FTnwOzw8XBC9ekSImkozZ7bLa7ocKggxBJ33ZfJjTwizRvxJwYk/TEvM5ZxpAzgH2zQVDO 5maP1GlA4I5I9wsrTW5ItoU/Od6okuswWgDQKdzt6s/wD0wByBGbCSvAGDD6B3dE8vzIas MI7MVuVo3jBlOppZPUNFUSxSBjmWeOBGG7T7+ItutXfXTdbk9CQl/6EQmTNADBoxVijpPB SCF1lpUtv6HDMUrEsOfKfMz/4HimZtZGOUfZ3K6HspPufzXoSoY5ucF3wVfAB0IDcLd3be 30WHED+KSJaXLSjrNX4AEEoMDc77C7q+6ouL5fRM0J30PE0OsTMZ1bcxamEc8g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=telenet.be header.s=r21 header.b=UnYhOjKj; dmarc=fail reason="SPF not aligned (relaxed)" header.from=telenet.be (policy=none); spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Spam-Score: -3.44 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=telenet.be header.s=r21 header.b=UnYhOjKj; dmarc=fail reason="SPF not aligned (relaxed)" header.from=telenet.be (policy=none); spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Queue-Id: 6E48325719 X-Spam-Score: -3.44 X-Migadu-Scanner: scn0.migadu.com X-TUID: M0UhaphgCIGx --=-dPefPXRWjF0DmxD0EIBo Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Martin via Bug reports for GNU Guix schreef op di 20-04-2021 om 11:37 [+000= 0]: > Hello, > I'm trying to create a disk image for an Asus C201 chromebook using the= =20 > command 'guix system image test.scm' where test.scm based on=20 > https://github.com/guix-mirror/guix/blob/master/gnu/system/examples/asus-= c201.tmpl=20 > but unfortunately this operation fails on my x86 dev machine (guix 53ed3e= 4): >=20 > --- > [...] > View build log at=20 > '/var/log/guix/drvs/z2/diqxmpr8zkiyk2d5vma4flwvd3bzk6-vboot-utils-R63-100= 32.B.drv.bz2'. > guix system: error: build of=20 > `/gnu/store/z2diqxmpr8zkiyk2d5vma4flwvd3bzk6-vboot-utils-R63-10032.B.drv'= =20 > failed > --- >=20 > the logs: > [...] > In unknown file: > 2 (string-append #f "/bin/cmp") > In ice-9/boot-9.scm: > 1669:16 1 (raise-exception _ #:continuable? _) > 1669:16 0 (raise-exception _ #:continuable? _) >=20 > ice-9/boot-9.scm:1669:16: In procedure raise-exception: > In procedure string-append: Wrong type (expecting string): #f > --- > Any ideas how to fix it Some issues I see in the definition of the "vboot-utils" package: (arguments `(#:make-flags (list "CC=3Dgcc" ;; On ARM, we must pass "HOST_ARCH=3Darm" so that= the The "CC=3Dgcc" should be ,(string-append "CC=3D" (cc-for-target)), such tha= t the cross-compiler is used. (cc-for-target) also works when not cross-compilin= g. (lambda* (#:key inputs outputs #:allow-other-keys) (let ((coreutils (assoc-ref inputs "coreutils")) (diffutils (assoc-ref inputs "diffutils"))) [...] (substitute* "tests/bitmaps/TestBmpBlock.py" (("/usr/bin/cmp") (string-append diffutils "/bin/= cmp"))) "diffutils" should be looked up in 'native-inputs', not 'inputs', as "cmp" = is run when building the package. (And not when this package is actually used at = run-time). So that should be (lambda* (#:key native-inputs inputs outputs #:allow-ot= her-keys) (let ((coreutils (assoc-ref inputs "coreutils")) (diffutils (assoc- ref (or native-inputs inputs) "diffutils"))) [...] (substitute* "tests/bitmaps/TestBmpBlock.py" (("/usr/bin/cmp") (string-append diffutils "/bin/cmp"))) p.s. I began replacing "CC=3Dgcc" with ,(string-append "CC=3D" (cc-for-tar= get)) where it seemed necessary in the patch series at Greetings, Maxime. --=-dPefPXRWjF0DmxD0EIBo Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iI0EABYKADUWIQTB8z7iDFKP233XAR9J4+4iGRcl7gUCYH8qJhccbWF4aW1lZGV2 b3NAdGVsZW5ldC5iZQAKCRBJ4+4iGRcl7ugxAP9E8H5qSbN+yUBa/fplw0QlJzYB EyVge8VkdeeztH12kAEAlUMM322SS9nusAPbgqgmtL5muzJXii8QMtqbKxXwMgg= =KuQ7 -----END PGP SIGNATURE----- --=-dPefPXRWjF0DmxD0EIBo--