unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Heisenbug
@ 2023-12-10  6:42 Felix Lechner via Development of GNU Guix and the GNU System distribution.
  2023-12-10 13:05 ` Heisenbug Attila Lendvai
  2023-12-28  9:36 ` Heisenbug Josselin Poiret
  0 siblings, 2 replies; 5+ messages in thread
From: Felix Lechner via Development of GNU Guix and the GNU System distribution. @ 2023-12-10  6:42 UTC (permalink / raw)
  To: guix-devel

Hi,

Running 'make' in a hacked Guix, I get this error the first time around:

[ 84%] LOAD     gnu/tests/ldap.scm
[ 84%] LOAD     gnu/tests/linux-modules.scm
[ 84%] LOAD     gnu/tests/mail.scm
[ 84%] LOAD     gnu/tests/messaging.scm
[ 84%] LOAD     gnu/tests/networking.scm
[ 84%] LOAD     gnu/tests/package-management.scm
[ 84%] LOAD     gnu/tests/pam.scm
[ 85%] LOAD     gnu/tests/reconfigure.scm
ice-9/eval.scm:293:34: error: label: unbound variable
hint: Did you forget a `use-modules' form?

make[2]: *** [Makefile:7104: make-system-go] Error 1
make[2]: Leaving directory '/lcl/lechner/guix/git'
make[1]: *** [Makefile:6152: all-recursive] Error 1
make[1]: Leaving directory '/lcl/lechner/guix/git'
make: *** [Makefile:4268: all] Error 2

When I run 'make' a second time, the error changes to:

[ 77%] LOAD     gnu/artwork.scm
[ 77%] LOAD     gnu/bootloader.scm
[ 77%] LOAD     gnu/bootloader/grub.scm
[ 77%] LOAD     gnu/bootloader/extlinux.scm
[ 77%] LOAD     gnu/bootloader/u-boot.scm
[ 77%] LOAD     gnu/bootloader/depthcharge.scm
[ 77%] LOAD     gnu/ci.scm
error: profile: source expression failed to match any pattern

make[2]: *** [Makefile:7104: make-system-go] Error 1
make[2]: Leaving directory '/lcl/lechner/guix/git'
make[1]: *** [Makefile:6152: all-recursive] Error 1
make[1]: Leaving directory '/lcl/lechner/guix/git'
make: *** [Makefile:4268: all] Error 2

What's a good way to debug this, please? Where is my error? Thanks!

Kind regards
Felix


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

* Re: Heisenbug
  2023-12-10  6:42 Heisenbug Felix Lechner via Development of GNU Guix and the GNU System distribution.
@ 2023-12-10 13:05 ` Attila Lendvai
  2023-12-10 15:11   ` Heisenbug Felix Lechner via Development of GNU Guix and the GNU System distribution.
  2023-12-28  9:36 ` Heisenbug Josselin Poiret
  1 sibling, 1 reply; 5+ messages in thread
From: Attila Lendvai @ 2023-12-10 13:05 UTC (permalink / raw)
  To: Felix Lechner; +Cc: guix-devel

> What's a good way to debug this, please?


in Geiser i usually get the proper error message:

M-x geiser
,m (gnu tests reconfigure)
,reload


> Where is my error?


good question! silently swallowing errors and warnings should be something that is frown upon, and only ever employed when deemed really necessery. and we thought about it... twice.

-- 
• attila lendvai
• PGP: 963F 5D5F 45C7 DFCD 0A39
--
“One cannot redistribute wealth without first becoming master of all wealth; redistribution is first and foremost monopoly.”
	— Anselme Bellegarrigue (ca. 1820–1890)



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

* Re: Heisenbug
  2023-12-10 13:05 ` Heisenbug Attila Lendvai
@ 2023-12-10 15:11   ` Felix Lechner via Development of GNU Guix and the GNU System distribution.
  2023-12-10 18:00     ` Heisenbug Ricardo Wurmus
  0 siblings, 1 reply; 5+ messages in thread
From: Felix Lechner via Development of GNU Guix and the GNU System distribution. @ 2023-12-10 15:11 UTC (permalink / raw)
  To: Attila Lendvai; +Cc: guix-devel

Hi Attila,

On Sun, Dec 10 2023, Attila Lendvai wrote:

> M-x geiser
> ,m (gnu tests reconfigure)

Thanks for those hints! That yields

;;; compiling /lcl/lechner/guix/git/guix/scripts/system/reconfigure.scm
;;; compiled /home/lechner/.cache/guile/ccache/3.0-LE-8-4.7/lcl/lechner/guix/git/guix/scripts/system/reconfigure.scm.go
;;; compiled /home/lechner/.cache/guile/ccache/3.0-LE-8-4.7/lcl/lechner/guix/git/gnu/tests/reconfigure.scm.go
While executing meta-command:
error: label: unbound variable

> ,reload

While this gives

While executing meta-command:
unknown file name for module #<directory (guile-user) 7fbd1cd16c80>

Also, what is a meta-command, please?

Kind regards
Felix


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

* Re: Heisenbug
  2023-12-10 15:11   ` Heisenbug Felix Lechner via Development of GNU Guix and the GNU System distribution.
