"guix pull" broke itself

  • Done
  • quality assurance status badge
Details
4 participants
  • Adonay Felipe Nogueira
  • Danny Milosavljevic
  • Ludovic Courtès
  • Ricardo Wurmus
Owner
unassigned
Submitted by
Danny Milosavljevic
Severity
normal

Debbugs page

Danny Milosavljevic wrote 7 years ago
(address . bug-guix@gnu.org)
20180415125942.72181370@scratchpost.org
$ guix pull
Updating from Git repository at 'https://git.savannah.gnu.org/git/guix.git'...
Building from Git commit fc12113704255616522cb56fc37b4a18fccd84eb...
Backtrace:
In ice-9/boot-9.scm:
2862:4 19 (define-module* _ #:filename _ #:pure _ #:version _ # _ …)
2071:24 18 (call-with-deferred-observers #<procedure 49399b0 at ic…>)
2875:24 17 (_)
222:17 16 (map1 (((gnu)) ((guix)) ((guix ui)) ((guix config)) # …))
2788:17 15 (resolve-interface (gnu) #:select _ #:hide _ #:prefix _ …)
2714:10 14 (_ (gnu) _ _ #:ensure _)
2982:16 13 (try-module-autoload _ _)
2312:4 12 (save-module-excursion #<procedure 4439750 at ice-9/boo…>)
3002:22 11 (_)
In unknown file:
10 (primitive-load-path "gnu" #<procedure 404b680 at ice-9…>)
In gnu.scm:
58:4 9 (_)
In ice-9/boot-9.scm:
260:13 8 (for-each #<procedure 404b340 at gnu.scm:59:16 (m)> (# …))
In gnu.scm:
60:33 7 (_ (gnu system))
In ice-9/boot-9.scm:
2788:17 6 (resolve-interface (gnu system) #:select _ #:hide _ # _ …)
2714:10 5 (_ (gnu system) _ _ #:ensure _)
2982:16 4 (try-module-autoload _ _)
2312:4 3 (save-module-excursion #<procedure 4439480 at ice-9/boo…>)
3002:22 2 (_)
In unknown file:
1 (primitive-load-path "gnu/system" #<procedure 404b2c0 a…>)
In gnu/system.scm:
508:0 0 (_)

gnu/system.scm:508:0: util-linux-2.31.1: unbound variable

$ ls -l $(which guix)
/run/current-system/profile/bin/guix -> /gnu/store/xzz0xn80jp48fzy5xz4k8nmwwz1badgc-guix-0.14.0-9.bdf0c64/bin/guix

$ grep -r util-linux-2.31 /gnu/store/xzz0xn80jp48fzy5xz4k8nmwwz1badgc-guix-0.14.0-9.bdf0c64/share/guile/site/2.2/gnu/
$
-----BEGIN PGP SIGNATURE-----

iQEzBAEBCAAdFiEEds7GsXJ0tGXALbPZ5xo1VCwwuqUFAlrTMJ4ACgkQ5xo1VCww
uqUwIAf+IpCQL+SMQlx3TsmayiwPm/q/AVv9Sn/2UepKayJXj9geuik/DdeD6q8R
5LpC2wZxgMqSrCN96kJTE1AJjRPfol8a6pPWpm05rZXpVnPNu7Sf2Uc4zGTevg4T
VwTTwZJuMKJ3W6GOEIuFuU5XTc7Ht46XEEenuOSy5V3UQQSusKPh7OKydHFWYTTE
GLiqdWhQVBbV42cup/Q5hD9+bOFgZ0s+MrFPIrzODU7Od9++iSEsaSgJXE+oO/IJ
FUatXkd896TmMqauRv+S4S761hs/vub6IyJjZqSij5J4yGrUIzxH+owl/5T/mImE
ipRCOIcxc3reT5Fnc6h1EANOIcFz1w==
=S33A
-----END PGP SIGNATURE-----


Ludovic Courtès wrote 7 years ago
(name . Danny Milosavljevic)(address . dannym@scratchpost.org)(address . 31162@debbugs.gnu.org)
871sfctdph.fsf@gnu.org
Hi Danny,

Danny Milosavljevic <dannym@scratchpost.org> skribis:

Toggle quote (40 lines)
> $ guix pull
> Updating from Git repository at 'https://git.savannah.gnu.org/git/guix.git'...
> Building from Git commit fc12113704255616522cb56fc37b4a18fccd84eb...
> Backtrace:
> In ice-9/boot-9.scm:
> 2862:4 19 (define-module* _ #:filename _ #:pure _ #:version _ # _ …)
> 2071:24 18 (call-with-deferred-observers #<procedure 49399b0 at ic…>)
> 2875:24 17 (_)
> 222:17 16 (map1 (((gnu)) ((guix)) ((guix ui)) ((guix config)) # …))
> 2788:17 15 (resolve-interface (gnu) #:select _ #:hide _ #:prefix _ …)
> 2714:10 14 (_ (gnu) _ _ #:ensure _)
> 2982:16 13 (try-module-autoload _ _)
> 2312:4 12 (save-module-excursion #<procedure 4439750 at ice-9/boo…>)
> 3002:22 11 (_)
> In unknown file:
> 10 (primitive-load-path "gnu" #<procedure 404b680 at ice-9…>)
> In gnu.scm:
> 58:4 9 (_)
> In ice-9/boot-9.scm:
> 260:13 8 (for-each #<procedure 404b340 at gnu.scm:59:16 (m)> (# …))
> In gnu.scm:
> 60:33 7 (_ (gnu system))
> In ice-9/boot-9.scm:
> 2788:17 6 (resolve-interface (gnu system) #:select _ #:hide _ # _ …)
> 2714:10 5 (_ (gnu system) _ _ #:ensure _)
> 2982:16 4 (try-module-autoload _ _)
> 2312:4 3 (save-module-excursion #<procedure 4439480 at ice-9/boo…>)
> 3002:22 2 (_)
> In unknown file:
> 1 (primitive-load-path "gnu/system" #<procedure 404b2c0 a…>)
> In gnu/system.scm:
> 508:0 0 (_)
>
> gnu/system.scm:508:0: util-linux-2.31.1: unbound variable
>
> $ ls -l $(which guix)
> /run/current-system/profile/bin/guix -> /gnu/store/xzz0xn80jp48fzy5xz4k8nmwwz1badgc-guix-0.14.0-9.bdf0c64/bin/guix
>
> $ grep -r util-linux-2.31 /gnu/store/xzz0xn80jp48fzy5xz4k8nmwwz1badgc-guix-0.14.0-9.bdf0c64/share/guile/site/2.2/gnu/

You should grep in ~/.config/guix/latest as well.

I can’t seem to reproduce the issue though. Is it just running ‘guix
pull’ that breaks, or do ‘guix package’ or ‘guix system’ fail similarly?

Ludo’.
Danny Milosavljevic wrote 7 years ago
(name . Ludovic Courtès)(address . ludo@gnu.org)(address . 31162@debbugs.gnu.org)
20180418233958.504dc025@scratchpost.org
Hi Ludo,

Toggle quote (2 lines)
> You should grep in ~/.config/guix/latest as well.

~/.config/guix/latest$ grep -r util-linux-2.31 .
./gnu/packages/linux.scm:(define-public util-linux-2.31.1
./gnu/system.scm: util-linux-2.31.1
Binary file ./gnu/system.go matches

Toggle quote (3 lines)
> I can’t seem to reproduce the issue though. Is it just running ‘guix
> pull’ that breaks, or do ‘guix package’ or ‘guix system’ fail similarly?

'guix package' and 'guix system' fail as well, with the same message.
-----BEGIN PGP SIGNATURE-----

iQEzBAEBCAAdFiEEds7GsXJ0tGXALbPZ5xo1VCwwuqUFAlrXuy4ACgkQ5xo1VCww
uqWTNQf+NIQ9AHBJQw+GkfuT7VV7a1kDBzrkyDbUUzt2RvegsuJVorng538c5x/k
TjDWneRR5pggad1m0vdr1jeL5cSLlz6elEbXa2u6jMIDAoVOVx+e5EXIC+rb/Z9Q
RSWJdTTFcAwgvJ/+dr4jYN/elckTver2SbfOAA1W/pzG01XMDrZPUK+/r0XAyQeq
5pg3pjZbWXsFRGOEEpv+kNRGmIeawaKi2OwZVH+7kZYtIAIVhrJvf0Fv5j/cBJaN
h4lQ3fkr+5MBluf0lwMS3a1Bp68+4aogcvFgHIWcEFLKeLF1wd3/zWdTAOKIqAcj
X25BOUzS2skN9y5Qwo6ICdxVISvH8g==
=8OSC
-----END PGP SIGNATURE-----


Ludovic Courtès wrote 7 years ago
(name . Danny Milosavljevic)(address . dannym@scratchpost.org)(address . 31162@debbugs.gnu.org)
878t9jl721.fsf@gnu.org
Hello,

Danny Milosavljevic <dannym@scratchpost.org> skribis:

Toggle quote (12 lines)
>> You should grep in ~/.config/guix/latest as well.
>
> ~/.config/guix/latest$ grep -r util-linux-2.31 .
> ./gnu/packages/linux.scm:(define-public util-linux-2.31.1
> ./gnu/system.scm: util-linux-2.31.1
> Binary file ./gnu/system.go matches
>
>> I can’t seem to reproduce the issue though. Is it just running ‘guix
>> pull’ that breaks, or do ‘guix package’ or ‘guix system’ fail similarly?
>
> 'guix package' and 'guix system' fail as well, with the same message.

OK, so it sounds like it’s the *previous* ‘guix pull’ that left you with
miscompiled or otherwise broken modules.

Could you: ‘guix gc -R $(readlink -f ~/.config/guix/latest)’,
run ‘guix build --log-file’ for the relevant guix-*.drv, and see if the
build logs contain hints?

Besides, to work around the issue, you can always do:

mv ~/.config/guix/latest{,.broken}
guix pull

Thanks,
Ludo’.
Danny Milosavljevic wrote 7 years ago
(name . Ludovic Courtès)(address . ludo@gnu.org)(address . 31162@debbugs.gnu.org)
20180419143723.49836d5f@scratchpost.org
Hi Ludo,

Toggle quote (5 lines)
> OK, so it sounds like it’s the *previous* ‘guix pull’ that left you with
> miscompiled or otherwise broken modules.
>
> Could you: ‘guix gc -R $(readlink -f ~/.config/guix/latest)’,

$ guix gc -R $(readlink -f ~/.config/guix/latest) |grep guix
/gnu/store/yafigkxkq1fxfq0vwq4sndl1fjhh9aki-guix-packages-source
/gnu/store/q6sg0n5rxcgh95vzh7y623vwk8ksa33f-guix-register-0.14.0-10.486de73
/gnu/store/0drxkvvxm76vz0hb5mdpvdl071ha3if3-guix-system-source
/gnu/store/5jiyj90d2wk8jcz34n8zh59gnxdkj8v6-guix-f02d254ac

$ grep -l 5jiyj90d2wk8jcz34n8zh59gnxdkj8v6-guix-f02d254ac *guix*drv
pxm17xn6p9ndy3sjkzpdjwglfjizl7s1-guix-f02d254ac.drv

$ guix build --log-file /gnu/store/pxm17xn6p9ndy3sjkzpdjwglfjizl7s1-guix-f02d254ac.drv
/var/log/guix/drvs/px/m17xn6p9ndy3sjkzpdjwglfjizl7s1-guix-f02d254ac.drv.bz2

$ bunzip2 -cd /var/log/guix/drvs/px/m17xn6p9ndy3sjkzpdjwglfjizl7s1-guix-f02d254ac.drv.bz2 |od -tx1
0000000

Toggle quote (5 lines)
> Besides, to work around the issue, you can always do:
>
> mv ~/.config/guix/latest{,.broken}
> guix pull

Sure, as soon as we've exhausted the debugging possibilities I'll do that.
-----BEGIN PGP SIGNATURE-----

iQEzBAEBCAAdFiEEds7GsXJ0tGXALbPZ5xo1VCwwuqUFAlrYjYMACgkQ5xo1VCww
uqXCAQgAkJxy6ceH7wptwynD3UgnVNAV3ALoWOH+cKBU+noIw057GDBFw2V6Z57p
Q4GDEDXNW+UEaHTT1ORWFTVbEsrXSeQokmUeUltcPrjITqznNzdIBTEOp1t/4nID
XkYiGhDqGHHG34IsJtZ0B3wAhnr+IetTwckCx65UzBimD6kTDH3SDfs6EdCIF9nf
wp1TU05pe1zkemalcME9uc65uQ/+jtUXWv67oczVXQC25nHnWzWR1SRu5fuYtx5s
8VMOxCK68QTNKax3khvTrFCFH5seiv3vXxE1YpMaL+pHXu01XLMlMaT7xJxzHi4W
aQ3dr6CREE3Fon+TUmMdXxw9888D7Q==
=sTxg
-----END PGP SIGNATURE-----


Ludovic Courtès wrote 7 years ago
(name . Danny Milosavljevic)(address . dannym@scratchpost.org)(address . 31162@debbugs.gnu.org)
87po2qymxf.fsf@gnu.org
Hello Danny,

Danny Milosavljevic <dannym@scratchpost.org> skribis:

Toggle quote (20 lines)
>> OK, so it sounds like it’s the *previous* ‘guix pull’ that left you with
>> miscompiled or otherwise broken modules.
>>
>> Could you: ‘guix gc -R $(readlink -f ~/.config/guix/latest)’,
>
> $ guix gc -R $(readlink -f ~/.config/guix/latest) |grep guix
> /gnu/store/yafigkxkq1fxfq0vwq4sndl1fjhh9aki-guix-packages-source
> /gnu/store/q6sg0n5rxcgh95vzh7y623vwk8ksa33f-guix-register-0.14.0-10.486de73
> /gnu/store/0drxkvvxm76vz0hb5mdpvdl071ha3if3-guix-system-source
> /gnu/store/5jiyj90d2wk8jcz34n8zh59gnxdkj8v6-guix-f02d254ac
>
> $ grep -l 5jiyj90d2wk8jcz34n8zh59gnxdkj8v6-guix-f02d254ac *guix*drv
> pxm17xn6p9ndy3sjkzpdjwglfjizl7s1-guix-f02d254ac.drv
>
> $ guix build --log-file /gnu/store/pxm17xn6p9ndy3sjkzpdjwglfjizl7s1-guix-f02d254ac.drv
> /var/log/guix/drvs/px/m17xn6p9ndy3sjkzpdjwglfjizl7s1-guix-f02d254ac.drv.bz2
>
> $ bunzip2 -cd /var/log/guix/drvs/px/m17xn6p9ndy3sjkzpdjwglfjizl7s1-guix-f02d254ac.drv.bz2 |od -tx1
> 0000000

This .drv is just the tip, all it does is symlink things produced by the
previous derivations.

Could you check the log file of the other derivations, like
guix-packages.drv? Does anyone contain errors or anything interesting?

Thanks,
Ludo’.
Danny Milosavljevic wrote 7 years ago
(name . Ludovic Courtès)(address . ludo@gnu.org)(address . 31162@debbugs.gnu.org)
20180424225755.0acf86c1@scratchpost.org
Hi Ludo,

On Mon, 23 Apr 2018 17:14:52 +0200
ludo@gnu.org (Ludovic Courtès) wrote:

Toggle quote (3 lines)
> Could you check the log file of the other derivations, like
> guix-packages.drv? Does anyone contain errors or anything interesting?

How do I do that?
-----BEGIN PGP SIGNATURE-----

iQEzBAEBCAAdFiEEds7GsXJ0tGXALbPZ5xo1VCwwuqUFAlrfmlMACgkQ5xo1VCww
uqXnyQf/e1kqFtft3j4fjFr4B06cHkWhLykGE2zlXvRfZpy1mi9+f0WDdjpNJ8Rx
C6qItBXD11VJN52Hursf6sMd2WdW7RBZdyVvkOjr0w8cKN7PY0DNxJAnfwxhgTlA
Fw/ypcbn8uZ2C7agvFSf8B6pRO2/tvAj3BG9CHM24ATE69UHJNdP8vvseFdcb5jG
hfmsd0J1svNYfVteI7+KsPhs5lwRfAZ9mLI/C3zzItv4hHnMDsENMJI0/ciQm5J6
SIxrXw6I6lFwQVTU/GJIq3eYRMlQqZxTgywXnPUrtECFECCApGOcWIgte50Wg6iu
0ZMqN83JmVH59jd0Z8LAbm0kyRQ2Lw==
=wpZJ
-----END PGP SIGNATURE-----


Adonay Felipe Nogueira wrote 7 years ago
(address . bug-guix@gnu.org)
87po2op7qk.fsf@hyperbola.info
2018-04-24T22:57:55+0200 Danny Milosavljevic wrote:
Toggle quote (2 lines)
> How do I do that?

There are several ways to go around this, but since now we are past the
fact, that is, it already happened, then I propose the following method:

Toggle snippet (4 lines)
$ cd "/var/log/guix"
$ find "." -name '*guix-packages.drv*' -ls

This will give you a list of the logs related to this "build". However,
notice that you might be interested in only one, which should match the
date the problem happened.

--
- Ativista do /software/ livre (não confundir com gratuito). Avaliador
da liberdade de /software/ e de /sites/.
- Contribuições à sociedade:
- Gosta do meu trabalho? Contrate-me ou doe algo para mim!
- Use comunicações sociais federadas padronizadas, onde o "social"
permanece independente do fornecedor. #DeleteWhatsApp. Use #XMPP
#DeleteInstagram #DeleteTwitter #DeleteYouTube. Use #ActivityPub via
- #DeleteNetflix #CancelNetflix. Evite #DRM:
Ludovic Courtès wrote 7 years ago
(name . Danny Milosavljevic)(address . dannym@scratchpost.org)(address . 31162@debbugs.gnu.org)
87fu3jsbhp.fsf@gnu.org
Hi Danny,

Danny Milosavljevic <dannym@scratchpost.org> skribis:

Toggle quote (8 lines)
> On Mon, 23 Apr 2018 17:14:52 +0200
> ludo@gnu.org (Ludovic Courtès) wrote:
>
>> Could you check the log file of the other derivations, like
>> guix-packages.drv? Does anyone contain errors or anything interesting?
>
> How do I do that?

First you get the .drv file names from the “top-level” derivation:

guix gc -R …-guix-1234567.drv | grep guix-packages

and then:

guix build --log-file /gnu/store/…-guix-packages.drv

HTH!

Ludo’.
Danny Milosavljevic wrote 7 years ago
(name . Ludovic Courtès)(address . ludo@gnu.org)(address . 31162@debbugs.gnu.org)
20180521105703.0e9865bf@scratchpost.org
Hi Ludo,

I've checked guix-packages now and I see:

$ bzless $(guix build --log-file /gnu/store/q0s172fgb213c4jk7hvgkzsw0i1bq6j0-guix-packages.drv)

...
31.4% of 407 files^Mcompiling... 31.7% of 407 files^Mcompiling... 31.9% of 407 files^Mcompiling... 32.2% of 407 files^Mcompiling... 32.4% of 407 files^Mcompiling... 32.7% of 407 files^Mcompiling... 32.9% of 407 files^Mcompiling... 33.2% of 407 files^Mcompiling... 33.4% of 407 files^Mcompiling... 33.7% of 407 files^Mcompiling... 33.9% of 407 files^Mcompiling... 34.2% of 407 files^Mcompiling... 34.4% of 407 files^Mcompiling... 34.6% of 407 files^Mcompiling... 34.9% of 407 files^Mcompiling... 35.1% of 407 files^Mcompiling... 35.4% of 407 files^Mcompiling... 35.6% of 407 files^Mcompiling... 35.9% of 407 files^Mcompiling... 36.1% of 407 files^Mcompiling... 36.4% of 407 files^Mcompiling... 36.6% of 407 files^Mcompiling... 36.9% of 407 files^Mcompiling... 37.1% of 407 files^Mcompiling...
37.3% of 407 files^Mcompiling... 37.6% of 407 files^Mcompiling... 37.8% of 407 files^Mcompiling... 38.1% of 407 files^Mcompiling... 38.3% of 407 filesIn thread:
unexpected syntax
In thread:
no code for module (guix licenses)
^Mcompiling... 38.6% of 407 filesIn thread:
no code for module (guix licenses)
^Mcompiling... 38.8% of 407 filesIn thread:
no code for module (guix licenses)
^Mcompiling... 100.0% of 407 files

(Deleting ~/.cache/guile and ~/.cache/guix didn't help)
-----BEGIN PGP SIGNATURE-----

iQEzBAEBCAAdFiEEds7GsXJ0tGXALbPZ5xo1VCwwuqUFAlsCid8ACgkQ5xo1VCww
uqUq+Qf9HNaRaPUS/6poNVAQ48NwtmdjmCdhOrBcSiHnY8+8axFiefCu+SIBJ3zN
c7CZHvywQfgMFLL+vYZKQlPu7auSf1qDT3pIJF5vVujZDUUFkQyml3r+1WjcwufA
wXe5y+KE9DP2O6/qTF6es6gpDid1WjQ9Z/HdDBQCmtIpSdc8AoKlvdD01hQ419eB
IWBc92QOq6j7n7doahjgJ4jgupV3YKVtwhfCOBW/zaJ7PvSZaPDDkVB4SxC97gPH
HKnAHbxZrd7AmRQfqmq+QtwhU0XABGy40po7E/6GZpQzTcpT1afkGNviyDoCjDdL
0C1mIMemfjFED5NonwkdabfEPbSzYg==
=iFbf
-----END PGP SIGNATURE-----


Ricardo Wurmus wrote 6 years ago
(name . Danny Milosavljevic)(address . dannym@scratchpost.org)
87sgx3hnxk.fsf@fhain.coderdojo.berlin
Hi,

Danny Milosavljevic <dannym@scratchpost.org> writes:

Toggle quote (20 lines)
> Hi Ludo,
>
> I've checked guix-packages now and I see:
>
> $ bzless $(guix build --log-file /gnu/store/q0s172fgb213c4jk7hvgkzsw0i1bq6j0-guix-packages.drv)
>
> ...
> 31.4% of 407 files^Mcompiling... 31.7% of 407 files^Mcompiling... 31.9% of 407 files^Mcompiling... 32.2% of 407 files^Mcompiling... 32.4% of 407 files^Mcompiling... 32.7% of 407 files^Mcompiling... 32.9% of 407 files^Mcompiling... 33.2% of 407 files^Mcompiling... 33.4% of 407 files^Mcompiling... 33.7% of 407 files^Mcompiling... 33.9% of 407 files^Mcompiling... 34.2% of 407 files^Mcompiling... 34.4% of 407 files^Mcompiling... 34.6% of 407 files^Mcompiling... 34.9% of 407 files^Mcompiling... 35.1% of 407 files^Mcompiling... 35.4% of 407 files^Mcompiling... 35.6% of 407 files^Mcompiling... 35.9% of 407 files^Mcompiling... 36.1% of 407 files^Mcompiling... 36.4% of 407 files^Mcompiling... 36.6% of 407 files^Mcompiling... 36.9% of 407 files^Mcompiling... 37.1% of 407 files^Mcompiling...
> 37.3% of 407 files^Mcompiling... 37.6% of 407 files^Mcompiling... 37.8% of 407 files^Mcompiling... 38.1% of 407 files^Mcompiling... 38.3% of 407 filesIn thread:
> unexpected syntax
> In thread:
> no code for module (guix licenses)
> ^Mcompiling... 38.6% of 407 filesIn thread:
> no code for module (guix licenses)
> ^Mcompiling... 38.8% of 407 filesIn thread:
> no code for module (guix licenses)
> ^Mcompiling... 100.0% of 407 files
>
> (Deleting ~/.cache/guile and ~/.cache/guix didn't help)

I believe that this can no longer happen since the new “guix pull”
(aside from the infamous miscompilation bug #27476).

I’m closing this, but feel free to reopen if this can be reproduced with
the new “guix pull” implementation.

~~ Ricardo
Closed
?
Your comment

This issue is archived.

To comment on this conversation send an email to 31162@debbugs.gnu.org

To respond to this issue using the mumi CLI, first switch to it
mumi current 31162
Then, you may apply the latest patchset in this issue (with sign off)
mumi am -- -s
Or, compose a reply to this issue
mumi compose
Or, send patches to this issue
mumi send-email *.patch
You may also tag this issue. See list of standard tags. For example, to set the confirmed and easy tags
mumi command -t +confirmed -t +easy
Or, remove the moreinfo tag and set the help tag
mumi command -t -moreinfo -t +help