From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:40538) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ibrUJ-0007Ju-CC for guix-patches@gnu.org; Mon, 02 Dec 2019 14:36:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ibrUI-0004MO-6U for guix-patches@gnu.org; Mon, 02 Dec 2019 14:36:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:32987) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ibrUI-0004MK-2h for guix-patches@gnu.org; Mon, 02 Dec 2019 14:36:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ibrUI-0006JA-0b for guix-patches@gnu.org; Mon, 02 Dec 2019 14:36:02 -0500 Subject: [bug#38459] [PATCH] gnu: (cross-gcc-arguments|gcc-boot0): Enable 128 bit long double for POWER9. Resent-Message-ID: Received: from eggs.gnu.org ([2001:470:142:3::10]:39108) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ibrFN-0003O5-Rm for guix-patches@gnu.org; Mon, 02 Dec 2019 14:20:39 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ibrFM-00006J-OG for guix-patches@gnu.org; Mon, 02 Dec 2019 14:20:37 -0500 Received: from smtp3-g21.free.fr ([212.27.42.3]:59337) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ibrFK-0008TD-Qd for guix-patches@gnu.org; Mon, 02 Dec 2019 14:20:36 -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 8687B13F8B9 for ; Mon, 2 Dec 2019 20:20:31 +0100 (CET) From: dftxbs3e Message-ID: <9d5aee30-1cfe-434b-f191-3bbd06caa319@free.fr> Date: Mon, 2 Dec 2019 20:20:31 +0100 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="------------261AF8478D583322BB67692C" Content-Language: en-US List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 38459@debbugs.gnu.org This is a multi-part message in MIME format. --------------261AF8478D583322BB67692C Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Hello, This is to be applied against core-updates and fixes: $ guix build --target=powerpc64le-linux-gnu bootstrap-tarballs dftxbs3e --------------261AF8478D583322BB67692C Content-Type: text/x-patch; charset=UTF-8; name="0002-gnu-cross-gcc-arguments-Enable-128-bit-long-double-f.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename*0="0002-gnu-cross-gcc-arguments-Enable-128-bit-long-double-f.pa"; filename*1="tch" >From dcbd3a812038fbc1a229836a850f529aa35b45c8 Mon Sep 17 00:00:00 2001 From: dftxbs3e Date: Mon, 2 Dec 2019 20:02:24 +0100 Subject: [PATCH 2/2] gnu: cross-gcc-arguments: Enable 128 bit long double for POWER9. --- gnu/packages/cross-base.scm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gnu/packages/cross-base.scm b/gnu/packages/cross-base.scm index 13237fb8a8..e60a8ed03a 100644 --- a/gnu/packages/cross-base.scm +++ b/gnu/packages/cross-base.scm @@ -150,6 +150,9 @@ base compiler and using LIBC (which may be either a libc package or #f.)" "--disable-decimal-float" ;would need libc "--disable-libcilkrts" + ;; 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 --------------261AF8478D583322BB67692C Content-Type: text/x-patch; charset=UTF-8; name="0001-gnu-gcc-boot0-Enable-128-bit-long-double-for-POWER9.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename*0="0001-gnu-gcc-boot0-Enable-128-bit-long-double-for-POWER9.pat"; filename*1="ch" >From 87b30dcb90572bd46c8eb087efe7d75db362f59b Mon Sep 17 00:00:00 2001 From: dftxbs3e Date: Mon, 2 Dec 2019 19:58:19 +0100 Subject: [PATCH 1/2] gnu: gcc-boot0: Enable 128 bit long double for POWER9. --- gnu/packages/commencement.scm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gnu/packages/commencement.scm b/gnu/packages/commencement.scm index 8bf7704598..bfdba4dbd2 100644 --- a/gnu/packages/commencement.scm +++ b/gnu/packages/commencement.scm @@ -1576,6 +1576,9 @@ exec " gcc "/bin/" program "--disable-shared" "--enable-languages=c,c++" + ;; 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 --------------261AF8478D583322BB67692C--