@ 2023-12-10 18:00     ` Ricardo Wurmus
  0 siblings, 0 replies; 5+ messages in thread
From: Ricardo Wurmus @ 2023-12-10 18:00 UTC (permalink / raw)
  To: Felix Lechner; +Cc: Attila Lendvai, guix-devel


Felix Lechner via "Development of GNU Guix and the GNU System distribution." <guix-devel@gnu.org> writes:

> While executing meta-command:
> error: label: unbound variable
>
>> ,reload
>
> While this gives
>
> While executing meta-command:
> unknown file name for module #<directory (guile-user) 7fbd1cd16c80>
>
> Also, what is a meta-command, please?

The Guile manual doesn’t define the term but consistently uses it for
things like “,reload” or “,bt”, i.e. any command that is not supposed to
be evaluated directly as program code but in the meta environment of the
REPL itself.

-- 
Ricardo


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

* Re: Heisenbug
  2023-12-10  6:42 Heisenbug Felix Lechner via Development of GNU Guix and the GNU System distribution.
  2023-12-10 13:05 ` Heisenbug Attila Lendvai
@ 2023-12-28  9:36 ` Josselin Poiret
  1 sibling, 0 replies; 5+ messages in thread
From: Josselin Poiret @ 2023-12-28  9:36 UTC (permalink / raw)
  To: Felix Lechner, guix-devel

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

Hi Felix,

Felix Lechner via "Development of GNU Guix and the GNU System
distribution." <guix-devel@gnu.org> writes:

> Hi,
>
> Running 'make' in a hacked Guix, I get this error the first time around:
>
> [ 84%] LOAD     gnu/tests/ldap.scm
> [ 84%] LOAD     gnu/tests/linux-modules.scm
> [ 84%] LOAD     gnu/tests/mail.scm
> [ 84%] LOAD     gnu/tests/messaging.scm
> [ 84%] LOAD     gnu/tests/networking.scm
> [ 84%] LOAD     gnu/tests/package-management.scm
> [ 84%] LOAD     gnu/tests/pam.scm
> [ 85%] LOAD     gnu/tests/reconfigure.scm
> ice-9/eval.scm:293:34: error: label: unbound variable
> hint: Did you forget a `use-modules' form?
>
> make[2]: *** [Makefile:7104: make-system-go] Error 1
> make[2]: Leaving directory '/lcl/lechner/guix/git'
> make[1]: *** [Makefile:6152: all-recursive] Error 1
> make[1]: Leaving directory '/lcl/lechner/guix/git'
> make: *** [Makefile:4268: all] Error 2
>
> When I run 'make' a second time, the error changes to:
>
> [ 77%] LOAD     gnu/artwork.scm
> [ 77%] LOAD     gnu/bootloader.scm
> [ 77%] LOAD     gnu/bootloader/grub.scm
> [ 77%] LOAD     gnu/bootloader/extlinux.scm
> [ 77%] LOAD     gnu/bootloader/u-boot.scm
> [ 77%] LOAD     gnu/bootloader/depthcharge.scm
> [ 77%] LOAD     gnu/ci.scm
> error: profile: source expression failed to match any pattern
>
> make[2]: *** [Makefile:7104: make-system-go] Error 1
> make[2]: Leaving directory '/lcl/lechner/guix/git'
> make[1]: *** [Makefile:6152: all-recursive] Error 1
> make[1]: Leaving directory '/lcl/lechner/guix/git'
> make: *** [Makefile:4268: all] Error 2
>
> What's a good way to debug this, please? Where is my error? Thanks!

Usually, these Heisenbugs come from the lack of dependency tracking in
Guile: module dependencies have changed but their dependents weren't
rebuilt.  I would usually suggest `make clean-go` then `make`, and if
the error happens again then you most likely are in front of the
“actual” error.

Best,
-- 
Josselin Poiret

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 682 bytes --]

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

end of thread, other threads:[~2023-12-28  9:37 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-12-10  6:42 Heisenbug Felix Lechner via Development of GNU Guix and the GNU System distribution.
2023-12-10 13:05 ` Heisenbug Attila Lendvai
2023-12-10 15:11   ` Heisenbug Felix Lechner via Development of GNU Guix and the GNU System distribution.
2023-12-10 18:00     ` Heisenbug Ricardo Wurmus
2023-12-28  9:36 ` Heisenbug Josselin Poiret

Code repositories for project(s) associated with this public 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).