GNU bug report logs - #70202
[PATCH] doc: Add message for common error about make check-system

Previous Next

Package: guix-patches;

Reported by: Richard Sent <richard <at> freakingpenguin.com>

Date: Thu, 4 Apr 2024 21:21:04 UTC

Severity: normal

Tags: patch

Merged with 71580

Done: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 70202 in the body.
You can then email your comments to 70202 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to guix-patches <at> gnu.org:
bug#70202; Package guix-patches. (Thu, 04 Apr 2024 21:21:04 GMT) Full text and rfc822 format available.

Acknowledgement sent to Richard Sent <richard <at> freakingpenguin.com>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Thu, 04 Apr 2024 21:21:04 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Richard Sent <richard <at> freakingpenguin.com>
To: guix-patches <at> gnu.org
Cc: Richard Sent <richard <at> freakingpenguin.com>
Subject: [PATCH] doc: Add message for common error about make check-system
Date: Thu,  4 Apr 2024 17:17:03 -0400
* doc/guix.texi: Mention that make clean may need to be run before running
make check-system when previous builds were run with different work trees. See
https://issues.guix.gnu.org/47573.

Change-Id: I39d465961637d9fc6b11f59e1500770220780b4c
---
Hi Guix!

Ran into this issue myself. It seems common enough to be worth
mentioning in the docs, similar to the message in (guix) Building from
Git.

I found my solution from https://issues.guix.gnu.org/47573.

>    If you get an error like this one:
> 
>      configure.ac:46: error: possibly undefined macro: PKG_CHECK_MODULES


 doc/guix.texi | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

diff --git a/doc/guix.texi b/doc/guix.texi
index ef9e4216b4..72cac183a5 100644
--- a/doc/guix.texi
+++ b/doc/guix.texi
@@ -1177,6 +1177,23 @@ Running the Test Suite
 substitutes are available for their dependencies (@pxref{Substitutes}).
 Some of them require a lot of storage space to hold VM images.
 
+If you encounter an error like this one:
+
+@example
+Compiling Scheme modules...
+ice-9/eval.scm:142:16: In procedure compile-top-call:
+error: all-system-tests: unbound variable
+hint: Did you forget `(use-modules (gnu tests))'?
+@end example
+
+@noindent
+there may be inconsistency in the work tree from previous builds.  Try
+running:
+
+@example
+make clean && make
+@end example
+
 Again in case of test failures, please send @email{bug-guix@@gnu.org}
 all the details.
 

base-commit: ade6845da6cec99f3bca46faac9b2bad6877817e
-- 
2.41.0





Merged 70202 71580. Request was from Richard Sent <richard <at> freakingpenguin.com> to control <at> debbugs.gnu.org. (Sat, 15 Jun 2024 21:56:02 GMT) Full text and rfc822 format available.

Information forwarded to guix-patches <at> gnu.org:
bug#70202; Package guix-patches. (Mon, 17 Jun 2024 11:51:02 GMT) Full text and rfc822 format available.

Message #10 received at 70202 <at> debbugs.gnu.org (full text, mbox):

From: "pelzflorian (Florian Pelz)" <pelzflorian <at> pelzflorian.de>
To: Richard Sent <richard <at> freakingpenguin.com>
Cc: 70202 <at> debbugs.gnu.org
Subject: Re: [bug#70202] [PATCH] doc: Add message for common error about
 make check-system
Date: Mon, 17 Jun 2024 13:50:36 +0200
Hello Richard, I am hesitant because I cannot reproduce the error and it
might be better to fix it rather than document it.  Looking at,

Richard Sent <richard <at> freakingpenguin.com> writes:
> * doc/guix.texi: Mention that make clean may need to be run before running
> make check-system when previous builds were run with different work trees. See
> https://issues.guix.gnu.org/47573.

I assume by work tree you do not mean a work tree produced by `git
worktree`, but the state of the source directory.  So:

Léo Le Bouter <lle-bout <at> zaclys.net> writes
<https://issues.guix.gnu.org/47573>:
> $ make check-system
> Compiling Scheme modules...
> ice-9/eval.scm:142:16: In procedure compile-top-call:
> error: channel-source->package: unbound variable
> hint: Did you forget `(use-modules (gnu ci))'?
>
> make: *** [Makefile:6305: check-system] Error 1

and:

Richard Sent <richard <at> freakingpenguin.com> writes:
> +Compiling Scheme modules...
> +ice-9/eval.scm:142:16: In procedure compile-top-call:
> +error: all-system-tests: unbound variable
> +hint: Did you forget `(use-modules (gnu tests))'?

I do not understand Guix well enough why this could happen.  Since `make
clean-go` helps, the cause must be in Guix’ .go files and not some
cache.  In Makefile.am, the check-system target depends on $(GOBJECTS).

I presume gnu/tests.go and gnu/ci.go should be added to GOBJECTS?
Or gnu/tests.scm and gnu/ci.scm should be added to MODULES?

But I do not really understand.

Regards,
Florian




Information forwarded to guix-patches <at> gnu.org:
bug#70202; Package guix-patches. (Mon, 17 Jun 2024 12:14:01 GMT) Full text and rfc822 format available.

Message #13 received at 70202 <at> debbugs.gnu.org (full text, mbox):

From: Richard Sent <richard <at> freakingpenguin.com>
To: "pelzflorian (Florian Pelz)" <pelzflorian <at> pelzflorian.de>
Cc: 70202 <at> debbugs.gnu.org
Subject: Re: [bug#70202] [PATCH] doc: Add message for common error about
 make check-system
Date: Mon, 17 Jun 2024 08:13:03 -0400
Hi Florian,

"pelzflorian (Florian Pelz)" <pelzflorian <at> pelzflorian.de> writes:

> Hello Richard, I am hesitant because I cannot reproduce the error and it
> might be better to fix it rather than document it.  Looking at,

I can't reliably reproduce the error myself. It simply "comes up" every
now and then if I switch between branches with an existing build and try
rebuilding Guix and rerunning the tests. Agreed, a fix would be
preferred. I have absolutely no idea how.

> I do not understand Guix well enough why this could happen.  Since `make
> clean-go` helps, the cause must be in Guix’ .go files and not some
> cache.  In Makefile.am, the check-system target depends on $(GOBJECTS).
>
> I presume gnu/tests.go and gnu/ci.go should be added to GOBJECTS?
> Or gnu/tests.scm and gnu/ci.scm should be added to MODULES?

I don't believe the issue is limited to those two files in particular
(although it could be). That just happened to be the file causing the
problem when I caught the error and pasted it in the doc.

> But I do not really understand.

That makes two of us. :)

-- 
Take it easy,
Richard Sent
Making my computer weirder one commit at a time.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Mon, 22 Jul 2024 11:24:06 GMT) Full text and rfc822 format available.

This bug report was last modified 4 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.