unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
* bug#56722: guix pull fails -- unbound variable in gnu/home/services/symlink-manager.scm
@ 2022-07-23  9:35 paren--- via Bug reports for GNU Guix
  2022-07-23 10:08 ` paren--- via Bug reports for GNU Guix
                   ` (4 more replies)
  0 siblings, 5 replies; 9+ messages in thread
From: paren--- via Bug reports for GNU Guix @ 2022-07-23  9:35 UTC (permalink / raw)
  To: 56722


Log here:
<https://paste.sr.ht/~unmatched-paren/201220d944b25ae9074d94c29b88852de70730cb>

What's weird is that the culprit, gnu/home/services/symlink-manager.scm,
*does* have access to `service-type`, because it imports (gnu home
services), which re-exports it!

My attempts to `git bisect` were thwarted by another build failure:

```
[I] /home/paren/code/guix
ʃ git bisect start
[I] /home/paren/code/guix
ʃ git bisect bad
[I] /home/paren/code/guix
  # the commit I'm on
ʃ git bisect good cd3c4ad8fc113608eade2e5c29ba8486cde01157
[I] /home/paren/code/guix
ʃ git bisect run guix shell -D guix -- make
[log output: <https://paste.sr.ht/~unmatched-paren/af420655dffb4f0af2b36a014725602a102989f2>]
```

