From mboxrd@z Thu Jan 1 00:00:00 1970 From: Efraim Flashner Subject: Re: Bootstrapping on a new platform Date: Sun, 3 Dec 2017 11:54:35 +0200 Message-ID: <20171203095435.GD19582@macbook41> References: <201712030017.19982.paul@boddie.org.uk> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="A9z/3b/E4MkkD+7G" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:57732) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eLQyx-0001ad-Gf for help-guix@gnu.org; Sun, 03 Dec 2017 04:54:44 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eLQys-0003io-9c for help-guix@gnu.org; Sun, 03 Dec 2017 04:54:43 -0500 Received: from flashner.co.il ([178.62.234.194]:60026) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eLQyr-0003iQ-UZ for help-guix@gnu.org; Sun, 03 Dec 2017 04:54:38 -0500 Content-Disposition: inline In-Reply-To: List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: Manolis Ragkousis Cc: help-guix@gnu.org --A9z/3b/E4MkkD+7G Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Dec 03, 2017 at 08:46:56AM +0200, Manolis Ragkousis wrote: > Hello Paul, >=20 > On 12/03/17 01:17, Paul Boddie wrote: > > I finally got round to trying to build Guix again, this time doing a na= tive=20 > > build rather than a cross-build. However, I'm attempting this on an=20 > > unsupported platform (mipsel), and it isn't clear what I need to do to = make=20 > > the bootstrap binaries and thus attempt a source build. > >=20 > > What I've figured out so far is this: > >=20 > > tar zxf guix-0.13.0.tar.gz > > cd guix-0.13.0 > > ./bootstrap > > ./configure --with-courage > > make > > make install > >=20 > > This gets me the guix-daemon, but upon trying to do anything, I get the= =20 > > following: > >=20 > > guix build: error: could not find bootstrap binary 'tar' for system 'mi= psel- > > linux' > >=20 >=20 > You need to cross-build those binaries from a system that is supported, > like x86_64-linux for example. > > I understand that I need some bootstrap binaries, and the bootstrapping= =20 > > documentation indicates that these can indeed be generated as follows: > >=20 > > guix build --target=3Dmipsel-linux-gnu bootstrap-tarballs > >=20 > > But this just gives the same error. And I am actually running on mipsel= -linux- > > gnu, so I suppose it might be different if I were try this on a support= ed=20 > > system - i386-linux-gnu, for instance - and thus generate the binaries = that=20 > > way. > >=20 > > Maybe I have just missed the part of the manual that talks about these = source=20 > > builds, but it really doesn't seem obvious to me. Another thing, which = I've=20 > > seen mentioned on this list is reproducible builds. Might it be possibl= e to=20 > > have architecture-independent source archives that reproducibly build t= he=20 > > binaries? > >=20 >=20 > First I would suggest checking out my talk in FOSDEM 17 which I tried to > explain how bootstrapping in Guix works, along with how I did it for > Hurd. [1] >=20 > The simplified steps are the following: > 1) Cross-build those binaries from a supported system > 2) Add the new binaries to Guix (check gnu/packages/bootstrap.scm) > 3) Copy the Guix source which now has the new binaries to the system you > are trying to port it to. I suggest working on the git version of Guix > for this. It's good to have the updated version. > 4) ./boostrap && ./configure --with-courage && make > 5) work out issues and enjoy. >=20 > Does this make sense? I have spent a lot of time on this so please ask > and I can help you :). >=20 > Manolis >=20 > [1] https://archive.fosdem.org/2017/schedule/event/guixhurd/ >=20 I also spent a lot of time getting the aarch64-linux port working, and I'd be happy to help. Also you should post this to guix-devel also to make sure there are more eyes on it. --=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 --A9z/3b/E4MkkD+7G Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAlojydgACgkQQarn3Mo9 g1Fh2A//bFoHJBf8Zmm/uHQ19znrv5D2n0nCDH1feMI7/AUhYh3Qijw5EdZhdvWM QUxKdCqMmHo6cAO7JWsOn69mbxm86tDcpN7c+gGDv2ueyL//L2gXlO6meZ25+FU/ 8QWOOaIdoVUMCeUfMP/uCN+UACcXHeeje0JmnbXwsmmyHHm3Mvz2EPBBACEPMR3Q AMkwEDX10lLxaIcjUwLhnS8f8XX3lW/iV4TfqfRVizyw8g/61ML41OpTS+Tx0bp5 XfFL5TTO0fY+L6zslm5sspOsiLFNzdngwlsgNC404fPUBUqu4t1NyPn6J+FRdxiQ +XwmB21jY11z3QYT4JQoJI0JWugLhjz4aDT+mb9hL4sgjBDNbA1/U8AMh9VttyQN 4i4CRhTVux1z7p/npuwq8Ug8xsFSk6/b7MzHpc3EVKmpRy3/LgjQMQseJJ0Nb/Iz GB6bfDfgD4ktD/3dk/IDqxhiEdUn0Pr2EDrlZxlsr4qXOptk+WgmKTnHSZpGesnk oXpWy2oQuGea/Ie+sOoVpTNh7v7G9r+6XN252JSgpWAf3O885QcUh3ZtasB3LkyA g2JyO3hRU8PG3OwWYgqHwMWsVsjLtsjv9ByRNezB21FhRCrbPuc5yIUdhU5FqXJz 4ILQxGyWU3nOFokQadP5l0BvConwvr+nf/4JCWcrLgTUWqOsJhw= =c937 -----END PGP SIGNATURE----- --A9z/3b/E4MkkD+7G--