From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id iGu6JFFTuF85VgAA0tVLHw (envelope-from ) for ; Fri, 20 Nov 2020 23:37:53 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id OO2HIFFTuF9oAwAAbx9fmQ (envelope-from ) for ; Fri, 20 Nov 2020 23:37:53 +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 3CCBE940539 for ; Fri, 20 Nov 2020 23:37:53 +0000 (UTC) Received: from localhost ([::1]:60108 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kgFyS-0005Pc-86 for larch@yhetil.org; Fri, 20 Nov 2020 18:37:52 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:39004) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kgFj8-0002st-L6 for guix-patches@gnu.org; Fri, 20 Nov 2020 18:22:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:32994) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kgFj8-0005ca-Dx for guix-patches@gnu.org; Fri, 20 Nov 2020 18:22:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kgFj8-0003Rx-8g for guix-patches@gnu.org; Fri, 20 Nov 2020 18:22:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#38459] [PATCH] gnu: (cross-gcc-arguments|gcc-boot0): Enable 128 bit long double for POWER9. References: <9d5aee30-1cfe-434b-f191-3bbd06caa319@free.fr> In-Reply-To: <9d5aee30-1cfe-434b-f191-3bbd06caa319@free.fr> Resent-From: dftxbs3e Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 20 Nov 2020 23:22:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 38459 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 38459@debbugs.gnu.org Received: via spool by 38459-submit@debbugs.gnu.org id=B38459.160591450613235 (code B ref 38459); Fri, 20 Nov 2020 23:22:02 +0000 Received: (at 38459) by debbugs.gnu.org; 20 Nov 2020 23:21:46 +0000 Received: from localhost ([127.0.0.1]:44540 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kgFis-0003RP-De for submit@debbugs.gnu.org; Fri, 20 Nov 2020 18:21:46 -0500 Received: from smtp5-g21.free.fr ([212.27.42.5]:25674) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kgFir-0003RH-D7 for 38459@debbugs.gnu.org; Fri, 20 Nov 2020 18:21:45 -0500 Received: from 2a01cb08026ce9001b80128993b94ecf.ipv6.abo.wanadoo.fr (unknown [IPv6:2a01:cb08:26c:e900:1b80:1289:93b9:4ecf]) (Authenticated sender: dftxbs3e) by smtp5-g21.free.fr (Postfix) with ESMTPSA id 58F725FF10 for <38459@debbugs.gnu.org>; Sat, 21 Nov 2020 00:21:43 +0100 (CET) Message-ID: From: dftxbs3e Date: Sat, 21 Nov 2020 00:21:42 +0100 Content-Type: multipart/mixed; boundary="=-epqZCC/iaOFNJ0fToaWc" User-Agent: Evolution 3.38.1 (3.38.1-1.fc33) MIME-Version: 1.0 X-Spam-Score: 3.1 (+++) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: 0.6 (/) X-Mailman-Approved-At: Fri, 20 Nov 2020 18:37:30 -0500 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-Scanner: ns3122888.ip-94-23-21.eu Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=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-Spam-Score: -1.01 X-TUID: mdZuC39u5LBC --=-epqZCC/iaOFNJ0fToaWc Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit You are right, I can't test the commencement.scm patch yet because bootstrap-tarballs are not built and included in GNU Guix yet. This patch is intended to allow them to build. Attached new patches. --=-epqZCC/iaOFNJ0fToaWc Content-Disposition: attachment; filename*0=0001-gnu-gcc-boot0-Enable-128-bit-long-double-for-POWER9.patc; filename*1=h Content-Type: text/x-patch; name="0001-gnu-gcc-boot0-Enable-128-bit-long-double-for-POWER9.patch"; charset="us-ascii" Content-Transfer-Encoding: 7bit >From 66bcaaebe1761499a60518dc83975006aa30b58f Mon Sep 17 00:00:00 2001 From: dftxbs3e Date: Sat, 7 Dec 2019 20:26:51 +0100 Subject: [PATCH 1/2] gnu: gcc-boot0: Enable 128 bit long double for POWER9. --- gnu/packages/commencement.scm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gnu/packages/commencement.scm b/gnu/packages/commencement.scm index 8bf7704598..a466a383bd 100644 --- a/gnu/packages/commencement.scm +++ b/gnu/packages/commencement.scm @@ -1576,6 +1576,11 @@ exec " gcc "/bin/" program "--disable-shared" "--enable-languages=c,c++" + ,@(if (equal? "powerpc64le-linux-gnu" (boot-triplet)) + ;; On POWER9 (little endian) glibc needs the 128 bit long double type. + '("--with-long-double-128") + '()) + ;; libstdc++ cannot be built at this stage ;; ("Link tests are not allowed after ;; GCC_NO_EXECUTABLES."). -- 2.21.0 --=-epqZCC/iaOFNJ0fToaWc Content-Disposition: attachment; filename*0=0002-gnu-cross-gcc-arguments-Enable-128-bit-long-double-f.pat; filename*1=ch Content-Type: text/x-patch; name="0002-gnu-cross-gcc-arguments-Enable-128-bit-long-double-f.patch"; charset="us-ascii" Content-Transfer-Encoding: 7bit >From 0628808608a0b0851de913a88d626234358100c5 Mon Sep 17 00:00:00 2001 From: dftxbs3e Date: Sat, 7 Dec 2019 20:27:12 +0100 Subject: [PATCH 2/2] gnu: cross-gcc-arguments: Enable 128 bit long double for POWER9. --- gnu/packages/cross-base.scm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gnu/packages/cross-base.scm b/gnu/packages/cross-base.scm index 13237fb8a8..18dc1f592b 100644 --- a/gnu/packages/cross-base.scm +++ b/gnu/packages/cross-base.scm @@ -150,6 +150,11 @@ base compiler and using LIBC (which may be either a libc package or #f.)" "--disable-decimal-float" ;would need libc "--disable-libcilkrts" + ,@(if (equal? "powerpc64le-linux-gnu" target) + ;; On POWER9 (little endian) glibc needs the 128 bit long double type. + '("--with-long-double-128") + '()) + ;; When target is any OS other than 'none' these ;; libraries will fail if there is no libc ;; present. See -- 2.21.0 --=-epqZCC/iaOFNJ0fToaWc--