From patchwork Sat Dec 7 19:28:18 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: dftxbs3e X-Patchwork-Id: 16408 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 CE57017866; Sun, 8 Dec 2019 02:37:16 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTP id 8E2511785E for ; Sun, 8 Dec 2019 02:37:16 +0000 (GMT) Received: from localhost ([::1]:54898 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1idmRg-0003Cp-3W for patchwork@mira.cbaines.net; Sat, 07 Dec 2019 21:37:16 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:45284) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1idmRC-00037O-RM for guix-patches@gnu.org; Sat, 07 Dec 2019 21:36:48 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1idmR0-0001K9-Tm for guix-patches@gnu.org; Sat, 07 Dec 2019 21:36:40 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:44017) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1idmPW-0000wv-Ev for guix-patches@gnu.org; Sat, 07 Dec 2019 21:36:20 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1idmPW-0005sn-DS for guix-patches@gnu.org; Sat, 07 Dec 2019 21:35: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. Resent-From: dftxbs3e Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 08 Dec 2019 02:35: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 X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.157577245322543 (code B ref -1); Sun, 08 Dec 2019 02:35:02 +0000 Received: (at submit) by debbugs.gnu.org; 8 Dec 2019 02:34:13 +0000 Received: from localhost ([127.0.0.1]:49987 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1idmOi-0005rX-Ts for submit@debbugs.gnu.org; Sat, 07 Dec 2019 21:34:13 -0500 Received: from lists.gnu.org ([209.51.188.17]:60191) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1idmOg-0005rP-NE for submit@debbugs.gnu.org; Sat, 07 Dec 2019 21:34:11 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:58448) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1idfkc-00082P-Je for guix-patches@gnu.org; Sat, 07 Dec 2019 14:28:23 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1idfkb-00078o-CU for guix-patches@gnu.org; Sat, 07 Dec 2019 14:28:22 -0500 Received: from smtp3-g21.free.fr ([212.27.42.3]:19233) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1idfkb-00077b-0u for guix-patches@gnu.org; Sat, 07 Dec 2019 14:28:21 -0500 Received: from [IPv6:2a01:e0a:2a2:1590:3130:d4af:7a6d:562c] (unknown [IPv6:2a01:e0a:2a2:1590:3130:d4af:7a6d:562c]) by smtp3-g21.free.fr (Postfix) with ESMTP id 7BB8A13F89A for ; Sat, 7 Dec 2019 20:28:18 +0100 (CET) References: <9d5aee30-1cfe-434b-f191-3bbd06caa319@free.fr> <87h82its9y.fsf@nckx> <0e9bb696-0165-82c8-799b-58ae72e382cc@free.fr> From: dftxbs3e Message-ID: <07dcfc64-86c2-df79-9bf9-bf87b2568267@free.fr> Date: Sat, 7 Dec 2019 20:28:18 +0100 User-Agent: Mozilla/5.0 (X11; Linux ppc64le; rv:68.0) Gecko/20100101 Thunderbird/68.1.1 MIME-Version: 1.0 In-Reply-To: <0e9bb696-0165-82c8-799b-58ae72e382cc@free.fr> Content-Language: en-US X-detected-operating-system: by eggs.gnu.org: Windows NT kernel [generic] [fuzzy] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 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" X-getmail-retrieved-from-mailbox: Patches I could figure it out myself. Attached new patches! On 12/2/19 9:03 PM, dftxbs3e wrote: > Yes, it should certainly be guarded by an if to avoid breaking other > platforms, even if it shouldnt hurt much. > > Issue is I do not know Scheme enough to figure out the syntax for an > inline if like that. So I would appreciate if you could help me on that? > > On 12/2/19 8:57 PM, Tobias Geerinckx-Rice via Guix-patches via wrote: >> dftxbs3e, >> >> dftxbs3e 写道: >>> This is to be applied against core-updates and fixes: >>> >>> $ guix build --target=powerpc64le-linux-gnu bootstrap-tarballs >> >> Thanks for sending this in!  I'll be sure to merge it if no one else >> has objections. >> >> I'm really not familiar with this part of Guix, though.  I'd naively >> expect this to be guarded with an (if …) so it only applies to >> POWER.  (Why) is that not possible or desirable? >> >> Kind regards, >> >> T G-R > > > 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