From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mark H Weaver Subject: bug#29881: guix system reconfigure fails if config.scm contains LUKS mapped-devices Date: Wed, 10 Jan 2018 16:47:26 -0500 Message-ID: <87inc9bd3l.fsf@netris.org> References: <87tvwa33ab.fsf@GlaDOS.home> <878tdl4poe.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]:38531) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eZOF8-0006T7-4Z for bug-guix@gnu.org; Wed, 10 Jan 2018 16:49:07 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eZOF4-0001C1-TF for bug-guix@gnu.org; Wed, 10 Jan 2018 16:49:06 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:43543) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eZOF4-0001Bn-KK for bug-guix@gnu.org; Wed, 10 Jan 2018 16:49:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eZOF4-0003bh-Di for bug-guix@gnu.org; Wed, 10 Jan 2018 16:49:02 -0500 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <878tdl4poe.fsf@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Fri, 29 Dec 2017 14:41:21 +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: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 29881@debbugs.gnu.org, Diego Nicola Barbato ludo@gnu.org (Ludovic Court=C3=A8s) writes: > Diego Nicola Barbato skribis: > >> When running `guix system reconfigure /etc/config.scm' as root I get the >> following error: >> >> guix system: error: failed to load '/etc/config.scm': >> /etc/config.scm:24:9: /etc/config.scm:24:9: In procedure allocate-struct= : Wrong type argument in position 2: 3 > > I=E2=80=99m afraid you=E2=80=99ll have to =E2=80=9Crm -rf ~/.cache/guile/= 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. Here's the error I got: --8<---------------cut here---------------start------------->8--- mhw@jojen ~$ (guix system build /etc/config-sddm.scm --keep-going --keep-fa= iled --no-grafts; guix system build /etc/config-sddm.scm --keep-going --kee= p-failed; guix package -m mhw-manifest.scm --keep-going --keep-failed) Backtrace: In guix/store.scm: 1443:24 19 (run-with-store _ _ #:guile-for-build _ #:system _ # _) In guix/scripts/system.scm: 1031:13 18 (_ _) 736:18 17 (perform-action build #< kernel: # =E2=80=A6) In gnu/system.scm: 813:19 16 (operating-system-derivation _ #:container? _) In gnu/services.scm: 697:26 15 (loop #< type: # =E2=80= =A6>) In srfi/srfi-1.scm: 592:17 14 (map1 (#< type: #= =E2=80=A6)) In gnu/services.scm: 697:26 13 (loop #< type: #=E2=80= =A6>) In srfi/srfi-1.scm: 592:17 12 (map1 (#< type: #= =E2=80=A6)) In gnu/services.scm: 698:26 11 (loop #< type: #) In srfi/srfi-1.scm: 592:29 10 (map1 (#< type: #= =E2=80=A6)) 592:29 9 (map1 (#< type: #= =E2=80=A6)) 592:29 8 (map1 (#< type: #= =E2=80=A6)) 592:29 7 (map1 (#< type: #= =E2=80=A6)) 592:29 6 (map1 (#< type: #= =E2=80=A6)) 592:29 5 (map1 (#< type: #= =E2=80=A6)) 592:29 4 (map1 (#< type: #= =E2=80=A6)) 592:29 3 (map1 (#< type: #= =E2=80=A6)) 592:17 2 (map1 (#< type: #= =E2=80=A6)) In gnu/services/base.scm: 1471:43 1 (guix-shepherd-service _) In unknown file: 0 (symbol->string ("--gc-keep-derivations=3Dyes" "--gc-ke=E2=80= =A6")) ERROR: In procedure symbol->string: ERROR: In procedure symbol->string: Wrong type argument in position 1 (expe= cting symbol): ("--gc-keep-derivations=3Dyes" "--gc-keep-outputs=3Dyes") Backtrace: In guix/store.scm: 1443:24 19 (run-with-store _ _ #:guile-for-build _ #:system _ # _) In guix/scripts/system.scm: 1031:13 18 (_ _) 736:18 17 (perform-action build #< kernel: # =E2=80=A6) In gnu/system.scm: 813:19 16 (operating-system-derivation _ #:container? _) In gnu/services.scm: 697:26 15 (loop #< type: # =E2=80= =A6>) In srfi/srfi-1.scm: 592:17 14 (map1 (#< type: #= =E2=80=A6)) In gnu/services.scm: 697:26 13 (loop #< type: #=E2=80= =A6>) In srfi/srfi-1.scm: 592:17 12 (map1 (#< type: #= =E2=80=A6)) In gnu/services.scm: 698:26 11 (loop #< type: #) In srfi/srfi-1.scm: 592:29 10 (map1 (#< type: #= =E2=80=A6)) 592:29 9 (map1 (#< type: #= =E2=80=A6)) 592:29 8 (map1 (#< type: #= =E2=80=A6)) 592:29 7 (map1 (#< type: #= =E2=80=A6)) 592:29 6 (map1 (#< type: #= =E2=80=A6)) 592:29 5 (map1 (#< type: #= =E2=80=A6)) 592:29 4 (map1 (#< type: #= =E2=80=A6)) 592:29 3 (map1 (#< type: #= =E2=80=A6)) 592:17 2 (map1 (#< type: #= =E2=80=A6)) In gnu/services/base.scm: 1471:43 1 (guix-shepherd-service _) In unknown file: 0 (symbol->string ("--gc-keep-derivations=3Dyes" "--gc-ke=E2=80= =A6")) ERROR: In procedure symbol->string: ERROR: In procedure symbol->string: Wrong type argument in position 1 (expe= cting symbol): ("--gc-keep-derivations=3Dyes" "--gc-keep-outputs=3Dyes") --8<---------------cut here---------------end--------------->8--- and the relevant excerpt from my system configuration: --8<---------------cut here---------------start------------->8--- (modify-services (remove (lambda (svc) (eq? (service-kind svc) wicd-service-type)) %base-services) (guix-service-type config =3D> (guix-configuration (inherit config) (use-substitutes? #f) (authorized-keys '()) (substitute-urls '()) (extra-options '("--gc-keep-derivations=3Dyes" "--gc-keep-outputs=3Dyes")))= )) --8<---------------cut here---------------end--------------->8--- I guess that maybe the 'guix-configuration' record was changed, but I haven't taken the time to find the commit that broke my cached etc/config-sddm.go. Mark