From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id 6I2sHqyD+GXlXgEAqHPOHw:P1 (envelope-from ) for ; Mon, 18 Mar 2024 19:10:52 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id 6I2sHqyD+GXlXgEAqHPOHw (envelope-from ) for ; Mon, 18 Mar 2024 19:10:52 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=dan.games header.s=fm3 header.b=q9FNm5fX; dkim=fail ("headers rsa verify failed") header.d=messagingengine.com header.s=fm2 header.b=DT5Qw1jT; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1710785452; 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: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=ft8KbeiQd18fym8a+hh9EtZ1KuyMBYXBXjH3uujJzWw=; b=e6Iv+K8USCeiBO4vfLEhtJzmWcZ5CNSCHnrlmPz4LjHsBV4fVIPYWEFs1BYiUL/A1TE5LS ut3E84d0REy9xlyTSmSUpzzdXb6iTZg71S+JSoNuOPbT+7yT/sPftUDRcTBF0/KLp9n3ap VluqMGEN5ejeGA1T/lfyPrczCjVVoIQwtjWPc660Zhub0mw6l6YDIRiusSnGOs6/wBCBdM WMOHVR7ThNKs+/ofws7Di0k+1z2F7jtRgakxJ2KJ8qZd9L9FXQjHyPVUMIaONubz2btJqy LiHNcGPFSU9sVYgMBotg9kuX2+oSD35d4YhsLDHr/bi6Zeg0bmwMpPR8nRnUYA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=dan.games header.s=fm3 header.b=q9FNm5fX; dkim=fail ("headers rsa verify failed") header.d=messagingengine.com header.s=fm2 header.b=DT5Qw1jT; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=none ARC-Seal: i=1; s=key1; d=yhetil.org; t=1710785452; a=rsa-sha256; cv=none; b=YNuOPzQIlE523zSUhqEyOg98W6glHwyHdD3CViJvkhv6Z+dtWyHsTh14pE+zzefcNdOA8X G+L+sMQYVYFZdKT1Tgli+uGCKJYvzo1+uK0OcUnp/DQVZsr7ZLbhFWtoKW1PyupA0tmX2q rol1wWwgm3eLBLsjpYvEaGmi/rICBMdhRjIJMUP4vcL+YWTyNvgfbGwnIkrbT0kxujSvGK nGTNJNDavsCuWUnSssv7y56/gr/v7r78d1VRjoLX+IHoiBbOXs5rwTXhl8gNSj0Io+gKn0 0RyOa5jPhGo+oZcJyUxqO1AWEp0wOb2ZOzkS14dUU2dvH8CvOG2ot0IDT+dFOw== 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 853881BA0C for ; Mon, 18 Mar 2024 19:10:51 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rmHRN-0007eK-Hh; Mon, 18 Mar 2024 14:10:34 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rmHRH-0007da-PJ for bug-guix@gnu.org; Mon, 18 Mar 2024 14:10:24 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rmHRH-0001Ky-G9 for bug-guix@gnu.org; Mon, 18 Mar 2024 14:10:23 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rmHRt-0000OJ-MX for bug-guix@gnu.org; Mon, 18 Mar 2024 14:11:01 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#66866: aarch64 system cross compilation + pinebook pro image broken? Resent-From: dan Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Mon, 18 Mar 2024 18:11:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 66866 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: David Elsing Cc: dev@jpoiret.xyz, Mathieu Othacehe , ludo@gnu.org, efraim@flashner.co.il, 66866@debbugs.gnu.org, janneke@gnu.org Received: via spool by 66866-submit@debbugs.gnu.org id=B66866.17107854181388 (code B ref 66866); Mon, 18 Mar 2024 18:11:01 +0000 Received: (at 66866) by debbugs.gnu.org; 18 Mar 2024 18:10:18 +0000 Received: from localhost ([127.0.0.1]:36586 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rmHRB-0000ME-HV for submit@debbugs.gnu.org; Mon, 18 Mar 2024 14:10:18 -0400 Received: from wfhigh6-smtp.messagingengine.com ([64.147.123.157]:36963) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rmHAQ-000852-1C for 66866@debbugs.gnu.org; Mon, 18 Mar 2024 13:52:59 -0400 Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailfhigh.west.internal (Postfix) with ESMTP id 3157C18000B3; Mon, 18 Mar 2024 13:42:41 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Mon, 18 Mar 2024 13:42:41 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dan.games; h=cc :cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm3; t=1710783760; x=1710870160; bh=ft8KbeiQd1 8fym8a+hh9EtZ1KuyMBYXBXjH3uujJzWw=; b=q9FNm5fXIRFayC7/qxIbKFIqxJ fG8JoAyuOvqnZPzQ1flSv08YFQkQLAZw1u0rbyOfsWZ4SSYRQvO++fZY4kxnF4P9 tXd3OcglLL2XWiSCyF7/rX8GAL+K7nI+/Z8Fc+GrYuTqOq2+sFm9zIcoUsyw0d79 De9ZSJ7xGLa0lvBZjihOCTrixvhOcFGfhZT1sWuaFpSYMBr1X2xKyXJvaZUrxzSa Z76KhMYqkxvMEpSStImhJlIW0G5tLG+0xJY5cT40523ZlE0Kxsj1Z9UpISPsKvoy pwJ/DVjNMe0EDXFWlA7mI73uuX+belv/miGsAgcZ5k8865KUCCJcN0t0cS0Q== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; t=1710783760; x=1710870160; bh=ft8KbeiQd18fym8a+hh9EtZ1KuyM BYXBXjH3uujJzWw=; b=DT5Qw1jTpPQKcGXq+mMVnlZXHDvuDoOLtiZ4M+LK57qX Zj8oobV/QSgXULH7uyVi3YWvKfBFVfGF/71x3U1g6qrgpJxFAcAdy2NEWwRPbIoo Yw33mO4YqD+wQJGCNFW6lFBOMW/fwkaankOYSyPvdTQlzUOl7Nfu6y1P+Z+e4nGH TowNHnWgIlsb+XQds8xVZEHxuKCjYUh/3OQrDWkqfm4787AaFjL2XI9dHwsrn0uA 75JzQtp2ScSl2VSm+WVMcG2W7YkgeNgchuZSYlA4SDH0i+4j0gye/Ef/RUhW9Z3j Us/OY+SfYidj+ulYNOg3ZW9uT/EhScpSz9kiawFWoQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrkeejgddutdegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfhgfhffvvefuffgjkfggtgesthdtredttdertdenucfhrhhomhepuggrnhcu oehisegurghnrdhgrghmvghsqeenucggtffrrghtthgvrhhnpeejudffudevgefggfehud dvieeivdeuhfdvgfdvjefgvddttdevgffhvdfhgeejjeenucevlhhushhtvghrufhiiigv pedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehisegurghnrdhgrghmvghs X-ME-Proxy: Feedback-ID: i3b5946ed:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 18 Mar 2024 13:42:39 -0400 (EDT) References: <87ttnh5b4g.fsf@gnu.org> <86h6ien6bg.fsf@posteo.net> User-agent: mu4e 1.10.8; emacs 29.1 From: dan Date: Tue, 19 Mar 2024 01:30:31 +0800 In-reply-to: <86h6ien6bg.fsf@posteo.net> Message-ID: <87frwn308k.fsf@dan.games> MIME-Version: 1.0 Content-Type: text/plain; format=flowed 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Scanner: mx12.migadu.com X-Migadu-Spam-Score: -1.41 X-Spam-Score: -1.41 X-Migadu-Queue-Id: 853881BA0C X-TUID: eFyw+ZM4T4pY Hi David, Thanks for sharing your discovery. David Elsing writes: > Starting from alsa-lib, I narrowed it down further. I found that > the > problem is actually when an input of the package uses > copy-build-system. I spent some time digging into the rabbit hole. After changing the lower function of the copy-build-system to look more like the lower function of the gnu-build-system, I'm able to cross compile alsa-lib without the --no-grafts flag. The changes I made are like: --8<---------------cut here---------------start------------->8--- diff --git a/guix/build-system/copy.scm b/guix/build-system/copy.scm index d58931b33c..74304b4bfb 100644 --- a/guix/build-system/copy.scm +++ b/guix/build-system/copy.scm @@ -66,13 +66,13 @@ (define* (lower name (bag (name name) (system system) - (host-inputs `(,@(if source + (build-inputs `(,@(if source `(("source" ,source)) '()) - ,@inputs + ,@native-inputs ;; Keep the standard inputs of 'gnu-build-system'. ,@(standard-packages))) - (build-inputs native-inputs) + (host-inputs inputs) (outputs outputs) (build copy-build) (arguments (strip-keyword-arguments private-keywords arguments)))) --8<---------------cut here---------------end--------------->8--- Can we put everything inside build-inputs? From my understanding, copy-build-system shouldn't care about cross-compilation at all. Any feedback on this would be really helpful. Best, -- dan