From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: Bootstrapping on a new platform Date: Fri, 08 Dec 2017 11:28:38 +0100 Message-ID: <877etx1pk9.fsf@gnu.org> References: <201712030017.19982.paul@boddie.org.uk> <201712041924.26463.paul@boddie.org.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:39581) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eNFte-0001AB-Af for help-guix@gnu.org; Fri, 08 Dec 2017 05:28:47 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eNFtb-0008QP-5K for help-guix@gnu.org; Fri, 08 Dec 2017 05:28:46 -0500 Received: from hera.aquilenet.fr ([141.255.128.1]:38172) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eNFta-0008QG-Sc for help-guix@gnu.org; Fri, 08 Dec 2017 05:28:43 -0500 In-Reply-To: <201712041924.26463.paul@boddie.org.uk> (Paul Boddie's message of "Mon, 4 Dec 2017 19:24:25 +0100") 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: Paul Boddie Cc: help-guix@gnu.org Hi Paul Paul Boddie skribis: > These steps are what I thought might be needed. So, I did the following o= n my=20 > i386-linux-gnu system: > > tar zxf guix-0.13.0.tar.gz 0.14.0 was released yesterday, I=E2=80=99d suggest starting from that. > # Add to gnu/packages/bootstrap.scm: > # ((string=3D? system "mipsel-linux") "/lib/ld.so.1") > make > sudo make install > > This got me the daemon again. Having set up the build users and group, I = then=20 > started the daemon... > > sudo /usr/local/bin/guix-daemon --build-users-group=3Dguixbuild > > ...and ran the build command for the binaries: I=E2=80=99d suggest enabling substitutes if you don=E2=80=99t want to build= everything locally: https://www.gnu.org/software/guix/manual/html_node/Substitutes.html > guix build --target=3Dmipsel-linux-gnu bootstrap-tarballs > > I then got a couple of errors that halted the build process. Here's the s= tart=20 > of the first error: > > output path `/gnu/store/1j3mqrcp3y4xlb9jl5d0ri5aszn8mfii-gcc-4.9.4.tar.bz= 2'=20 > should have sha256 hash=20 > `14l06m7nvcvb0igkbip58x59w3nq6315k6jcz3wr9ch1rn9d44bc', instead has=20 > `1z91vb2i4d61fbrz7hdrsxiw3ksdzf372bgdzwsn75b72ndbi6lg' That would suggest either that gcc-4.9.4.tar.bz2 was modified on ftp.gnu.org (unlikely), or that there=E2=80=99s something fishy going on on= the network (captive portal, DNS hijacking, etc.) Ideas? > Running the build command again seems to either resolve this problem or m= ake=20 > it go away somehow. However, I then get a persistent error: > > guix build: error: build failed: cloning builder process: Invalid argument > > Looking at the archives, I see that this happened before (reported by Efr= aim): > > https://lists.gnu.org/archive/html/guix-devel/2016-07/msg00144.html > > I didn't see any obvious conclusion. So, I ran the daemon using strace an= d=20 > looked at the clone system call that supposedly causes this problem: > > clone(child_stack=3D0, flags=3DCLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SI= GCHLD,=20 > child_tidptr=3D0x404c5f28) =3D 25426 Could you search in the strace output for the =E2=80=98clone=E2=80=99 call = that failed with EINVAL? It=E2=80=99s probably the one from nix/libstore/build.cc. > For the record, I'm running all this in a User Mode Linux instance, mostl= y=20 > because my main system doesn't support the prerequisites for building Gui= x.=20 What kernel version do you use? guix-daemon requires namespace support, but this is a relatively old feature. Otherwise it might be some limitation of User Mode Linux; I=E2=80=99ve never tried. Thanks, Ludo=E2=80=99.