From debbugs-submit-bounces@debbugs.gnu.org Mon Jan 04 22:15:47 2021 Received: (at 41669) by debbugs.gnu.org; 5 Jan 2021 03:15:47 +0000 Received: from localhost ([127.0.0.1]:60730 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kwcp1-0006Y5-5t for submit@debbugs.gnu.org; Mon, 04 Jan 2021 22:15:47 -0500 Received: from mail-pg1-f181.google.com ([209.85.215.181]:39098) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kwcoz-0006Xo-P0 for 41669@debbugs.gnu.org; Mon, 04 Jan 2021 22:15:46 -0500 Received: by mail-pg1-f181.google.com with SMTP id 30so15689526pgr.6 for <41669@debbugs.gnu.org>; Mon, 04 Jan 2021 19:15:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=tEDmiIUN30LsU1kNYu2myAYqkHRnYHkiutnzIpfS/RI=; b=u9yI+q0tGD0ql8+j3o3v7Y2sz5bMxogSVmZfK8ExXqr0nziqYZZw4o+2Bi1ZW0Q/70 AtP88JTk0ETIfroLbi240XVmxoyiOnVxU2uY7fg+FwStqinGFLjXKdF4+vSNDNI2EMOl FcXCtNnCmnui9WsnJ3Lgwg8AU0SNvihiNdBeDCmm+md4VFZnk8Wljso3QCJMldKOcR1G NqWrEGFzAWBZFI3AWAn7okjemTUtEAhfvFQy5wyMOonIVVdQHPxabUztjmSo1U0TDZ3k ayar2JmExrq/pFkygftuVGseXesfm19aWwAXtMfLw0bQ6+UXE0tYTaToYiMisJKW1Vby RX4Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=tEDmiIUN30LsU1kNYu2myAYqkHRnYHkiutnzIpfS/RI=; b=FKB06ODJD9dZI1WWQ1W8rY0ax8z0osSwIHV7Zd0JDaYqPLTgSrcpRL7sDEvWK0Ci2m RlW+qFRySfxOqhOR00Mqx+/g0gylsb0osdTqXH4Pp+yMmL3TI/GwAhnxAC66DW3WNc8a rNoVSKow3Al9JqyuaS+HjLOtihtJQTj6JqT5ffBtLsxhBPJUljHowh5z1DLbuQwFDkfY GM3qsPjEvRqP3gm7jB+mJOyUNMqHMmZUrnoC/dO0QdOGtFzKctlUbGybmJc7nXYa3n09 VQitwOIjv9M8+OI3nbz8bcKLX4T0+lcii0LMx3Q2gmrU7p701n2r+1oEY0Pn5zE2L5r4 U3nQ== X-Gm-Message-State: AOAM532qYT+s/OsAdJqdGdXHGu3NAIkh/ImhPwXNbX0TA+lPfJPEX/vK CN9iKqLgXZNbncJ5BVAdO5M= X-Google-Smtp-Source: ABdhPJwS0bPhlmwkSB+26TU7ny+V1xzqulIgEXRGOtG/Aprn5NJ4TQ2g2mr3XX/P/LWC0z6XUwHJTg== X-Received: by 2002:a05:6a00:1683:b029:19d:917a:616b with SMTP id k3-20020a056a001683b029019d917a616bmr67950026pfc.15.1609816538987; Mon, 04 Jan 2021 19:15:38 -0800 (PST) Received: from garuda-lan ([2601:601:9d00:688::e6b]) by smtp.gmail.com with ESMTPSA id a1sm56334893pfo.56.2021.01.04.19.15.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Jan 2021 19:15:37 -0800 (PST) From: Chris Marusich To: Ludovic =?utf-8?Q?Court=C3=A8s?= Subject: Re: bug#41669: Cross-compiled powerpc64-linux bootstrap-tarballs not reproducible References: <87wo0hqbb3.fsf@gmail.com> <20200913062858.GC1100@E5400> <87wo0hqbb3.fsf@gmail.com> <87pn5wzwcf.fsf@gnu.org> <87pn3dth0l.fsf_-_@gmail.com> <874krtnvk8.fsf@gmail.com> <87y2p4mqe2.fsf@gmail.com> <87a6xu2xrj.fsf@gmail.com> <20200913062858.GC1100@E5400> <87wo0hqbb3.fsf@gmail.com> <874krtnvk8.fsf@gmail.com> <87y2p4mqe2.fsf@gmail.com> <87a6xu2xrj.fsf@gmail.com> <20200913062858.GC1100@E5400> <87wo0hqbb3.fsf@gmail.com> <87pn5wzwcf.fsf@gnu.org> <87pn3dth0l.fsf_-_@gmail.com> <87blepaqd8.fsf_-_@gmail.com> <87sg7hxctr.fsf@gnu.org> Date: Mon, 04 Jan 2021 19:15:34 -0800 In-Reply-To: <87sg7hxctr.fsf@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Mon, 04 Jan 2021 10:37:20 +0100") Message-ID: <8735zg13c9.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 41669 Cc: 41669@debbugs.gnu.org, Leo Le Bouter , Efraim Flashner , Maxim Cournoyer , Vincent Legoll X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi Ludo, Ludovic Court=C3=A8s writes: >>> https://media.marusich.info/guix-ppc64-bootstrap/bootstrap-tarballs-fro= m-guix-1ced8379c7.tar.xz >>> https://media.marusich.info/guix-ppc64-bootstrap/bootstrap-tarballs-fro= m-guix-1ced8379c7.tar.xz.asc >>> https://media.marusich.info/guix-ppc64-bootstrap/bootstrap-tarballs-fro= m-guix-1ced8379c7.tar.xz.sha512sum > > [...] > > IIUC, the tarballs at the URL above are for PPC64 (system type: > =E2=80=98powerpc64-linux=E2=80=99); is this also going to work on PPC64LE= hardware? No, we need a separate tarball for LE. I have prepared that here: https://media.marusich.info/guix-ppc64le-bootstrap/powerpc64le-linux-gnu-bo= otstrap-tarballs-from-guix-662e7e28d576.tar.xz https://media.marusich.info/guix-ppc64le-bootstrap/powerpc64le-linux-gnu-bo= otstrap-tarballs-from-guix-662e7e28d576.tar.xz.sha512sum https://media.marusich.info/guix-ppc64le-bootstrap/powerpc64le-linux-gnu-bo= otstrap-tarballs-from-guix-662e7e28d576.tar.xz.asc This tarball, containing the little-endian bootstrap binaries, was generated using the same setup that I used earlier for big-endian. Specifically, to generate the little-endian bootstrap binaries, I took the following steps on two separate VMs: =2D Use https://ftp.gnu.org/gnu/guix/guix-system-install-1.2.0.x86_64-linux.iso.xz to install Guix System 1.2.0 on an x86_64-linux machine. =2D Run: guix pull --no-substitutes --commit=3D1ced8379c7641788fa607b19b7a6= 6d18f045362b =2D Run: guix pull --no-substitutes --commit=3D662e7e28d576ada91fc9dec7d27c= 100666114f03 =2D Run: guix build --no-substitutes --target=3Dpowerpc64le-linux-gnu boots= trap-tarballs =2D I didn't run "guix system reconfigure" after installing Guix System; theoretically it shouldn't matter, but for the purpose of our experiment, I just left the system in its default configuration in order to ensure that the kernel etc. would be the same on both VMs. Notice that there are two "guix pull" invocations. This is because I first pulled to 1ced8379c7641788fa607b19b7a66d18f045362b in order to build the big-endian bootstrap-tarballs as described earlier. After that, I pulled to 662e7e28d576ada91fc9dec7d27c100666114f03 in order to build the little-endian bootstrap-tarballs on the same machine. In theory it shouldn't matter how you arrive at commit 662e7e28d576ada91fc9dec7d27c100666114f03, but for the sake of completeness and reproducibility I've included both pull steps. By the way, just as with the big endian bootstrap binaries, all the little endian bootstrap binaries I built were identical on both VMs except for gcc-static. The output of gcc-static contained binaries that differed in ways similar to what has been described earlier in this thread. So, the non-reproducibility of gcc-static is not specific to one PPC architecture. I wonder if gcc-static can be cross-built reproducibly for any architecture at all. > (As you know, we use i386 binaries for both i686-linux and x86_64-linux. > Likewise, if we can have a single set of binaries instead of having > PPC32, PPC64, and PPC64LE, that=E2=80=99s better.) This is a fair question. I agree that if it were possible, it would be a great improvement. I didn't know the answer to this question, so I asked in #talos-workstation on Freenode. The users there said that although in theory this should be possible, it isn't currently feasible because the ability to do this is not currently implemented in Linux. For the moment, I think our focus should be on finding out which of these two architectures can be bootstrapped in Guix in the first place. The first step in doing that is to try using these bootstrap binaries. =2D-=20 Chris --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEy/WXVcvn5+/vGD+x3UCaFdgiRp0FAl/z2dYACgkQ3UCaFdgi Rp0STRAAg0bC3F6xlp/OxckoesF0XY6Htdmgz/lGAEKjiDBFi4VnDx6qF1Hl4udQ qeu3TlSiHijYuVJUhPndQhTbwxGnxUMLfCRhZDFRng2e/3Xt07bOga1NvkdG2Wjm rTtTghMLLUhcOrzbdW/AMbwn7t6joFNI/5jMhtcFS5EMjjV68IpwvfWWHD4Tv6Pk DCzbWGjiiXuMvtvS331Qmkp6SRf1N+xIWiedtFvjSLuNIY/aoKhyO1hI6dVPnhwX xwDvozWQrduqOxW9ZRh+vo5CgIj6rRdz8/EQOdSdOeLDtMKTVbEB/95o2kV7mLby +742OAaqPF1upaRdFze4C+2HCn8zeRy/UHbDNjPu0f0Q31gjZP6OVBu9tOKIRvpN pyN87lGDuQM8WhkpACVeb4ul/QnjPptyynum2p9z5/t/9F0MaRBdvg9Chf6ZO5uO 6wHQCDqo0EJeZ/PneVIjx/MNAyi3qeX0xdAt0qawg8AScB+58tod+YnXL/O+LPGu MbVDLffTGFHGwbxDpBpgQNh7U4o1wBXlTYotFo472WyXbuyjxAqO2Efl9RUFmnNa i9DhiN1+D3HQfXELMa6N/LyFh+tHIhVZfWvG/Hz3LYBNXjQCHIGxcWXGXY8Ye+9v Izppu+SfEqBQWMDManzLdO+Bsj72nixcqxkmqabajanlA3Obp/o= =ep7a -----END PGP SIGNATURE----- --=-=-=--