all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#31162: "guix pull" broke itself
@ 2018-04-15 10:59 Danny Milosavljevic
  2018-04-18 21:19 ` Ludovic Courtès
  0 siblings, 1 reply; 11+ messages in thread
From: Danny Milosavljevic @ 2018-04-15 10:59 UTC (permalink / raw)
  To: 31162

[-- Attachment #1: Type: text/plain, Size: 1684 bytes --]

$ 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/
$

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

* bug#31162: "guix pull" broke itself
  2018-04-15 10:59 bug#31162: "guix pull" broke itself Danny Milosavljevic
@ 2018-04-18 21:19 ` Ludovic Courtès
  2018-04-18 21:39   ` Danny Milosavljevic
  0 siblings, 1 reply; 11+ messages in thread
From: Ludovic Courtès @ 2018-04-18 21:19 UTC (permalink / raw)
  To: Danny Milosavljevic; +Cc: 31162

Hi Danny,

Danny Milosavljevic <dannym@scratchpost.org> skribis:

> $ 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’.

^ permalink raw reply	[flat|nested] 11+ messages in thread

* bug#31162: "guix pull" broke itself
  2018-04-18 21:19 ` Ludovic Courtès
@ 2018-04-18 21:39   ` Danny Milosavljevic
  2018-04-19 12:22     ` Ludovic Courtès
  0 siblings, 1 reply; 11+ messages in thread
From: Danny Milosavljevic @ 2018-04-18 21:39 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: 31162

