GNU bug report logs - #47615
[PATCH 0/9] Add 32-bit powerpc support

Previous Next

Package: guix-patches;

Reported by: Efraim Flashner <efraim <at> flashner.co.il>

Date: Tue, 6 Apr 2021 12:26:02 UTC

Severity: normal

Tags: patch

Done: Efraim Flashner <efraim <at> flashner.co.il>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Efraim Flashner <efraim <at> flashner.co.il>
To: 47615 <at> debbugs.gnu.org, guix-devel <at> gnu.org
Cc: Efraim Flashner <efraim <at> flashner.co.il>
Subject: [bug#47615] [PATCH v2 03/12] gnu: gcc-boot0: Use 128-bit long-double on powerpc-linux.
Date: Thu, 22 Apr 2021 10:59:16 +0300
* gnu/packages/commencement.scm (gcc-boot0)[arguments]: Adjust
configure-flag to also use '--with-long-double-128' on powerpc-linux.
---
 gnu/packages/commencement.scm | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

I ran into build troubles without this patch. It only affects gcc-boot0
on powerpc, everything else I built out to mesa was unaffected by a
64-bit/128-bit mismatch.

diff --git a/gnu/packages/commencement.scm b/gnu/packages/commencement.scm
index 36ebcee163..93caaac709 100644
--- a/gnu/packages/commencement.scm
+++ b/gnu/packages/commencement.scm
@@ -2733,12 +2733,12 @@ exec " gcc "/bin/" program
                            "--disable-shared"
                            "--enable-languages=c,c++"
 
-                           ;; boot-triplet inserts "guix" in the triplet.
-                           ,@(if (equal? "powerpc64le-guix-linux-gnu" (boot-triplet))
-                                 ;; On POWER9 (little endian) glibc needs the
-                                 ;; 128-bit long double type.
-                                 '("--with-long-double-128")
-                                 '())
+                           ;; On POWER9 (little endian) glibc needs the 128-bit
+                           ;; long double type.  32-bit PPC is affected by the
+                           ;; changes applied for powerpc64le.
+                           ,@(if (string-prefix? "powerpc" (boot-triplet))
+                               '("--with-long-double-128")
+                               '())
 
                            ;; libstdc++ cannot be built at this stage
                            ;; ("Link tests are not allowed after
-- 
2.31.1





This bug report was last modified 4 years and 54 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.