unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: jgart via Guix-patches via <guix-patches@gnu.org>
To: 52505@debbugs.gnu.org
Cc: Julien Lepiller <julien@lepiller.eu>,
	Ryan Prior <rprior@protonmail.com>,
	Guix Together <jgart@dismail.de>,
	Blake Shaw <blake@nonconstructivism.com>
Subject: [bug#52505] [PATCH v3 2/2] doc: Mention how to remedy "source file ... newer than compiled error".
Date: Thu, 16 Dec 2021 01:46:50 -0500	[thread overview]
Message-ID: <20211216064649.15033-2-jgart@dismail.de> (raw)
In-Reply-To: <20211216064649.15033-1-jgart@dismail.de>

From: Guix Together <jgart@dismail.de>

* doc/contributing.texi (Running Guix Before It Is Installed): Mention
how to remedy "source file ... newer than compiled" error by running
`make -j`.

Co-authored-by: jgart <jgart@dismail.de>
Co-authored-by: Julien Lepiller <julien@lepiller.eu>
Co-authored-by: Ryan Prior <rprior@protonmail.com>
Co-authored-by: Blake Shaw <blake@nonconstructivism.com>
---
 doc/contributing.texi | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git a/doc/contributing.texi b/doc/contributing.texi
index 164e353884..f3182b1564 100644
--- a/doc/contributing.texi
+++ b/doc/contributing.texi
@@ -243,6 +243,24 @@ local source tree; it simply updates the @file{~/.config/guix/current}
 symlink (@pxref{Invoking guix pull}).  Run @command{git pull} instead if
 you want to upgrade your local source tree.
 
+Sometimes, especially if you have recently updated your repository,
+running @command{./pre-inst-env} will print a message similar to the
+following example:
+
+@example
+;;; note: source file /home/user/projects/guix/guix/progress.scm
+;;;       newer than compiled /home/user/projects/guix/guix/progress.go
+@end example
+
+This is only a note and you can safely ignore it.  You can get rid of
+the message by running @command{make -j4}.  Until you do, Guile will run
+slightly slower because it will interpret the code instead of using
+prepared Guile object (@file{.go}) files.
+
+You can run @command{make} automatically as you work using
+@command{watchexec} from the @code{watchexec} package.  For example,
+to build again each time you update a package file, you can run
+@samp{watchexec -w gnu/packages make -j4}.
 
 @node The Perfect Setup
 @section The Perfect Setup
-- 
2.34.0





  reply	other threads:[~2021-12-16  6:50 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-12-15 11:16 [bug#52505] [PATCH 1/2] Guix Documentation Meetup Patches jgart via Guix-patches via
2021-12-15 11:20 ` [bug#52505] [PATCH 1/2] doc: Explain the use of make clean-go when an ABI mismatch occurs jgart via Guix-patches via
2021-12-15 11:20   ` [bug#52505] [PATCH 2/2] doc: Mention how to remedy "source file ... newer than compiled error" jgart via Guix-patches via
2021-12-15 12:39     ` zimoun
2021-12-15 13:14     ` Nicolas Goaziou
2021-12-15 13:08   ` [bug#52505] [PATCH 1/2] doc: Explain the use of make clean-go when an ABI mismatch occurs Nicolas Goaziou
2021-12-15 22:34 ` [bug#52505] [PATCH v2 " jgart via Guix-patches via
2021-12-15 22:34   ` [bug#52505] [PATCH v2 2/2] doc: Mention how to remedy "source file ... newer than compiled error" jgart via Guix-patches via
2021-12-16  6:46 ` [bug#52505] [PATCH v3 1/2] doc: Explain the use of make clean-go when an ABI mismatch occurs jgart via Guix-patches via
2021-12-16  6:46   ` jgart via Guix-patches via [this message]
2022-01-28  9:16 ` bug#52505: [PATCH 1/2] Guix Documentation Meetup Patches Nicolas Goaziou
2022-02-03  0:43   ` [bug#52505] " jgart via Guix-patches via

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20211216064649.15033-2-jgart@dismail.de \
    --to=guix-patches@gnu.org \
    --cc=52505@debbugs.gnu.org \
    --cc=blake@nonconstructivism.com \
    --cc=jgart@dismail.de \
    --cc=julien@lepiller.eu \
    --cc=rprior@protonmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).