From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id cEEbJGYhyWVcugAAqHPOHw:P1 (envelope-from ) for ; Sun, 11 Feb 2024 20:35:02 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id cEEbJGYhyWVcugAAqHPOHw (envelope-from ) for ; Sun, 11 Feb 2024 20:35:02 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=EH2l6DvQ; dmarc=fail reason="SPF not aligned (strict)" header.from=posteo.net (policy=none); 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" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1707680102; a=rsa-sha256; cv=none; b=YNvh40e8Zc7aV03hZYgTz80yk1ATAcbVEEPMCPP4sIKOCATqCVVYFF89mL/9MnwImwEB4E 0wVhpvXKYzyQcWcTCq9uRprMmx9MvTgtt0oAP9aU+KrSPzBgcUQNadLJyYZC+ufeeKI8io BDBOSafUZ7rCcUVnNXNjJS9y1Oa+6tTQcw4E1lVtMhAgfAAn9QgjFHj3IFJAj61l+EL+bw So0iyHR358leD28tBc4MIl103mhO/qn/aPX1+bzWTzY+butt6Wk/UKzr5Lm6iDXtZFg4ag W6GIMSJ8xtH61S2Hi7mbOS1GPhG0fqWtcjFLECx/EArG3Lv7z2+sYCJvWg9U0g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=EH2l6DvQ; dmarc=fail reason="SPF not aligned (strict)" header.from=posteo.net (policy=none); 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1707680102; 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=EQ0VdmJDyyTZP//EfqvqIgArMwd11YwozynFSYQzr2s=; b=N/DranK7vg4FKJ5u19rWkMdKO0Wls71Mjvq8DQTi7J4lY61CuWl5qzz7X1exUPZW23FlOk pVtMY3wGT4Ja3u/lrqmWSuS5D4xgv32ExqZzs0dP47AoRhOBg4c01T10WSjQjZJ+b+8BFT My+AklulTbEfNUJvC5BFcNNtq4KKS5lB2YbjZeW7NQWFlGnXb8iY3bIV/0i8I93E6iOCZa biPM1f9eOpjfk6SGcc9cOi12cSPzRx7koph1NJsoRCwoOpe2LRhC0aze32SUvjb+5mEYNC uFQl4fPJAweHHYetds6RqF3bmU5H0fqtQlkP99k+Pl9/B0D3nnZpDRsf2ZhgcQ== 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 6319779451 for ; Sun, 11 Feb 2024 20:35:01 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rZFbJ-0008L2-5o; Sun, 11 Feb 2024 14:34:53 -0500 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 1rZFbC-0008Kj-O6 for bug-guix@gnu.org; Sun, 11 Feb 2024 14:34:47 -0500 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 1rZFbC-0003ve-Er for bug-guix@gnu.org; Sun, 11 Feb 2024 14:34:46 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rZFbS-0006SW-HF for bug-guix@gnu.org; Sun, 11 Feb 2024 14:35:02 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#66866: aarch64 system cross compilation + pinebook pro image broken? References: <20231101025517.5cce4d7f@primary_laptop> Resent-From: David Elsing Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sun, 11 Feb 2024 19:35:02 +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: Mathieu Othacehe Cc: dev@jpoiret.xyz, i@dan.games, 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.170768009524804 (code B ref 66866); Sun, 11 Feb 2024 19:35:02 +0000 Received: (at 66866) by debbugs.gnu.org; 11 Feb 2024 19:34:55 +0000 Received: from localhost ([127.0.0.1]:42233 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rZFbK-0006Rz-Hn for submit@debbugs.gnu.org; Sun, 11 Feb 2024 14:34:54 -0500 Received: from mout02.posteo.de ([185.67.36.66]:37659) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rZFbI-0006Rc-CW for 66866@debbugs.gnu.org; Sun, 11 Feb 2024 14:34:53 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 5C88A240104 for <66866@debbugs.gnu.org>; Sun, 11 Feb 2024 20:34:30 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1707680070; bh=NCc/JU7ln+MDCL+b5nZj/NV2romf4Uf+7RXJhYb+4tE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: From; b=EH2l6DvQCXZprdj/7+QkvpN+tYJmJll1FjScO77HcsL+u1Vm1/hAc+9H9jBBsfEMc iRzkBufipS3JxHt+lq/13ZP1yaFHmJ6q70hWJz+McnDOBKYlhC4vgRJdPg40b6JIb9 GBHHRzu1mKzXtMY8Xhh2nl6PGjVSSWone6OkE7eTlTkMjlSTo4GloW/8mvQ+X9oYUm ZYFyvC+8z0lV5tb7NrAJy8Q0zfJto9KJDUdJebbt8UOc/Yn13lIhosgdhP5VLTb2XM p6KvUebQkBuoPuC4d6ds1uCRB6eHvHd2329uAWyP4WhwbpolGm3UygVBjr+BH/CcZz AnI/GioBARGgQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4TXyTJ1sTkz9rxP; Sun, 11 Feb 2024 20:34:27 +0100 (CET) From: David Elsing In-Reply-To: <87ttnh5b4g.fsf@gnu.org> (message from Mathieu Othacehe on Sat, 13 Jan 2024 19:41:51 +0100) Date: Sun, 11 Feb 2024 19:34:27 +0000 Message-ID: <86h6ien6bg.fsf@posteo.net> MIME-Version: 1.0 Content-Type: text/plain 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-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Scanner: mx10.migadu.com X-Spam-Score: -4.78 X-Migadu-Queue-Id: 6319779451 X-Migadu-Spam-Score: -4.78 X-TUID: AR44hBvd5A/7 Hello, Mathieu Othacehe writes: > I could narrow it down somehow. 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. In the following example, the cross-compilation (with --target=x86_64-linux-gnu) for testp2 and testp3 works fine. Their respective inputs are testinput2 (built with trivial-build-system) and the hello package (built with gnu-build-system). For testp1 however, whose input testinput1 is created with copy-build-system, the same thing as for alsa-lib (which depends on two packages built with copy-build-system) happens: Bootstrap packages are starting to be built if grafts are used. The outputs of both testinput1 and testinput2 do not contain store references, so that is not the issue. It is also no problem to build the packages testinput1, testinput2 or hello with grafts. Is there something special about copy-build-system which is not the case for trivial-build-system and gnu-build-system? I noticed that in (guix build-system trival) and (guix build-system gnu), there is a special case for cross-compilation, while in (guix build-system copy), the same code is used as for a normal build. I don't see why this could cause an issue with grafts though. --8<---------------cut here---------------start------------->8--- (define-module (cc-test) #:use-module (guix build-system copy) #:use-module (guix build-system gnu) #:use-module (guix build-system trivial) #:use-module (gnu packages base) #:use-module (guix packages) #:use-module (guix gexp)) (define-public testinput1 (package (name "testinput1") (version "0") (source (computed-file "testp1-src" #~(begin (mkdir #$output) (mkdir (string-append #$output "/dummy"))))) (build-system copy-build-system) (arguments (list #:install-plan ''(("dummy" "dummy")))) (home-page "") (synopsis "") (description "") (license #f))) (define-public testinput2 (package (name "testinput2") (version "0") (source #f) (build-system trivial-build-system) (arguments (list #:builder #~(begin (mkdir #$output) (mkdir (string-append #$output "/dummy"))))) (home-page "") (synopsis "") (description "") (license #f))) (define-public testp1 (package (name "testp1") (version "0") (source #f) (build-system trivial-build-system) (arguments (list #:builder #~(mkdir #$output))) (inputs (list testinput1)) (home-page "") (synopsis "") (description "") (license #f))) (define-public testp2 (package (name "testp2") (version "0") (source #f) (build-system trivial-build-system) (arguments (list #:builder #~(mkdir #$output))) (inputs (list testinput2)) (home-page "") (synopsis "") (description "") (license #f))) (define-public testp3 (package (name "testp3") (version "0") (source #f) (build-system trivial-build-system) (arguments (list #:builder #~(mkdir #$output))) (inputs (list hello)) (home-page "") (synopsis "") (description "") (license #f))) --8<---------------cut here---------------end--------------->8--- Best, David