From mboxrd@z Thu Jan 1 00:00:00 1970 From: Efraim Flashner Subject: Re: Trying to crosscompile for POWER9 Date: Tue, 16 Oct 2018 21:24:18 +0300 Message-ID: <20181016182418.GA12881@macbook41> References: <31112b25-7f64-2d66-ef65-7e87fe173b5d@platen-software.de> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="ew6BAiZeqk4r7MaW" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43972) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gCU1L-0003VY-FE for guix-devel@gnu.org; Tue, 16 Oct 2018 14:24:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gCU1I-0001nJ-4h for guix-devel@gnu.org; Tue, 16 Oct 2018 14:24:43 -0400 Received: from flashner.co.il ([178.62.234.194]:32780) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gCU1G-0001Si-3d for guix-devel@gnu.org; Tue, 16 Oct 2018 14:24:38 -0400 Content-Disposition: inline In-Reply-To: <31112b25-7f64-2d66-ef65-7e87fe173b5d@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 --ew6BAiZeqk4r7MaW Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Oct 16, 2018 at 08:08:27PM +0200, Tobias Platen wrote: > Hello, >=20 > When I try to compile GUIX for POWER9 an old version of GCC is used. > How do I use the gcc version used for cross compiling. >=20 > ./pre-inst-env guix build --target=3Dpowerpc64le-linux hello >=20 > checking if powerpc64le-linux-gcc supports > binary128 floating point type... no > checking if the target machine is at least POWER8... yes >=20 > configure: error: *** > binary128 floating point type (GCC >=3D 6.2) is required on powerpc64le. >=20 > Tobias "Tomoko" Platen >=20 I'd recommend starting by editing gnu/packages/make-bootstrap.scm:103 and change the line: `(("cross-gcc" ,(cross-gcc target to: `(("cross-gcc" ,(cross-gcc target #:gcc-6 there are other places, like lines 110 and 391 (and possibly others) which should be turned to (inherit gcc-6) That should work for this round, then you can decide if it's worth upstreaming and wrap it in 'match' keywords for some of the newer architectures (like riskv). --=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 --ew6BAiZeqk4r7MaW Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAlvGLM4ACgkQQarn3Mo9 g1EO1BAAq24U3c+0qWl6xogvcdfF+COlIjchxk+BQyqms+P9hsTgQU+zTAP9cmhC BEt4fGRKuq28gdOpnPULCU68Bho0ir6Dc9ZgNOOGxpclvXdTIGps+EKhG6G8k/TJ Be4fd+3eB3yyCkeIl5Pa+99C8OEt5e7X7sHLV2fXG73i/QrCP0ckK2Ei5xTNQV4g U/VeVBpYLvmd/zkeVKZ06kSUGXX2QAg2V8UU2Bg5K/EByfaxe/0i72IRdDCBIdwl wJ6CTeHKS6Hjv3khZY6953YdnAV/3us26zxzPTXhlOhmDrDEFCk+Y4mcEYLVLitK yTUHka+DY6rYAIYvD05aWmSFDDUpBVF4TMhBlsx1/7z9Q/SSbm+AGJiGgjV4Bi+P +iDqCORdJmOYffRsB4zq+a617s8LGOuDBxqGUmryRAyZyf2Ql/4CVETJli9aDqgT KuMT7Hy8UysQsBQ4E2honP1uYn2wx4DUUNLywmJtY6jKNxyfUMoTKh+Qnd/ThwO8 c09qervV9DsfDI2wV2s762Wp7XkTxW41H7o/Br4xDm9R0pdeb5gg5AN2xxhsFPux JX5A5iFrsPuZDQo5aqa0hgF7dh77irhqKW7R2y62dFdSMOky4x17rr5PnIOfuna/ E1LPH7lm2QelDb0EiN+jYQJI00QEuguwK6AWtB9JvqpV1EFYhmg= =sy5j -----END PGP SIGNATURE----- --ew6BAiZeqk4r7MaW--