From: Tobias Platen <trisquel@platen-software.de>
To: "Ludovic Courtès" <ludo@gnu.org>
Cc: Guix-devel <guix-devel@gnu.org>
Subject: Re: Patch adding POWER9 cross compile support
Date: Sun, 10 Mar 2019 21:20:04 +0100 [thread overview]
Message-ID: <3727eb95-933f-0fd5-a98c-98c2ed73b133@platen-software.de> (raw)
In-Reply-To: <878sxm3aik.fsf@gnu.org>
[-- Attachment #1: Type: text/plain, Size: 1646 bytes --]
I ran configure on my Talos II, and got the following error message.
checking for the Guix system type... powerpc64le-linux
configure: error: `powerpc64le-linux' is not a supported platform.
See "GNU Distribution" in the manual, or try `--with-courage'.
Guix already knows about this architecture, but building glibc will fail
if gcc does not have the float128 datatype. Once I saw this link[1] on
the guix mailing list, I knew how to solve the build error.
For the second question I could not find an answer.
[1] http://lists.busybox.net/pipermail/buildroot/2017-September/201379.html
Tobias
On 03/10/2019 06:27 PM, Ludovic Courtès wrote:
> Hi Tobias,
>
> Tobias Platen <trisquel@platen-software.de> skribis:
>
>> On 03/06/2019 02:54 PM, Ludovic Courtès wrote:
>>> + ,@(if (string-prefix? "powerpc9-" target)
>>> + ;; On POWER9 we need this because XXX.
>>> + '("--with-long-double-128")
>>> + '())
>>> +
>> It needs to be ppc64el I think. I will later do a test in a big endian
>> vm. POWER9 is a bi-endian architecture, and most distros only support
>> little-endian. POWER4 only supports big-endian, and is still supported
>> by some distros. After testing I will send an updated patch.
>
> I don’t think that answers my questions. :-)
>
> Those were:
>
> 1. What GNU triplet do you use?
>
> 2. What the reason for this extra configure flag, so we can add it in
> the comment above in place of XXX?
>
> TIA!
>
> Ludo’.
>
[-- Attachment #2: guix.diff --]
[-- Type: text/x-patch, Size: 885 bytes --]
diff --git a/gnu/packages/cross-base.scm b/gnu/packages/cross-base.scm
index 6a09272..0992259 100644
--- a/gnu/packages/cross-base.scm
+++ b/gnu/packages/cross-base.scm
@@ -138,6 +138,10 @@ base compiler and using LIBC (which may be either a libc package or #f.)"
"--disable-libquadmath"
"--disable-decimal-float" ;would need libc
"--disable-libcilkrts"
+ ,@(if (string-prefix? "powerpc64le-" target)
+ ;; 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
next prev parent reply other threads:[~2019-03-10 20:20 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
2019-03-06 17:56 ` Tobias Platen
2019-03-10 17:27 ` Ludovic Courtès
2019-03-10 20:20 ` Tobias Platen [this message]
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
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3727eb95-933f-0fd5-a98c-98c2ed73b133@platen-software.de \
--to=trisquel@platen-software.de \
--cc=guix-devel@gnu.org \
--cc=ludo@gnu.org \
/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 public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).