From patchwork Tue Aug 8 14:57:39 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Ford X-Patchwork-Id: 52677 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 356D627BBEA; Tue, 8 Aug 2023 15:59:24 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,HTML_MESSAGE,MAILING_LIST_MULTI, SPF_HELO_PASS autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id E985227BBE2 for ; Tue, 8 Aug 2023 15:59:22 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qTOAr-0002bz-Ea; Tue, 08 Aug 2023 10:59:05 -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 1qTOAo-0002bm-Vd for guix-patches@gnu.org; Tue, 08 Aug 2023 10:59:03 -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 1qTOAo-0003pv-NE for guix-patches@gnu.org; Tue, 08 Aug 2023 10:59:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qTOAo-0005yf-9a for guix-patches@gnu.org; Tue, 08 Aug 2023 10:59:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#65151] [PATCH] platform: Introduce powerpc64-linux Resent-From: Michael Ford Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 08 Aug 2023 14:59:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 65151 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 65151@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.169150668222885 (code B ref -1); Tue, 08 Aug 2023 14:59:02 +0000 Received: (at submit) by debbugs.gnu.org; 8 Aug 2023 14:58:02 +0000 Received: from localhost ([127.0.0.1]:37477 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qTO9p-0005ws-R5 for submit@debbugs.gnu.org; Tue, 08 Aug 2023 10:58:02 -0400 Received: from lists.gnu.org ([2001:470:142::17]:46974) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qTO9n-0005wU-Ep for submit@debbugs.gnu.org; Tue, 08 Aug 2023 10:58:00 -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 1qTO9h-0002Pz-HA for guix-patches@gnu.org; Tue, 08 Aug 2023 10:57:53 -0400 Received: from mail-ot1-x331.google.com ([2607:f8b0:4864:20::331]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qTO9f-0003aB-Qi for guix-patches@gnu.org; Tue, 08 Aug 2023 10:57:53 -0400 Received: by mail-ot1-x331.google.com with SMTP id 46e09a7af769-6bca5d6dcedso4927519a34.1 for ; Tue, 08 Aug 2023 07:57:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1691506670; x=1692111470; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=0XsgKMv+gKCM7LLgIpKGmpzjrj4+gpXfJ6CCx8eLAhU=; b=CucKcIIT+ThDbegEs56tymEPSciswKAXi28K7Z8jwGpPpSBz53Kkf2kBw4xmb3kRBR z/OY4baUCH9bCqD81tRkadqSSFsXWidgrnHKZZ6i9+F4U068M0xo4Lft/Tfy1yNcJOcW Uoaj4JcdOQ7CNs+x7uc2e+G9rKxO9sPX9EbUXZkBAZC6DqR/1NuVlZJMOWvaeLJG7RZa qR/7K8G7TNqIwNQmkB32ToXJ/oLxMMpBzYfRaqRvTGBBoORX33pyVMm8LdZyN5kiFc+Y BxjOI/8pSV2EGuldv6gwA3rLIZnoNbHu3G6HTsQRrpXJmvGU8uaNt1kP1QNlvIZ04lzB FWpg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691506670; x=1692111470; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=0XsgKMv+gKCM7LLgIpKGmpzjrj4+gpXfJ6CCx8eLAhU=; b=LDsuRdoKmFC1f7HyXoavDa3jOgMRClSOzkTIZOxzi+LW87WpaiWbBwwsxKJh9O0r1Y ywl0+R6mvvsRG4clgZH00wO/Sc8NWjUmJe0AEFvqm/61x4nKZgKpDQK95aQdjxjDmNjw A2M3pTL0UiJn3I7pZo7ycuRRoky3B/cLis0gbT6HhRvF3qs4iHy1YCGTfoiRVow0393S j2da19auONHfYdOx9pGpUTYJwlivgwJpgFktMsj0DYrSeMyMowXSmhKv2eZBW3TqnfNZ Rwdb23CS1vNkFTbMYyq0rn49XgGrzUsQlRvJ8K3FunOWSa99vkrK48trVp7jpMwM0Wf3 NoEw== X-Gm-Message-State: AOJu0YxICyEclpSnUmKBFVQHsu0AtZj7pEFEUQPImSAPN/XGY9qcKlIt QHdpzVoKGbfD3c11bjRn/raKlol87A2FXxT4yzNzIwH4pESUog== X-Google-Smtp-Source: AGHT+IFNg2HNsHkMoPB3ptvUBtWCWIdlaLBfCHDe2z3nFJLFjusco0heHC/HO/fi1UwU5gh7NjB9ubo1J7Ggof0kjAU= X-Received: by 2002:a05:6830:1109:b0:6bc:e8dd:9f4d with SMTP id w9-20020a056830110900b006bce8dd9f4dmr9094368otq.11.1691506670425; Tue, 08 Aug 2023 07:57:50 -0700 (PDT) MIME-Version: 1.0 From: Michael Ford Date: Tue, 8 Aug 2023 16:57:39 +0200 Message-ID: Received-SPF: pass client-ip=2607:f8b0:4864:20::331; envelope-from=fanquake@gmail.com; helo=mail-ot1-x331.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches I'm currently involved in a project which uses Guix to build a number of cross-compiling toolchains, with Guix time-machine. On a recent update of the time-machine, one cross-toolchain (powerpc64-linux-gnu) was no-longer building, failing with: Backtrace: In srfi/srfi-1.scm: 586:29 19 (map1 (#< name: "git-minimal" versio?> ?)) 586:29 18 (map1 (#< name: "python-lief" versio?> ?)) 586:17 17 (map1 (#< name: "powerpc64-linux-gnu-t?>)) In guix/profiles.scm: 1936:19 16 (_ _) In guix/packages.scm: 1371:17 15 (supported-package? # ?) In guix/memoization.scm: 101:0 14 (_ # # ?) In guix/packages.scm: 1341:14 13 (_) In srfi/srfi-1.scm: 460:18 12 (fold # ?) In guix/packages.scm: 1345:44 11 (_ _ ("x86_64-linux" "i686-linux")) In guix/memoization.scm: 101:0 10 (_ # # ?) In guix/packages.scm: 1341:14 9 (_) In srfi/srfi-1.scm: 460:18 8 (fold # ?) In guix/packages.scm: 1345:44 7 (_ _ ("x86_64-linux" "i686-linux")) In guix/memoization.scm: 101:0 6 (_ # # ?) In guix/packages.scm: 1349:39 5 (_) 1611:16 4 (package->bag _ _ _ #:graft? _) 1716:43 3 (thunk) In gnu/packages/cross-base.scm: 455:34 2 (loop (#:phases (modify-phases %standard-phases # ?) ?) #) In ice-9/boot-9.scm: 1685:16 1 (raise-exception _ #:continuable? _) 1685:16 0 (raise-exception _ #:continuable? _) ice-9/boot-9.scm:1685:16: In procedure raise-exception: ERROR: 1. &platform-not-found-error: "powerpc64-linux-gnu" Adding powerpc64-linux as a platform resolves this issue. I'm wondering if there's any reason this cannot, or wouldn't be added as a platform definition? From 8c3029c1a15b42c98e67e1db790cedcf1cb8a45e Mon Sep 17 00:00:00 2001 From: fanquake Date: Tue, 8 Aug 2023 16:39:47 +0200 Subject: [PATCH] platform: Introduce powerpc64-linux * gnu/platforms/powerpc.scm: Introduce powerpc64-linux. --- guix/platforms/powerpc.scm | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/guix/platforms/powerpc.scm b/guix/platforms/powerpc.scm index 9d0b343bc3..b45a216983 100644 --- a/guix/platforms/powerpc.scm +++ b/guix/platforms/powerpc.scm @@ -20,6 +20,7 @@ (define-module (guix platforms powerpc) #:use-module (guix platform) #:use-module (guix records) #:export (powerpc-linux + powerpc64-linux powerpc64le-linux)) (define powerpc-linux @@ -29,6 +30,13 @@ (define powerpc-linux (linux-architecture "powerpc") (glibc-dynamic-linker "/lib/ld.so.1"))) +(define powerpc64-linux + (platform + (target "powerpc64-linux-gnu") + (system "powerpc64-linux") + (linux-architecture "powerpc") + (glibc-dynamic-linker "/lib/ld64.so.1"))) + (define powerpc64le-linux (platform (target "powerpc64le-linux-gnu")