From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:c151::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id gKd4Mt8PU2CRUgAA0tVLHw (envelope-from ) for ; Thu, 18 Mar 2021 08:31:27 +0000 Received: from aspmx2.migadu.com ([2001:41d0:2:c151::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id ABhfLt8PU2AkRAAA1q6Kng (envelope-from ) for ; Thu, 18 Mar 2021 08:31:27 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx2.migadu.com (Postfix) with ESMTPS id D15198067 for ; Thu, 18 Mar 2021 09:31:26 +0100 (CET) Received: from localhost ([::1]:59892 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lMo3x-0002Gl-K9 for larch@yhetil.org; Thu, 18 Mar 2021 04:31:25 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54704) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lMo3Z-0002FB-Vz for guix-patches@gnu.org; Thu, 18 Mar 2021 04:31:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:33410) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lMo3Z-0002e7-O1 for guix-patches@gnu.org; Thu, 18 Mar 2021 04:31:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lMo3Z-0002Ih-K6 for guix-patches@gnu.org; Thu, 18 Mar 2021 04:31:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#47182] [PATCH 00/18] Add support for powerpc64le-linux (wip-ppc64le-for-master) Resent-From: Efraim Flashner Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 18 Mar 2021 08:31:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47182 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Chris Marusich Cc: 47182@debbugs.gnu.org Received: via spool by 47182-submit@debbugs.gnu.org id=B47182.16160562408816 (code B ref 47182); Thu, 18 Mar 2021 08:31:01 +0000 Received: (at 47182) by debbugs.gnu.org; 18 Mar 2021 08:30:40 +0000 Received: from localhost ([127.0.0.1]:44956 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lMo3E-0002I8-EV for submit@debbugs.gnu.org; Thu, 18 Mar 2021 04:30:40 -0400 Received: from flashner.co.il ([178.62.234.194]:33650) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lMo3A-0002Hr-CA for 47182@debbugs.gnu.org; Thu, 18 Mar 2021 04:30:39 -0400 Received: from localhost (unknown [31.210.181.184]) by flashner.co.il (Postfix) with ESMTPSA id 95F9D40221; Thu, 18 Mar 2021 08:30:29 +0000 (UTC) Date: Thu, 18 Mar 2021 10:29:47 +0200 From: Efraim Flashner Message-ID: References: <20210316062805.2890883-1-cmmarusich@gmail.com> <20210316064511.2891553-1-cmmarusich@gmail.com> <20210316064511.2891553-7-cmmarusich@gmail.com> <87k0q5m1ps.fsf_-_@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="mXac1wSL+CRSQQbN" Content-Disposition: inline In-Reply-To: <87k0q5m1ps.fsf_-_@gmail.com> X-PGP-Key-ID: 0x41AAE7DCCA3D8351 X-PGP-Key: https://flashner.co.il/~efraim/efraim_flashner.asc X-PGP-Fingerprint: A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1616056287; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post; bh=YRVYRvS94r6VbnneqMzYQSY102DJ1KeNcPQvcDhxFjE=; b=gr0WHks0VZTges0JoWkQT7hwgzaoGi1P3Ny0roEKVvkvEz2QpscZi9rTHFu8+TE5j5aDEJ EeOEwfsvU0e5/PlaiCZ5iveg+zMgoYYvYxu+lpE7zoPb+uhJ4ToCLMC5+Z+mGpyqJ0HVtk Ia+XaIBjQaAk6NKlvSPhotsIPv33uliiVPYs/dQEYgKFgrU/NsMKtl1PizJbgVBN4jRzFt wO4AL57t2FNgYqnMfqH6D0TVHYlPT5NrCQ4Z1UfV9byxtM/ELbC0QCkGeTQ615PVR8PEMj dw21ddtjQOgblmFgArpyfhjyy7BIiHsJZMjWnffbTk9TC2//vbEf6jQyBV2i/w== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1616056287; a=rsa-sha256; cv=none; b=AeSZWd/WsYWLVYPxLzhVGAT2oiZpsjUf+QSBDRBO3/0lQ/nVRIHSnM1ddJA3DtYc8CzoTs zoj56kSmDdZMmoOCIhmy7WMB80ZZ9bEtLYj3d+QZo9I0VKFzHJMxaukLzUAitB29MWOI6a bqeeFOh6hgt6Hw9H829EIIgsEoB4/bk+nWtYy5D+SaOUp5CyBGKeaUpP46OYO+9yjh0mb9 PdHUloQmP3bLi/lNKxYa6DV2x7URUTqAP9PIYGakKprZqssZvFrVxuhaJoeQSy/OLiGcqq NpO0H1dUXTmcC2GP4Cvk2w46PtDpWpBKWbOeverdWmYezRG4bS5Pgh7aYOGKnw== ARC-Authentication-Results: i=1; aspmx2.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx2.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: -4.00 Authentication-Results: aspmx2.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx2.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: D15198067 X-Spam-Score: -4.00 X-Migadu-Scanner: scn0.migadu.com X-TUID: aGuWfW93fQL4 --mXac1wSL+CRSQQbN Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Mar 17, 2021 at 11:10:23PM -0700, Chris Marusich wrote: > Efraim Flashner writes: >=20 > > On Mon, Mar 15, 2021 at 11:45:00PM -0700, Chris Marusich wrote: > >> * gnu/packages/commencement.scm (binutils-final)[arguments]: When chec= king if > >> the system is a Power architecture, instead of hard-coding "powerpc-li= nux", > >> use the target-powerpc? procedure so it works on more Power architectu= res. > >> [inputs]: Likewise. > >> --- > >> gnu/packages/commencement.scm | 4 ++-- > >> 1 file changed, 2 insertions(+), 2 deletions(-) > >>=20 > >> diff --git a/gnu/packages/commencement.scm b/gnu/packages/commencement= =2Escm > >> index c0732bbf62d..d4511ed9148 100644 > >> --- a/gnu/packages/commencement.scm > >> +++ b/gnu/packages/commencement.scm > >> @@ -3516,14 +3516,14 @@ exec ~a/bin/~a-~a -B~a/lib -Wl,-dynamic-linker= -Wl,~a/~a \"$@\"~%" > >> #:implicit-inputs? #f > >> #:allowed-references > >> ,@(match (%current-system) > >> - ("powerpc-linux" > >> + ((? target-powerpc?) > > > > I wonder if this would be better as ,@(if target-powerpc? > > I didn't test to see how it would work with cross compiling, I don't > > know if binutils-final gets built in that case. >=20 > Are the final inputs ever cross-compiled? I'm having trouble thinking > of a case when binutils-final would ever be cross-compiled. The package > (like all the final inputs) exist specifically to provide the native GCC > used for building the rest of the things in the system. In a case where > you want to cross-compile e.g. GNU Hello, Guix first uses these final > inputs to (natively) build a cross compilation toolchain, and then it > will use that one to cross-compile GNU Hello. >=20 > I don't think we need to account for cross-compliation of the final > inputs, but please correct me if I'm wrong. >=20 I first tried to cross compile binutils-final from x86_64 but it failed because all the mes packages don't support powerpc yet. Then I tried emulating an aarch64 machine to cross compile binutils-final and that failed at make-boot0. I think we can assume that binutils-final (and the other -final packages) aren't going to be cross compiled. ,@(if might be cleaner to look at, but ,@(match makes it easier to make change later without worrying about nested if statements. Which hopefully shouldn't be an issue anyway for binutils-final. --=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 --mXac1wSL+CRSQQbN Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAmBTD3QACgkQQarn3Mo9 g1FXhA/9EgDqc9uRPpCE40CDhvjngi5/XldJ9BEEYcF/mibB2eb7sJJ7ONQj0TAP VoRrWAjwgCR+evDDwm2DnZMziclAlXkT+0dCP4mi/Ds194Gfs5gPmV81ESKSV4HF XaG3zy4jnU9yQg0dAd2SEOVEHoP4QSafgCEGuuZa/QFGAM8y4aOgxR/wZUmOHkcH 9o45YIBdCiBAPSFlnXFqWE83NAmV3kUejLTgc5RPttShXT2/HFPrmHXUPzW6nTBU kWL+8vZUaGwPbb8HZX6cSVpvuqSWiL8DtjoesUiDne1Wjcj7dT9grUztX5ILCYOt 7SDzeLvlL5nttjsuT/XbYzCDORg9U4lfmSWlhAAAklSDeRJyDSI9RjCACXt0fhHV c3DOg4SzlcdPBaPOtMyr0/EOlU/lo5cBDnaxTuQ0WV4QRB22XtxNhRc/t0aEZJcc +K5l6EZ49F8fOWazYHuNATRAyFR5pVP/fA7q6zjqSQYzmbkQYIyjAb85ia8BApLj RzuT4JEbNrFH/CzdaD9hRQ9WddlvlzP1TZ0GcvKQDJ4bylPnb7ctTN7IhCfDz8/Q 5j86H2aAZBdeylIA9VPIdUd4tGDqL6I0HlH+WzodE8HkrsWuBsfvyHmMhV5d75Rs d0JMAbPgzAdb715k87/e0JrJiV5CHSU5eyNSnDppjHJX9yBbXtY= =la3D -----END PGP SIGNATURE----- --mXac1wSL+CRSQQbN--