unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Maxime Devos <maximedevos@telenet.be>
To: Maxim Cournoyer <maxim.cournoyer@gmail.com>,
	Ricardo Wurmus <rekado@elephly.net>
Cc: guix-devel@gnu.org
Subject: Re: How to solve "abiI-check: recompilation needed"
Date: Sat, 18 Sep 2021 15:13:17 +0200	[thread overview]
Message-ID: <3ff2a59877b5c061eea7750bf7ad87aeaeee9e12.camel@telenet.be> (raw)
In-Reply-To: <87fsu3m0ku.fsf@gmail.com>

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

Maxim Cournoyer schreef op vr 17-09-2021 om 16:03 [-0400]:
> Hello,
> 
> Ricardo Wurmus <rekado@elephly.net> writes:
> 
> > Hartmut Goebel <h.goebel@crazy-compilers.com> writes:
> > 
> > > Hi,
> > > 
> > > quite often, after "git pull" I'm facing this error when running
> > > "make-make-go":
> > > 
> > > $ make make-go
> > > Compiling Scheme modules...
> > > Compiling Scheme modules...
> > > [ 69%] LOAD     gnu/packages/admin.scm
> > > error: failed to load 'gnu/packages/check.scm':
> > > ice-9/eval.scm:293:34: In procedure abi-check: #<record-type
> > > <package>>: record ABI mismatch; recompilation needed
> > > make: *** [Makefile:7096: make-packages-go] Fehler 1
> > > 
> > > How can I solve this, without removing and rebulding *all* files -
> > > which is time consuming and a waste of electric power.
> > 
> > You need to rebuild all users of the modified record types.  I don’t
> > know if you can easily figure out which files these are.
> > 
> > The suggested fix is in fact to rebuild all go files, i.e. “make
> > clean-go” and then “make -j”.
> 
> For this example, there's no good way as 'package' is used in a majority
> of the Guile modules.  It it had been something more specific, such as
> the <bootloader-configuration> record, you could have gotten away with:
> 
> $ git grep -l bootloader-configuration | grep '.scm' \
>   | sed 's/.scm/.go/' | xargs rm
> 
> $ make
> 
> Which I often though to save recompilation time.

The ‘dependency tracking‘ patch in <https://issues.guix.gnu.org/50384#9>
could be adapted to let all source files using the ‘package’ macro depend
on guix/packages.scm.  Likewise for origin records and other records.

Greetings,
Maxime.

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 260 bytes --]

  reply	other threads:[~2021-09-18 13:13 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-16 10:56 How to solve "abiI-check: recompilation needed" Hartmut Goebel
2021-09-16 14:23 ` Ricardo Wurmus
2021-09-17 20:03   ` Maxim Cournoyer
2021-09-18 13:13     ` Maxime Devos [this message]
2021-09-16 15:46 ` Ryan Sundberg
2021-09-16 16:47   ` Ricardo Wurmus

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=3ff2a59877b5c061eea7750bf7ad87aeaeee9e12.camel@telenet.be \
    --to=maximedevos@telenet.be \
    --cc=guix-devel@gnu.org \
    --cc=maxim.cournoyer@gmail.com \
    --cc=rekado@elephly.net \
    /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).