[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Patch adding POWER9 cross compile support

From: Ludovic Courtès
Subject: Re: Patch adding POWER9 cross compile support
Date: Wed, 06 Mar 2019 14:54:31 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux)

Hello Tobias,

Tobias Platen <address@hidden> skribis:

> I succesfully crosscompiled GNU Hello and all its dependencies
> including glibc for POWER9. Without my patch glibc will fail to
> build. I am using the core-updates branch, since the default branch
> uses an outdated version of GCC.

Awesome!  What triplet did you use, is it “powerpc9-linux-gnu”?

I’d like to change the patch so that it doesn’t affect other targets.
Would the updated patch below work for you?

Could also you succinctly explain why this flag is needed?  I’d rather
have a comment in the code so the next person that fiddles with it knows
why it’s there.

Thank you!


diff --git a/gnu/packages/cross-base.scm b/gnu/packages/cross-base.scm
index bb3d6d916a..c70739b3ab 100644
--- a/gnu/packages/cross-base.scm
+++ b/gnu/packages/cross-base.scm
@@ -141,6 +141,11 @@ base compiler and using LIBC (which may be either a libc 
package or #f.)"
                                "--disable-decimal-float" ;would need libc
+                               ,@(if (string-prefix? "powerpc9-" target)
+                                     ;; On POWER9 we need this because XXX.
+                                     '("--with-long-double-128")
+                                     '())
                                ;; When target is any OS other than 'none' these
                                ;; libraries will fail if there is no libc
                                ;; present. See

reply via email to

[Prev in Thread] Current Thread [Next in Thread]