all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Ludovic Courtès" <ludo@gnu.org>
To: Tobias Platen <trisquel@platen-software.de>
Cc: Guix-devel <guix-devel@gnu.org>
Subject: Re: Patch adding POWER9 cross compile support
Date: Wed, 06 Mar 2019 14:54:31 +0100	[thread overview]
Message-ID: <8736o0hzvs.fsf@gnu.org> (raw)
In-Reply-To: <ab88fa44-59f4-0e39-1569-6d239d120164@platen-software.de> (Tobias Platen's message of "Wed, 27 Feb 2019 19:29:02 +0100")

[-- Attachment #1: Type: text/plain, Size: 703 bytes --]

Hello Tobias,

Tobias Platen <trisquel@platen-software.de> 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!

Ludo’.


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: Type: text/x-patch, Size: 868 bytes --]

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
                                "--disable-libcilkrts"
 
+                               ,@(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

  parent reply	other threads:[~2019-03-06 13:54 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-02-27 18:29 Patch adding POWER9 cross compile support Tobias Platen
2019-02-27 21:24 ` Jonathan Brielmaier
2019-03-01  6:04   ` Tobias Platen
2019-03-06 13:54 ` Ludovic Courtès [this message]
2019-03-06 17:56   ` Tobias Platen
2019-03-10 17:27     ` Ludovic Courtès
2019-03-10 20:20       ` Tobias Platen
2019-03-11  7:52         ` Efraim Flashner
2019-03-12 14:10           ` Ludovic Courtès
2019-03-12 14:10           ` Ludovic Courtès
2019-03-13  7:28             ` Tobias Platen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8736o0hzvs.fsf@gnu.org \
    --to=ludo@gnu.org \
    --cc=guix-devel@gnu.org \
    --cc=trisquel@platen-software.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.