From debbugs-submit-bounces@debbugs.gnu.org Wed Nov 20 09:24:50 2019 Received: (at 38226) by debbugs.gnu.org; 20 Nov 2019 14:24:50 +0000 Received: from localhost ([127.0.0.1]:49218 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iXQuX-0008Dw-VB for submit@debbugs.gnu.org; Wed, 20 Nov 2019 09:24:50 -0500 Received: from mout01.posteo.de ([185.67.36.65]:53501) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iXQuU-0008Dh-Qk for 38226@debbugs.gnu.org; Wed, 20 Nov 2019 09:24:48 -0500 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id DD0FE16005C for <38226@debbugs.gnu.org>; Wed, 20 Nov 2019 15:24:39 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1574259880; bh=yDfe1ZX/drhxuW+ZZkZMCK+AYfnaAD660Vy3EvuxvpI=; h=Date:From:To:Cc:Subject:From; b=ahQWiaRjyGZAZ+8EJlIatYpaPIltAlVht9V8W2SQeQv9NQ1cPnlIza/zOtPVbj8GJ jYWRDCY4iniLPd1J+VTVlMFlVxD5XXDosvn8WzdY5WPf2UV7UKwS1NA4Mc3+/zz8rq 1cuC7qEUqiKKmBDjZ/Tx0FBwSAAmnC+IrCqDdiEr1aQq+nX6gUVMuksyR5+v/JvmeM T/80V3ZHbT8UTf4Rwn1kQFOhF+mrf6pPgn49OzJ9sd2vqbBpuDv523Cqnreq3mvjJo 9t76IV78OcLFruoEjewzU71xwgVMn7gT7r/+wEQmZNlBEAEnGqVbATZHDcKYabVqkI TdEFBm9/oTULw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 47J4hQ2fjcz6tmH; Wed, 20 Nov 2019 15:24:38 +0100 (CET) Date: Wed, 20 Nov 2019 15:21:27 +0100 From: Kai Mertens To: Ludovic =?UTF-8?B?Q291cnTDqHM=?= Subject: Re: bug#38226: guix pull: error: build failed: [...] ice-9/boot-9.scm:109:20: Syntax error: Message-ID: <20191120152127.561dbc3f.kmx@posteo.net> In-Reply-To: <87eey6jjds.fsf@gnu.org> References: <20191116032658.42f4533d.kmx@posteo.net> <87eey6jjds.fsf@gnu.org> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/+GGvyKRVLgDezBR=Tw.pU2I"; protocol="application/pgp-signature"; micalg=pgp-sha512 X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 38226 Cc: 38226@debbugs.gnu.org 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: -3.3 (---) --Sig_/+GGvyKRVLgDezBR=Tw.pU2I Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Sun, 17 Nov 2019 22:14:07 +0100 Ludovic Court=C3=A8s wrote: > > The command =E2=80=9Csudo -i guix --version=E2=80=9D gives me: > > guix (GNU Guix) 20170703.13 =20 >=20 > This version predates the big =E2=80=98guix pull=E2=80=99 overhaul in 0.1= 5.0 (what > basically makes this kind of problem much less likely to happen.) >=20 > Thus, you need a more recent =E2=80=98guix=E2=80=99 to upgrade. >=20 > One way to do that is to fetch the derivation that builds a recent Guix > and to build it. >=20 > Here=E2=80=99s a trick to do that (for commit 57c7bfec6, on x86_64-linux): >=20 > --8<---------------cut here---------------start------------->8--- > $ guile -c '(use-modules (guix)) (with-store s (build-things s (list "/gn= u/store/ihylk84symj8mjhp3zmy83ch2h2pl0ks-guix-57c7bfec6.drv")))' > $ guix build "/gnu/store/ihylk84symj8mjhp3zmy83ch2h2pl0ks-guix-57c7bfec6.= drv" > $ /gnu/store/4zmf32hjrjjjl2xp91aldxhmsmk6ff29-guix-57c7bfec6/bin/guix pull > --8<---------------cut here---------------end--------------->8--- >=20 > Let me know how it goes! Puh, in respect to the sequencing mails I have to admit that it is hard to me to follow the discussion. So please let me ask something else in between: Can I make use of an existing guix derivation file or guix binary, available in /gnu/store? In example (on i686): The root account has this very old guix version: v0.13.0-443-gde9d8f0e29 Whereas, my user account has a more up-to-date version: bootstrap-20190815-3564-g7696af421b and its Generation 1 refers to: v0.16.0 In /gnu/store/, I have several guix derivations available: $ ll *-guix-0.13.0-2.???????.drv -r--r--r-- 2 root root 4,5K Jan 1 1970 6r87sglvwbmqcz2zhzgvag7aakk1shc3-g= uix-0.13.0-2.de9d8f0.drv -r--r--r-- 2 root root 1,1K Jan 1 1970 c24j1glzsgzklkjmv2ik7vcsyasc6yg2-g= uix-0.13.0-2.de9d8f0.drv -r--r--r-- 2 root root 2,7K Jan 1 1970 cav8ip7bazglbhagd7afbyw9aah94q3m-g= uix-0.13.0-2.de9d8f0.drv -r--r--r-- 2 root root 4,5K Jan 1 1970 p5m5qhkab5rxki8fmn89wgmnvchf1p1l-g= uix-0.13.0-2.de9d8f0.drv and $ ll *-guix-?????????.drv -r--r--r-- 2 root root 1,2K Jan 1 1970 0ypa7ga44mprjp2cfyk5iwlg07jqq2m4-g= uix-b8f0a3fdc.drv -r--r--r-- 2 root root 1,3K Jan 1 1970 3b4kw7sfm03092cc0sxh91w2v26jvq4n-g= uix-4a0b87f0e.drv -r--r--r-- 2 root root 1,2K Jan 1 1970 bl41dqirc8j6mza8f01xac1f8pd5fbh3-g= uix-d8048dbe5.drv -r--r--r-- 2 root root 1,2K Jan 1 1970 iq424kad8wj3ws0g59nwdkccrk34k76g-g= uix-c72c10053.drv -r--r--r-- 2 root root 1,2K Jan 1 1970 r2hww1x08y9gz9a9fb94w1b0d3rjv9d5-g= uix-7696af421.drv ...which can be sorted by age if I use =E2=80=9Cgit describe=E2=80=9D to ge= t a human readable string: ~~~ $ git describe 7696af421 bootstrap-20190815-3564-g7696af421b $ git describe d8048dbe5 bootstrap-20190815-3491-gd8048dbe50 $ git describe b8f0a3fdc bootstrap-20190815-3368-gb8f0a3fdc8 $ git describe c72c10053 v1.0.0-696-gc72c10053d $ git describe 4a0b87f0e v0.16.0 $ git describe de9d8f0 v0.13.0-443-gde9d8f0e29 ~~~ If I pick the oldest commit beyond 0.15, I try an already built binary. That seems to work, although I receive a bunch of warnings (not shown here): ~~~ # /gnu/store/b0br0mhjxcy7bzg0c2pij1vf48jf9ddj-guix-4a0b87f0e/bin/guix pull = -c0 guile: warning: failed to install locale hint: Consider installing the `glibc-utf8-locales' or `glibc-locales' packa= ge and defining `GUIX_LOCPATH', along these lines: guix package -i glibc-utf8-locales export GUIX_LOCPATH=3D"$HOME/.guix-profile/lib/locale" See the "Application Setup" section in the manual, for more info. Migrating profile generations to '/var/guix/profiles/per-user/root'... Updating channel 'guix' from Git repository at 'https://git.savannah.gnu.or= g/git/guix.git'... Building from this channel: guix https://git.savannah.gnu.org/git/guix.git 900ef20 substitute: updating list of substitutes from 'https://ci.guix.gnu.org'... = 100.0% substitute: updating list of substitutes from 'https://ci.guix.gnu.org'... = 100.0% substitute: updating list of substitutes from 'https://ci.guix.gnu.org'... = 100.0% [...] building /gnu/store/3yk3qh02vx8zm7pd9d3x7gicikfbpybr-profile.drv... successfully built /gnu/store/3yk3qh02vx8zm7pd9d3x7gicikfbpybr-profile.drv 1 package in profile # guix pull -l guile: warning: failed to install locale Generation 1 Nov 18 2019 22:45:38 (current) guix 900ef20 repository URL: https://git.savannah.gnu.org/git/guix.git branch: master commit: 900ef20b1da66ad71145082c883dc12f31fafa54 # guix package -I guile: warning: failed to install locale glibc-utf8-locales 2.25 out /gnu/store/9vv6szr949m8mrqfyj7bfkxi8g5mfr2y-gli= bc-utf8-locales-2.25 guix 0.13.0-2.de9d8f0 out /gnu/store/34541bys6lh3wjwjn81b9bxjb93q83qx-guix-= 0.13.0-2.de9d8f0 glibc 2.25 out /gnu/store/2bw8y2k8fi9n6yl43ks0m62z919kgrfv-glibc-2.25 ~~~ If I understand correctly, I have just updated my root=E2=80=99s guix and I carefully update packages glibc and glibc-utf8-locales in order to satisfy guile and make the warning disappear: ~~~ # guix package -c0 -u glibc-utf8-locales -u glibc guile: warning: failed to install locale The following packages will be upgraded: glibc-utf8-locales 2.25 =E2=86=92 2.29 /gnu/store/lhcmsprr3jz8cp0wg27ql5= 9fv1k6hrkl-glibc-utf8-locales-2.29 glibc 2.25 =E2=86=92 2.29 /gnu/store/df1lrb4b1dmw99b764qdk7akv0hpyjiw-gl= ibc-2.29 [...] 3 packages in profile # guix package -I guix 0.13.0-2.de9d8f0 out /gnu/store/34541bys6lh3wjwjn81b9bxjb93q83qx-guix-= 0.13.0-2.de9d8f0 glibc-utf8-locales 2.29 out /gnu/store/lhcmsprr3jz8cp0wg27ql59fv1k6hrkl-gli= bc-utf8-locales-2.29 glibc 2.29 out /gnu/store/df1lrb4b1dmw99b764qdk7akv0hpyjiw-glibc-2.29 ~~~ Now I remember that I have to restart the daemon and reboot the machine. Playing around with =E2=80=9Cpull=E2=80=9D and =E2=80=9Cpackage -u= =E2=80=9D again brings me to the situation where I am now: ~~~ # guix pull -l Generation 1 Nov 18 2019 22:45:38 guix 900ef20 repository URL: https://git.savannah.gnu.org/git/guix.git branch: master commit: 900ef20b1da66ad71145082c883dc12f31fafa54 Generation 2 Nov 19 2019 00:11:25 guix e26867f repository URL: https://git.savannah.gnu.org/git/guix.git branch: master commit: e26867f74b629c4a981e45332ce94637cf4230eb 1 package upgraded: tome4@1.6.1 Generation 3 Nov 20 2019 13:33:09 (current) guix 30ebff6 repository URL: https://git.savannah.gnu.org/git/guix.git branch: master commit: 30ebff69a75fe90a1694ef35cf6e749ec376b67e 7 new packages: carla, emacs-ample-theme, font-dseg, minisat, python-inte= lhex, python-mcuboot-imgtool, python-next 4 packages upgraded: brlaser@6, cmark@0.29.0, mcron@1.1.3, uefitool@0.26.0 # guix package -I glibc-utf8-locales 2.29 out /gnu/store/lhcmsprr3jz8cp0wg27ql59fv1k6hrkl-gli= bc-utf8-locales-2.29 guix 1.0.1-10.41b4b71 out /gnu/store/4djl9bnl0p62jmfidk5vc2sjchx5m2h7-guix-= 1.0.1-10.41b4b71 glibc 2.29 out /gnu/store/df1lrb4b1dmw99b764qdk7akv0hpyjiw-glibc-2.29 ~~~ I guess I am back on track now, would you agree? Or does my procedure contain any mistakes? I wonder why guix did not use local guix derivations or binaries that were already available in the store. Maybe a now-a-days version of guix would do? I further wonder why the guix package itself is still listed, as with a fresh, recent installation of guix on top of a foreign distro, guix itself is not listed with =E2=80=9Cguix package -l=E2=80=9D. best regards Kai --=20 Kai Mertens OpenPGP Key-ID: 0x40B15AB4B05B5BF1 on keys.gnupg.net Key fingerprint =3D 7C83 0A80 01FF 679C 6E8E AFD3 40B1 5AB4 B05B 5BF1 What is that? Please check: https://emailselfdefense.fsf.org/en/ --Sig_/+GGvyKRVLgDezBR=Tw.pU2I Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEfIMKgAH/Z5xujq/TQLFatLBbW/EFAl3VS+cACgkQQLFatLBb W/F7yhAArHaoNkhyWE+IG62/fKac/0I5eLRoARj0pz1pajgtbww2bBmxz7aVK2Ub FT8+jL1DT+6f0c6rcq1zcmO7+Hlk7+HTHvGoCpkaWozbWuANt7J8q7ycqUMZ9jIh 9KGA1IwWaYkET2HuErNpQ8C2IYJzdbUNNp3B2jU9myMXHAA2PGAMvwNCouoTIPGu KnTetL49Hnqvnmcw4TwPGDlCbCcNQ5kL3gseuZkJWXPPR3UgsUnLdrTi+q+Nl3M3 bRXzsU7aiN8Du8KWNkG5El1d2ndfHOkyOFCHi8jhGHBIvc3SA+sw7RuZSTfYmFyE 6fEl1T6AdPaAHypFyqX4FmoBWBFqJ/50r+A3aPOseDY0VKYxyHFUE/0ph0Ef4fkH BqqUjLS/7rYRnn7X7fctCimfvHYgLgMy42ZsDVdUDbq16+5M44jVf0p1sKrzDrQX 7bAEV04PBRk1vbP9oH+wJzXD3HVcHQQWpH+0SGR+G08+RlrDJv44Zq60Ua4BfJT7 3PNWpmpdNLqCvrgsLN+TWr3cNqF3cwE2LOw4dOoauNi338mSO5lkidbR/2MLSEJZ kmY3j4W+9LlEpRrBxqN0xTm8NB9V2I4Kgditl8QGtELlD7RcirpNR0O+WolkfjS8 AS+DAJl5b9S3JoidP9Mjb58u4gI4LaX+jHdxEIbXcMif4OKjcPI= =qDHt -----END PGP SIGNATURE----- --Sig_/+GGvyKRVLgDezBR=Tw.pU2I--