From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) Subject: bug#29881: guix system reconfigure fails if config.scm contains LUKS mapped-devices Date: Mon, 05 Mar 2018 10:58:54 +0100 Message-ID: <87zi3mc081.fsf@gnu.org> References: <87tvwa33ab.fsf@GlaDOS.home> <878tdl4poe.fsf@gnu.org> <87inc9bd3l.fsf@netris.org> <87d12ag3aq.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53509) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1esmte-0002DP-UC for bug-guix@gnu.org; Mon, 05 Mar 2018 04:59:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1esmtb-00071q-22 for bug-guix@gnu.org; Mon, 05 Mar 2018 04:59:07 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:37246) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1esmta-00071X-Tm for bug-guix@gnu.org; Mon, 05 Mar 2018 04:59:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1esmta-0000be-Kk for bug-guix@gnu.org; Mon, 05 Mar 2018 04:59:02 -0500 Sender: "Debbugs-submit" Resent-To: bug-guix@gnu.org Resent-Message-ID: In-Reply-To: <87d12ag3aq.fsf@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Mon, 15 Jan 2018 23:33:49 +0100") List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: Mark H Weaver Cc: 29881-done@debbugs.gnu.org, Diego Nicola Barbato ludo@gnu.org (Ludovic Court=C3=A8s) skribis: > Mark H Weaver skribis: > >> ludo@gnu.org (Ludovic Court=C3=A8s) writes: >> >>> Diego Nicola Barbato skribis: >>> >>>> When running `guix system reconfigure /etc/config.scm' as root I get t= he >>>> following error: >>>> >>>> guix system: error: failed to load '/etc/config.scm': >>>> /etc/config.scm:24:9: /etc/config.scm:24:9: In procedure allocate-stru= ct: Wrong type argument in position 2: 3 >>> >>> I=E2=80=99m afraid you=E2=80=99ll have to =E2=80=9Crm -rf ~/.cache/guil= e/ccache=E2=80=9D (Guile=E2=80=99s >>> auto-compilation cache) to work around >>> e2721a05e7d778bdf845b7cb7a42fd9f76095b69. >> >> FYI, more recently there has been another change that caused "guix >> system build" to fail for me, and once again it was fixed by clearing >> the auto-compilation cache for my system configuration. > > For now, in commit 92423868bc451600f8f3d93b638091d12b14b7aa, I=E2=80=99ve > arranged so that auto-compilation is turned off for Guile 2.2.3 only. [...] > I=E2=80=99m not sure we can do much better for 2.2.3, or perhaps we should > always use (compile-file file #:to 'value) in =E2=80=98load*=E2=80=99? In commit f44c7aaccd1942b8bf7916e4c8bb0f8f1abfcb58 I added an explicit =E2=80=98compile-file=E2=80=99 call to update the cached .go file for the u= ser=E2=80=99s config, when on 2.2.3. This should solve the problem most of the time. The only remaining issue is if you=E2=80=99re using 2.2.3 and your config spans several module= s: only the main .scm file is rebuilt, so there could be ABI issues in the other modules. I=E2=80=99m closing the bug now. Ludo=E2=80=99.