From mboxrd@z Thu Jan 1 00:00:00 1970 From: Efraim Flashner Subject: Re: Patch adding POWER9 cross compile support Date: Mon, 11 Mar 2019 09:52:04 +0200 Message-ID: <20190311075204.GC19750@macbook41> References: <8736o0hzvs.fsf@gnu.org> <35fe8a38-74ec-9295-2a85-bb2d5e2003a7@platen-software.de> <878sxm3aik.fsf@gnu.org> <3727eb95-933f-0fd5-a98c-98c2ed73b133@platen-software.de> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="8NvZYKFJsRX2Djef" Return-path: Received: from eggs.gnu.org ([209.51.188.92]:53968) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h3Fs2-0008GY-4S for guix-devel@gnu.org; Mon, 11 Mar 2019 04:01:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h3FjD-0006SZ-JY for guix-devel@gnu.org; Mon, 11 Mar 2019 03:52:08 -0400 Content-Disposition: inline In-Reply-To: <3727eb95-933f-0fd5-a98c-98c2ed73b133@platen-software.de> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Tobias Platen Cc: Guix-devel --8NvZYKFJsRX2Djef Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Mar 10, 2019 at 09:20:04PM +0100, Tobias Platen wrote: > I ran configure on my Talos II, and got the following error message. >=20 > 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'. >=20 > 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 g= uix > mailing list, I knew how to solve the build error. >=20 > For the second question I could not find an answer. >=20 > [1] http://lists.busybox.net/pipermail/buildroot/2017-September/201379.ht= ml >=20 > Tobias >=20 > On 03/10/2019 06:27 PM, Ludovic Court=C3=A8s wrote: > > Hi Tobias, > >=20 > > Tobias Platen skribis: > >=20 > > > On 03/06/2019 02:54 PM, Ludovic Court=C3=A8s wrote: > > > > + ,@(if (string-prefix? "powerpc9-" t= arget) > > > > + ;; On POWER9 we need this bec= ause 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. > >=20 > > I don=E2=80=99t think that answers my questions. :-) > >=20 > > Those were: > >=20 > > 1. What GNU triplet do you use? >=20 > >=20 > > 2. What the reason for this extra configure flag, so we can add it in > > the comment above in place of XXX? > >=20 > > TIA! > >=20 > > Ludo=E2=80=99. > >=20 > 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-" targ= et) > + ;; On POWER9 (little endian) glibc needs = the 128 bit long double type. > + '("--with-long-double-128") > + '()) > =20 > ;; When target is any OS other than 'none= ' these > ;; libraries will fail if there is no libc In the off chance we ever wish to support powerpc64 big endian, I suggest instead using (string-prefix? "powerpc64*-" target) As far as '--with-long-double-128', I think it's worth finding out which architectures accept it and allowing it for all of those, rather than making it powerpc64le only. --=20 Efraim Flashner =D7=90=D7=A4=D7=A8=D7=99=D7=9D = =D7=A4=D7=9C=D7=A9=D7=A0=D7=A8 GPG key =3D A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 Confidentiality cannot be guaranteed on emails sent or received unencrypted --8NvZYKFJsRX2Djef Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAlyGE6AACgkQQarn3Mo9 g1ETFA//T+apwh8Y1Qvr8Tsd6QpgjMr6sukgzvTBtaFxOsP1j3+klxHnAhZh/v3K FR0qlUU4LGb9NSYonZx0Dg7uOKl39tNv2ZSA3sdmb1jUXDHhnykpfyb7kE/txRu0 k92XwJHuQjQOyMylmSVmws6eTPvGTHJOq6pk950j0eoB7IwYqBPjHfR0TLejvnHJ y9ZB8B0Lm9cHX5tuGy6q708uyugVv81zLkYrIbA0emmEGyvXpwT8Ei4p6SLvD0OW MZMPvvx5qGcbi3swewkMHQ9+ezW4uzrzK+nSSn4e0M+DBCXm5xQnzN/MPOdoUh9u 8sHxlT2IpsgmHfMAMfyCuxnvOzpmTiM6dnTkcISvAL2ayZ3MDW7FC6g6CZnb8Nv5 Jk/d2vB/VQ9WREZ4fQEuqmYUSt3Z9y3wFcSBLyDWRovuEXJo97Wu7tOiX6/ZhUNW VEpLdIMJJ3GWDLCRDE+ScziQBaGCdaDi+PuHhobkQSaDf1PugwIcKDlRAsx2IxbK 6Yks+V9iXOG6wa1t56vdmk9dhCmJo/FYTVLrr52mnnfxj4GBcvmv+3rjLNi5GObt ZfY3xxXeECeaMpWQH4elKRCAZbFMBtD6x9hkqDdWoWbjMhoGZLLt1Fk4j69wEFEY sPzI4/4TzMXok56MdkKiWo6Nx8TOMMO8Cv1EX+bZK42+esGsAfY= =LrDh -----END PGP SIGNATURE----- --8NvZYKFJsRX2Djef--