[-- Attachment #1: Type: text/plain, Size: 496 bytes --]

Hi Ludo,

> 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.

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

* bug#31162: "guix pull" broke itself
  2018-04-18 21:39   ` Danny Milosavljevic
@ 2018-04-19 12:22     ` Ludovic Courtès
  2018-04-19 12:37       ` Danny Milosavljevic
  0 siblings, 1 reply; 11+ messages in thread
From: Ludovic Courtès @ 2018-04-19 12:22 UTC (permalink / raw)
  To: Danny Milosavljevic; +Cc: 31162

Hello,

Danny Milosavljevic <dannym@scratchpost.org> skribis:

>> 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’.

^ permalink raw reply	[flat|nested] 11+ messages in thread

* bug#31162: "guix pull" broke itself
  2018-04-19 12:22     ` Ludovic Courtès
@ 2018-04-19 12:37       ` Danny Milosavljevic
  2018-04-23 15:14         ` Ludovic Courtès
  0 siblings, 1 reply; 11+ messages in thread
From: Danny Milosavljevic @ 2018-04-19 12:37 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: 31162

[-- Attachment #1: Type: text/plain, Size: 1141 bytes --]

Hi Ludo,

> 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

> 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.

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

* bug#31162: "guix pull" broke itself
  2018-04-19 12:37       ` Danny Milosavljevic
@ 2018-04-23 15:14         ` Ludovic Courtès
  2018-04-24 20:57           ` Danny Milosavljevic
  0 siblings, 1 reply; 11+ messages in thread
From: Ludovic Courtès @ 2018-04-23 15:14 UTC (permalink / raw)
  To: Danny Milosavljevic; +Cc: 31162

Hello Danny,

Danny Milosavljevic <dannym@scratchpost.org> skribis:

>> 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’.

^ permalink raw reply	[flat|nested] 11+ messages in thread

* bug#31162: "guix pull" broke itself
  2018-04-23 15:14         ` Ludovic Courtès
@ 2018-04-24 20:57           ` Danny Milosavljevic
  2018-04-24 22:20             ` Adonay Felipe Nogueira
                               ` (2 more replies)
  0 siblings, 3 replies; 11+ messages in thread
From: Danny Milosavljevic @ 2018-04-24 20:57 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: 31162

[-- Attachment #1: Type: text/plain, Size: 249 bytes --]

Hi Ludo,

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?

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

* bug#31162: "guix pull" broke itself
  2018-04-24 20:57           ` Danny Milosavljevic
@ 2018-04-24 22:20             ` Adonay Felipe Nogueira
  2018-04-25 12:42             ` Ludovic Courtès
  2018-05-21  8:57             ` Danny Milosavljevic
  2 siblings, 0 replies; 11+ messages in thread
From: Adonay Felipe Nogueira @ 2018-04-24 22:20 UTC (permalink / raw)
  To: 31162

2018-04-24T22:57:55+0200 Danny Milosavljevic wrote:
> 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:

--8<---------------cut here---------------start------------->8---
$ cd "/var/log/guix"
$ find "." -name '*guix-packages.drv*' -ls
--8<---------------cut here---------------end--------------->8---

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.

-- 
- Formas de contato: https://libreplanet.org/wiki/User:Adfeno#vCard
- Ativista do /software/ livre (não confundir com gratuito). Avaliador
  da liberdade de /software/ e de /sites/.
- Arquivos que aceito: https://libreplanet.org/wiki/User:Adfeno#Arquivos
- Contribuições à sociedade:
  https://libreplanet.org/wiki/User:Adfeno#Contributions
- Gosta do meu trabalho? Contrate-me ou doe algo para mim!
  https://libreplanet.org/wiki/User:Adfeno#Suporte
- Use comunicações sociais federadas padronizadas, onde o "social"
  permanece independente do fornecedor. #DeleteWhatsApp. Use #XMPP
  (https://libreplanet.org/wiki/XMPP.pt), #DeleteFacebook
  #DeleteInstagram #DeleteTwitter #DeleteYouTube. Use #ActivityPub via
  #Mastodon (https://joinmastodon.org/).
- #DeleteNetflix #CancelNetflix. Evite #DRM:
  https://www.defectivebydesign.org/

^ permalink raw reply	[flat|nested] 11+ messages in thread

* bug#31162: "guix pull" broke itself
  2018-04-24 20:57           ` Danny Milosavljevic
  2018-04-24 22:20             ` Adonay Felipe Nogueira
@ 2018-04-25 12:42             ` Ludovic Courtès
  2018-05-21  8:57             ` Danny Milosavljevic
  2 siblings, 0 replies; 11+ messages in thread
From: Ludovic Courtès @ 2018-04-25 12:42 UTC (permalink / raw)
  To: Danny Milosavljevic; +Cc: 31162

Hi Danny,

Danny Milosavljevic <dannym@scratchpost.org> skribis:

> 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’.

^ permalink raw reply	[flat|nested] 11+ messages in thread

* bug#31162: "guix pull" broke itself
  2018-04-24 20:57           ` Danny Milosavljevic
  2018-04-24 22:20             ` Adonay Felipe Nogueira
  2018-04-25 12:42             ` Ludovic Courtès
@ 2018-05-21  8:57             ` Danny Milosavljevic
  2019-02-04 10:01               ` Ricardo Wurmus
  2 siblings, 1 reply; 11+ messages in thread
From: Danny Milosavljevic @ 2018-05-21  8:57 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: 31162

[-- Attachment #1: Type: text/plain, Size: 1643 bytes --]

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)

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

* bug#31162: "guix pull" broke itself
  2018-05-21  8:57             ` Danny Milosavljevic
@ 2019-02-04 10:01               ` Ricardo Wurmus
  0 siblings, 0 replies; 11+ messages in thread
From: Ricardo Wurmus @ 2019-02-04 10:01 UTC (permalink / raw)
  To: Danny Milosavljevic; +Cc: 31162-done

Hi,

Danny Milosavljevic <dannym@scratchpost.org> writes:

> 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

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2019-02-04 15:35 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-04-15 10:59 bug#31162: "guix pull" broke itself Danny Milosavljevic
2018-04-18 21:19 ` Ludovic Courtès
2018-04-18 21:39   ` Danny Milosavljevic
2018-04-19 12:22     ` Ludovic Courtès
2018-04-19 12:37       ` Danny Milosavljevic
2018-04-23 15:14         ` Ludovic Courtès
2018-04-24 20:57           ` Danny Milosavljevic
2018-04-24 22:20             ` Adonay Felipe Nogueira
2018-04-25 12:42             ` Ludovic Courtès
2018-05-21  8:57             ` Danny Milosavljevic
2019-02-04 10:01               ` Ricardo Wurmus

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.