This bug is also experienced by `vhallac` on IRC.

    -- (




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

* bug#56722: guix pull fails -- unbound variable in gnu/home/services/symlink-manager.scm
  2022-07-23  9:35 bug#56722: guix pull fails -- unbound variable in gnu/home/services/symlink-manager.scm paren--- via Bug reports for GNU Guix
@ 2022-07-23 10:08 ` paren--- via Bug reports for GNU Guix
  2022-07-31 22:08   ` Ludovic Courtès
  2022-07-23 10:26 ` Maxime Devos
                   ` (3 subsequent siblings)
  4 siblings, 1 reply; 9+ messages in thread
From: paren--- via Bug reports for GNU Guix @ 2022-07-23 10:08 UTC (permalink / raw)
  To: (, 56722

vhallac has determined that commit
ba22560627f848f40891a56355ff26b6de1380bc, which allowed `guix gc` to
delete Home generations, caused this issue. Somehow.

    -- (




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

* bug#56722: guix pull fails -- unbound variable in gnu/home/services/symlink-manager.scm
  2022-07-23  9:35 bug#56722: guix pull fails -- unbound variable in gnu/home/services/symlink-manager.scm paren--- via Bug reports for GNU Guix
  2022-07-23 10:08 ` paren--- via Bug reports for GNU Guix
@ 2022-07-23 10:26 ` Maxime Devos
  2022-07-23 10:32 ` Maxime Devos
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 9+ messages in thread
From: Maxime Devos @ 2022-07-23 10:26 UTC (permalink / raw)
  To: (, 56722


[-- Attachment #1.1.1: Type: text/plain, Size: 605 bytes --]


On 23-07-2022 11:35, paren--- via Bug reports for GNU Guix wrote:
> Log here:
> <https://paste.sr.ht/~unmatched-paren/201220d944b25ae9074d94c29b88852de70730cb>
>
> What's weird is that the culprit, gnu/home/services/symlink-manager.scm,
> *does*  have access to `service-type`, because it imports (gnu home
> services), which re-exports it!

Such weirdness can be caused by cycles in the module structure, maybe 
see if you can locate a cycle between (gnu home services 
symlink-manager), (gnu home services) and the modules from that 
ba2256... commit and break it?

Greetings,
Maxime


[-- Attachment #1.1.2: OpenPGP public key --]
[-- Type: application/pgp-keys, Size: 929 bytes --]

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

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

* bug#56722: guix pull fails -- unbound variable in gnu/home/services/symlink-manager.scm
  2022-07-23  9:35 bug#56722: guix pull fails -- unbound variable in gnu/home/services/symlink-manager.scm paren--- via Bug reports for GNU Guix
  2022-07-23 10:08 ` paren--- via Bug reports for GNU Guix
  2022-07-23 10:26 ` Maxime Devos
@ 2022-07-23 10:32 ` Maxime Devos
  2022-07-24 10:39 ` paren--- via Bug reports for GNU Guix
  2022-07-31 20:49 ` Ludovic Courtès
  4 siblings, 0 replies; 9+ messages in thread
From: Maxime Devos @ 2022-07-23 10:32 UTC (permalink / raw)
  To: (, 56722


[-- Attachment #1.1.1.1: Type: text/plain, Size: 969 bytes --]


On 23-07-2022 11:35, paren--- via Bug reports for GNU Guix wrote:
> [log output:<https://paste.sr.ht/~unmatched-paren/af420655dffb4f0af2b36a014725602a102989f2>]

I think I've seen this one before, but I couldn't figure it out.

> In ice-9/boot-9.scm:
>    1685:16  6 (raise-exception _ #:continuable? _)
>    1685:16  5 (raise-exception _ #:continuable? _)
>    1780:13  4 (_ #<&compound-exception components: (#<&assertion-fail…>)
> In guix/build/compile.scm:
>      191:6  3 (_ _ . _)
> In ice-9/boot-9.scm:
>    1747:15  2 (with-exception-handler #<procedure 7f1d5aeeb3c0 at ic…> …)
> In guix/build/compile.scm:
>     194:22  1 (_)
> In unknown file:
>             0 (make-stack #t)
> guix/build/compile.scm:194:22: In procedure cdr: Wrong type argument in position 1 (expecting pair): #f

Looks like an &assertion-failure is being obscured, so I guess the error handling in (guix build compile) is wrong somehow?

Greetings,
Maxime


[-- Attachment #1.1.1.2: Type: text/html, Size: 1555 bytes --]

[-- Attachment #1.1.2: OpenPGP public key --]
[-- Type: application/pgp-keys, Size: 929 bytes --]

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

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

* bug#56722: guix pull fails -- unbound variable in gnu/home/services/symlink-manager.scm
  2022-07-23  9:35 bug#56722: guix pull fails -- unbound variable in gnu/home/services/symlink-manager.scm paren--- via Bug reports for GNU Guix
                   ` (2 preceding siblings ...)
  2022-07-23 10:32 ` Maxime Devos
@ 2022-07-24 10:39 ` paren--- via Bug reports for GNU Guix
  2022-07-24 10:52   ` Tobias Geerinckx-Rice via Bug reports for GNU Guix
  2022-07-31 20:49 ` Ludovic Courtès
  4 siblings, 1 reply; 9+ messages in thread
From: paren--- via Bug reports for GNU Guix @ 2022-07-24 10:39 UTC (permalink / raw)
  To: (, 56722

Tobias seems to have fixed this issue temporarily by reverting the Home
GC commits. Should we close this, reopen that patch thread, and discuss
the issues there?

    -- (




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

* bug#56722: guix pull fails -- unbound variable in gnu/home/services/symlink-manager.scm
  2022-07-24 10:39 ` paren--- via Bug reports for GNU Guix
@ 2022-07-24 10:52   ` Tobias Geerinckx-Rice via Bug reports for GNU Guix
  0 siblings, 0 replies; 9+ messages in thread
From: Tobias Geerinckx-Rice via Bug reports for GNU Guix @ 2022-07-24 10:52 UTC (permalink / raw)
  To: paren, 56722

Yo!

Thanks for CC'ing the thread.  I pushed the reversion whilst closing my laptop (really) and totally forgot.

Kind regards,

T G-R

Sent on the go.  Excuse or enjoy my brevity.




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

* bug#56722: guix pull fails -- unbound variable in gnu/home/services/symlink-manager.scm
  2022-07-23  9:35 bug#56722: guix pull fails -- unbound variable in gnu/home/services/symlink-manager.scm paren--- via Bug reports for GNU Guix
                   ` (3 preceding siblings ...)
  2022-07-24 10:39 ` paren--- via Bug reports for GNU Guix
@ 2022-07-31 20:49 ` Ludovic Courtès
  4 siblings, 0 replies; 9+ messages in thread
From: Ludovic Courtès @ 2022-07-31 20:49 UTC (permalink / raw)
  To: 56722

"(" <paren@disroot.org> skribis:

> Log here:
> <https://paste.sr.ht/~unmatched-paren/201220d944b25ae9074d94c29b88852de70730cb>

For posterity:

--8<---------------cut here---------------start------------->8---
[  0/ 98] loading...	  0.0% of 49 files
[  1/ 98] loading...	  2.0% of 49 files
[  2/ 98] loading...	  4.1% of 49 files
[  3/ 98] loading...	  6.1% of 49 files
[  4/ 98] loading...	  8.2% of 49 files
[  5/ 98] loading...	 10.2% of 49 files
[  6/ 98] loading...	 12.2% of 49 files
[  7/ 98] loading...	 14.3% of 49 files
[  8/ 98] loading...	 16.3% of 49 files
[  9/ 98] loading...	 18.4% of 49 files
[ 10/ 98] loading...	 20.4% of 49 files
[ 11/ 98] loading...	 22.4% of 49 files
[ 12/ 98] loading...	 24.5% of 49 files
[ 13/ 98] loading...	 26.5% of 49 files
[ 14/ 98] loading...	 28.6% of 49 files
[ 15/ 98] loading...	 30.6% of 49 files
[ 16/ 98] loading...	 32.7% of 49 filesBacktrace:
          18 (primitive-load "/gnu/store/vbc37bjl6bbmx5ch9zk544h3nh447dzx-guix-cli-core-builder")
In ice-9/eval.scm:
    619:8 17 (_ #f)
In ice-9/boot-9.scm:
    152:2 16 (with-fluid* _ _ _)
In guix/build/compile.scm:
    249:8 15 (compile-files "." "/gnu/store/nphdfgl8c6j18rm907bxkmyj66ik8bcq-guix-cli-core" ("guix/scripts/archive.scm" "guix/scripts/build.scm" "guix/scripts/authenticate.scm" "guix/scripts/c?" ?) ?)
In system/base/target.scm:
     65:6 14 (with-target _ _)
In guix/build/compile.scm:
   253:12 13 (_)
    168:9 12 (loop ("gnu/home/services/symlink-manager.scm" "gnu/home/services/shells.scm" "gnu/services/configuration.scm" "gnu/home/services/utils.scm" "gnu/home/services/xdg.scm" "gnu/home/?" ?) ?)
In ice-9/boot-9.scm:
  3327:17 11 (resolve-interface (gnu home services symlink-manager) #:select _ #:hide _ #:prefix _ #:renamer _ #:version _)
In ice-9/threads.scm:
    390:8 10 (_ _)
In ice-9/boot-9.scm:
  3253:13  9 (_)
In ice-9/threads.scm:
    390:8  8 (_ _)
In ice-9/boot-9.scm:
  3544:20  7 (_)
   2836:4  6 (save-module-excursion #<procedure 7fffdfc64960 at ice-9/boot-9.scm:3545:21 ()>)
  3564:26  5 (_)
In unknown file:
           4 (primitive-load-path "gnu/home/services/symlink-manager" #<procedure 7fffe062ff60 at ice-9/boot-9.scm:3551:37 ()>)
In ice-9/eval.scm:
   626:19  3 (_ #<directory (gnu home services symlink-manager) 7fffe02986e0>)
   182:19  2 (proc #<directory (gnu home services symlink-manager) 7fffe02986e0>)
   142:16  1 (compile-top-call #<directory (gnu home services symlink-manager) 7fffe02986e0> (7 . service-type) ((10 (13 15 7 . name) (5 . home-symlink-manager)) (10 (13 15 7 . extensions) (?)) # ?))
In unknown file:
           0 (%resolve-variable (7 . service-type) #<directory (gnu home services symlink-manager) 7fffe02986e0>)

ERROR: In procedure %resolve-variable:
error: service-type: unbound variable
--8<---------------cut here---------------end--------------->8---

Ludo’.




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

* bug#56722: guix pull fails -- unbound variable in gnu/home/services/symlink-manager.scm
  2022-07-23 10:08 ` paren--- via Bug reports for GNU Guix
@ 2022-07-31 22:08   ` Ludovic Courtès
  2022-07-31 22:18     ` paren--- via Bug reports for GNU Guix
  0 siblings, 1 reply; 9+ messages in thread
From: Ludovic Courtès @ 2022-07-31 22:08 UTC (permalink / raw)
  To: (; +Cc: 56722-done

Hi,

"(" <paren@disroot.org> skribis:

> vhallac has determined that commit
> ba22560627f848f40891a56355ff26b6de1380bc, which allowed `guix gc` to
> delete Home generations, caused this issue. Somehow.

Thanks for the heads-up.  The offending commit is reinstated together
with a fix in 4de445f3dae5f5b42d59003cceddecfb296fb73b.

Ludo’.




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

* bug#56722: guix pull fails -- unbound variable in gnu/home/services/symlink-manager.scm
  2022-07-31 22:08   ` Ludovic Courtès
@ 2022-07-31 22:18     ` paren--- via Bug reports for GNU Guix
  0 siblings, 0 replies; 9+ messages in thread
From: paren--- via Bug reports for GNU Guix @ 2022-07-31 22:18 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: 56722-done

On Sun Jul 31, 2022 at 11:08 PM BST, Ludovic Courtès wrote:
> Thanks for the heads-up.  The offending commit is reinstated together
> with a fix in 4de445f3dae5f5b42d59003cceddecfb296fb73b.
Thanks, Ludo'!

    -- (




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

end of thread, other threads:[~2022-07-31 22:19 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-23  9:35 bug#56722: guix pull fails -- unbound variable in gnu/home/services/symlink-manager.scm paren--- via Bug reports for GNU Guix
2022-07-23 10:08 ` paren--- via Bug reports for GNU Guix
2022-07-31 22:08   ` Ludovic Courtès
2022-07-31 22:18     ` paren--- via Bug reports for GNU Guix
2022-07-23 10:26 ` Maxime Devos
2022-07-23 10:32 ` Maxime Devos
2022-07-24 10:39 ` paren--- via Bug reports for GNU Guix
2022-07-24 10:52   ` Tobias Geerinckx-Rice via Bug reports for GNU Guix
2022-07-31 20:49 ` Ludovic Courtès

Code repositories for project(s) associated with this inbox:

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).