From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id INkUHzZQUGD7VQAA0tVLHw (envelope-from ) for ; Tue, 16 Mar 2021 06:29:10 +0000 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id JBfRGjZQUGBGEgAAB5/wlQ (envelope-from ) for ; Tue, 16 Mar 2021 06:29: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 07C9322B2C for ; Tue, 16 Mar 2021 07:29:10 +0100 (CET) Received: from localhost ([::1]:48360 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lM3CW-0007kh-KH for larch@yhetil.org; Tue, 16 Mar 2021 02:29:08 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46308) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lM3CQ-0007ka-Fh for guix-patches@gnu.org; Tue, 16 Mar 2021 02:29:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:54545) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lM3CQ-0002B3-8S for guix-patches@gnu.org; Tue, 16 Mar 2021 02:29:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lM3CQ-00018V-3O for guix-patches@gnu.org; Tue, 16 Mar 2021 02:29:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#47182] [PATCH 00/18] Add support for powerpc64le-linux (wip-ppc64le-for-master) Resent-From: Chris Marusich Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 16 Mar 2021 06:29:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 47182 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 47182@debbugs.gnu.org Cc: Chris Marusich X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16158761394357 (code B ref -1); Tue, 16 Mar 2021 06:29:01 +0000 Received: (at submit) by debbugs.gnu.org; 16 Mar 2021 06:28:59 +0000 Received: from localhost ([127.0.0.1]:37858 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lM3CN-00018D-1k for submit@debbugs.gnu.org; Tue, 16 Mar 2021 02:28:59 -0400 Received: from lists.gnu.org ([209.51.188.17]:49970) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lM3CL-000186-TY for submit@debbugs.gnu.org; Tue, 16 Mar 2021 02:28:58 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46306) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lM3CL-0007kE-NJ for guix-patches@gnu.org; Tue, 16 Mar 2021 02:28:57 -0400 Received: from mail-pj1-x1030.google.com ([2607:f8b0:4864:20::1030]:51756) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lM3CK-00026Q-5K for guix-patches@gnu.org; Tue, 16 Mar 2021 02:28:57 -0400 Received: by mail-pj1-x1030.google.com with SMTP id s21so10084055pjq.1 for ; Mon, 15 Mar 2021 23:28:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=NLFwBHPrzom8n3dJaHDsyMBhmsLR6fUHCtDSm3HMyoM=; b=OR1HHGVYXHn9RDYJeGLvwFp7T3KLk+5tOtUFw06SqphFhgBqBAO9NJngoljfKf4xek O/smYGjmCuumSp3TfPP1xsoxcPu2KK+zq1jnPeJqC63dQ9Nf7jR/iRPez5bq91c66Kdn 7EtdaeNb7o0kvvfW59Yp7FMcGI15YI1+cJ1kmv6LBm430gj73W2YI86mLrrpeTSb9wlw DjoiH+A4HGYv2gY81ymcmVLEKrADPz6MotUjPNmDCs0TCMe4eJhdrmZOO6sYtVpu540i 86fmBwKZOpAE6zcVnGjmaxfgeYznDwAqE7gb3OvUi1aQ1pXbRVv090/1XBK3obkI+De+ Vj2A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=NLFwBHPrzom8n3dJaHDsyMBhmsLR6fUHCtDSm3HMyoM=; b=fYZvDkjR7HUscrrNt/DXWn6wuNJxkUl44G+qIJE0MOJ0W0hhhiLIF94CvBeh+5XtOA GpO4d+Twmcs6DDQy95MdzQHVhkoUNX81zwzwwwrN4j/X5TyswXKoqY387OWalH9E77KU l3byV5gMUGCmc1UAwmloxiqf92gZdkHH3DaEJtqfQbUZOEXvpb54Bz+eZCJdgkNPHGZs b7egN/fOx5MY0IEn6RAIXJbV4V6h7U4Rh6WyN/fPEwBpb6iTNnMOeK7p2B9WivYE/c/b ruMYr+2x5GOp9N2HsDJ+VZA1joUHF9aQnta7yNfW0t0qWwbX1IY/AEWIOLjLhg32cibE 53QA== X-Gm-Message-State: AOAM530iK0nyBIrn8tjtABZ76R3/XEFBz9cTJzLDeu/FVObJUd1cE7sl B5b0gI7Dn8U5VkB8NP/LfqJTPL3udkhK4w== X-Google-Smtp-Source: ABdhPJwGli6TOBz7PQM4842+/VMuhmFsEMc2hXdEHcPN2r3N9zceJnMZdXo2b0TuKjLMiB5XXP2j5w== X-Received: by 2002:a17:902:369:b029:e4:b5f1:cfb4 with SMTP id 96-20020a1709020369b02900e4b5f1cfb4mr15030703pld.60.1615876133993; Mon, 15 Mar 2021 23:28:53 -0700 (PDT) Received: from garuda-lan.lan (c-24-18-44-142.hsd1.wa.comcast.net. [24.18.44.142]) by smtp.gmail.com with ESMTPSA id g6sm15695707pfi.15.2021.03.15.23.28.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Mar 2021 23:28:53 -0700 (PDT) From: Chris Marusich Date: Mon, 15 Mar 2021 23:28:05 -0700 Message-Id: <20210316062805.2890883-1-cmmarusich@gmail.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2607:f8b0:4864:20::1030; envelope-from=cmmarusich@gmail.com; helo=mail-pj1-x1030.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, 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+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1615876150; 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: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=NLFwBHPrzom8n3dJaHDsyMBhmsLR6fUHCtDSm3HMyoM=; b=OkwdR4Jo7c+EJhPzxIxdvPwWRrODK89z+VHox3ilPBS9GLbHp0+/78mL2B24OybbNBzBuT v915tqVvuV15M7p67ZYNEJvB2BB0ttdhQHUQkAo1BZqqW+h7jw53fGmYp5TKFFLFIoCfDu eA/8ndEn+gYjpQPnLFa9UsY5hvSzCVbZY5xtP/o+OW+kVrhlZMNf0+ntcnxw+s+uKV3B5R 0zmr2b+MVzdn5fdtEmav3Dtp6OaVeX7VyC1ePk5qRyI1fONMxPOSFYn0aaSr5GhpT/iVXV uw7azV/8yXsmGJG8jswX1a+vn+ESsHguHJnT82w5ZEtl5Ct0j8i7ZLrqBSsCcw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1615876150; a=rsa-sha256; cv=none; b=OhZq+b/4nMdzjwNfIBuNfGLjch7niXJYXZeXq3NawhLpLSXw2px+I11q5Apen1Ex1u+055 07hmbSOGKBDquXbROJ54ejDBpFUKwNgoHXzV5o6ZEamF9Zqu3dyzzSxhS/cjw+fnugp6nG pHics19+K7OJwoLP7NI3hlc0gp3EnFxkKHdAxK00bcD/YRSCKpSsctwdjRoWshf6oX/TGr 3tacvbWxfysW5C6bGjqZkhjmPU3Ycui7B6eZB3l08k0iAjtkwKfj6Qj7a9Nfz0NhYefOfi jrPFhv+8E+Bw/Qyn3ZDwxalAB1gdcQ+irvMH9f8gSCbXBCO87DoZQxkC3DvSzw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20161025 header.b=OR1HHGVY; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: -0.30 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20161025 header.b=OR1HHGVY; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: 07C9322B2C X-Spam-Score: -0.30 X-Migadu-Scanner: scn0.migadu.com X-TUID: O+HHBZCUuOpN This patch series comes from the wip-ppc64le-for-master branch. This branch contains commits that add support for a new system type, powerpc64le-linux. The powerpc64le-linux system can be run on freedom-friendly hardware like the Talos II and Blackbird family of POWER9 systems built by Raptor Computing Systems. These patches add support for Guix only, not for Guix System; Guix System support will come later. These patches are specifically crafted so they do not rebuild the world for existing architectures. Therefore, they can be applied directly to master. I have verified that, after applying these patches to master, I am able to build (on a Debian ppc64le GNU/Linux system) a release binary of Guix for the powerpc64le-linux system successfully. Additionally, I am able to install this release binary and do "guix pull" successfully in a fresh Debian ppc64le GNU/Linux VM, and I am able to build and run GNU Hello in that VM using the newly pulled Guix. I think these patches are ready to apply to master, and I hope they will be included in the next release. Many thanks to Léo Le Bouter and Efraim Flashner for their help in making these changes. Please review and let me know if there is anything that can be done better. Chris Marusich (11): gnu: bootstrap: Add support for powerpc64le-linux. utils: Add target-powerpc? procedure. gnu: gcc-4.7: On powerpc64le, fix /lib64 references. gnu: gcc-boot0: Enable 128-bit long double for POWER9. gnu: binutils-final: Support more Power architectures. Add powerpc64le-linux as a supported Guix architecture. syscalls: Fix clone on powerpc64le-linux. syscalls: Fix RNDADDTOENTCNT on powerpc64le-linux. ci: %cross-targets: Add powerpc64le-linux-gnu. utils: Fix target-64bit? on powerpc64le-linux. gnu: sed: Make it build on SELinux-enabled kernels. Efraim Flashner (1): gnu: binutils-final: Provide bash for binary on powerpc-linux. Leo Le Bouter (6): gnu: glibc: Fix ldd path on powerpc*. gnu: bdb-4.8: Fix configure on powerpc64le-linux. gnu: guile-avahi: Fix compilation on powerpc64le-linux. gnu: texlive-bin: Fix compilation on powerpc64le*. gnu: texlive-latex-base: Fix compilation on powerpc64le*. gnu: libelf: Fix compilation for powerpc64le-linux. Makefile.am | 4 +- etc/guix-install.sh | 4 ++ gnu/ci.scm | 1 + gnu/local.mk | 1 + gnu/packages/base.scm | 32 +++++++++++++++- gnu/packages/bootstrap.scm | 39 +++++++++++++++++++- gnu/packages/commencement.scm | 28 ++++++++++++-- gnu/packages/dbm.scm | 6 +++ gnu/packages/elf.scm | 5 +++ gnu/packages/gcc.scm | 38 +++++++++++++++---- gnu/packages/guile-xyz.scm | 4 ++ gnu/packages/patches/glibc-ldd-powerpc.patch | 10 +++++ gnu/packages/tex.scm | 26 ++++++++++--- guix/build/syscalls.scm | 8 +++- guix/packages.scm | 4 +- guix/utils.scm | 8 +++- m4/guix.m4 | 3 +- tests/guix-build.sh | 6 ++- 18 files changed, 201 insertions(+), 26 deletions(-) create mode 100644 gnu/packages/patches/glibc-ldd-powerpc.patch -- 2.26.2