From unknown Sun Aug 17 00:59:53 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#30021 <30021@debbugs.gnu.org> To: bug#30021 <30021@debbugs.gnu.org> Subject: Status: system build: unable to parse multi-line device-mapping Reply-To: bug#30021 <30021@debbugs.gnu.org> Date: Sun, 17 Aug 2025 07:59:53 +0000 retitle 30021 system build: unable to parse multi-line device-mapping reassign 30021 guix submitter 30021 Vagrant Cascadian severity 30021 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Sun Jan 07 22:24:55 2018 Received: (at submit) by debbugs.gnu.org; 8 Jan 2018 03:24:55 +0000 Received: from localhost ([127.0.0.1]:40066 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eYO3S-00078t-Ru for submit@debbugs.gnu.org; Sun, 07 Jan 2018 22:24:55 -0500 Received: from eggs.gnu.org ([208.118.235.92]:42787) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eYO3R-00078g-9F for submit@debbugs.gnu.org; Sun, 07 Jan 2018 22:24:53 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eYO3L-0006lJ-C6 for submit@debbugs.gnu.org; Sun, 07 Jan 2018 22:24:48 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:38992) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eYO3L-0006lD-8f for submit@debbugs.gnu.org; Sun, 07 Jan 2018 22:24:47 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33748) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eYO3J-0000VF-Te for bug-guix@gnu.org; Sun, 07 Jan 2018 22:24:47 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eYO3I-0006kD-R7 for bug-guix@gnu.org; Sun, 07 Jan 2018 22:24:45 -0500 Received: from cascadia.aikidev.net ([2600:3c01::f03c:91ff:fedf:64ce]:35490) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eYO3I-0006gh-LE for bug-guix@gnu.org; Sun, 07 Jan 2018 22:24:44 -0500 Received: from localhost (unknown [IPv6:2600:3c01:e000:21:21:21:0:100b]) (Authenticated sender: vagrant@cascadia.debian.net) by cascadia.aikidev.net (Postfix) with ESMTPSA id D9ED61AC75 for ; Sun, 7 Jan 2018 19:24:40 -0800 (PST) From: Vagrant Cascadian To: bug-guix@gnu.org Subject: system build: unable to parse multi-line device-mapping Date: Sun, 07 Jan 2018 19:24:27 -0800 Message-ID: <87efn11190.fsf@aikidev.net> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable After several weeks of not using a machine, and updating guix to guix (GNU Guix) c04ffadbed7412545555b8be6b78f23eed150d26 Running "guix build system /etc/config.scm" resulted in: guix system: error: failed to load '/etc/config.scm': /etc/config.scm:23:9: /etc/config.scm:23:9: In procedure allocate-struct:= Wrong type argument in\ position 2: 3 This roughly corresponded to my mapped device section in /etc/config.scm: (mapped-devices (list (mapped-device (source (uuid "c106e43e-0479-4135-a1a8-b5221312bf74")) (target "cryptic") (type luks-device-mapping)))) Moving it all into a single line worked around the issue, but is a good deal harder to read: (mapped-devices (list (mapped-device (source (uuid "c106e43e-0479-4135-a1= a8-b5221312bf74")) (target "cryptic") (type luks-device-mapping)))) My guess is it has something to do with some commits relating to validating mapped devices: 42ff7d3be642d66ba567f64882a1f2301b1a7bd9 mapped-devices: 'luks-device-mapping' checks its source device. 4ca90ff5976434a2b6e758df38df54387ae70c1b=20 mapped-devices: Add 'location' and 'check' fields. Hope that helps! live well, vagrant --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEcDardHbDotegGFCHt4uC1IFLkbYFAlpS5GsACgkQt4uC1IFL kbZKRg/5AeAFlktpOMf67jqWyaY7tbNiT0yTXI8vE35tpJfdRu1YbBp5Fgwv6zPP uVDkyeObjIppWMgtSvb6y7PHCm/7tJUKIZCOSd3GIAjfcCU9TcH9QZjYAqr8HjZy rnX1MFkLasx98cLrLEsovhLMAbTiprgYmUjKO3grEfqRzfJqlVVKS7aFSTUncdw6 5aJSPGpfmdbhoYO21aghYUFk+ZA7M7xYk8pOdQYojZ/w8x06IehQOKnuQp/eMjEx skrcR0btd6HVWBR64lSBf3B+BRzuCjIMY0DWsz4dn2fQmvSuXgdjYfVUFps55WZG 8FGroDY30/aNxwx1d7GoxuOG1r4zApgkpIt/52RZhoFu9uT1YGhiUsINEg/DRXPd QTisN5RehYeJka6YY9J1rL/iT2GYfjmvCLHwdVP7T+N9+Ju8VNpZAWc+7+hGi8en /Ytn3tzb9iCUgbrpTfYPL9cYZ34LHdUUmp3PISQSmAVM6Rmm6BOJKMKF1Eb3+CWG Mu0VUxG8ZYjyrxOjhKwHAVJLd5gjJXFxGZNgsMjEzHx4wYkfyW5QYLEsnfZ2aEP8 n0OgPhHX/VNtLsLXRNbpN5mj3NpIk3VHCc6gXIQsii1PQTL9QKZNAyhu4DIIVcP7 EwwdT7XFPT5syAdk9dyV/EjKjHA5h/W1Ep2HAO1YRR/Lif/vM7I= =dC4Y -----END PGP SIGNATURE----- --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Mon Jan 08 00:47:30 2018 Received: (at 30021) by debbugs.gnu.org; 8 Jan 2018 05:47:30 +0000 Received: from localhost ([127.0.0.1]:40117 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eYQHS-00024b-A0 for submit@debbugs.gnu.org; Mon, 08 Jan 2018 00:47:30 -0500 Received: from world.peace.net ([50.252.239.5]:44962) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eYQHQ-00024O-Iq for 30021@debbugs.gnu.org; Mon, 08 Jan 2018 00:47:28 -0500 Received: from pool-72-93-33-196.bstnma.east.verizon.net ([72.93.33.196] helo=jojen) by world.peace.net with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1eYQHK-0002VT-I7; Mon, 08 Jan 2018 00:47:22 -0500 From: Mark H Weaver To: Vagrant Cascadian Subject: Re: bug#30021: system build: unable to parse multi-line device-mapping References: <87efn11190.fsf@aikidev.net> Date: Mon, 08 Jan 2018 00:46:54 -0500 In-Reply-To: <87efn11190.fsf@aikidev.net> (Vagrant Cascadian's message of "Sun, 07 Jan 2018 19:24:27 -0800") Message-ID: <874lnwdhrl.fsf@netris.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 30021 Cc: 30021@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) Hi, Vagrant Cascadian writes: > After several weeks of not using a machine, and updating guix to > > guix (GNU Guix) c04ffadbed7412545555b8be6b78f23eed150d26 > > > Running "guix build system /etc/config.scm" resulted in: > > guix system: error: failed to load '/etc/config.scm': > /etc/config.scm:23:9: /etc/config.scm:23:9: In procedure allocate-struct: Wrong type argument in\ > position 2: 3 > > > This roughly corresponded to my mapped device section in > /etc/config.scm: > > (mapped-devices > (list (mapped-device > (source (uuid "c106e43e-0479-4135-a1a8-b5221312bf74")) > (target "cryptic") > (type luks-device-mapping)))) I ran into the same problem. > Moving it all into a single line worked around the issue, but is a good > deal harder to read: > > (mapped-devices (list (mapped-device (source (uuid "c106e43e-0479-4135-a1a8-b5221312bf74")) (target "cryptic") (type luks-device-mapping)))) > > > My guess is it has something to do with some commits relating to > validating mapped devices: > > 42ff7d3be642d66ba567f64882a1f2301b1a7bd9 > mapped-devices: 'luks-device-mapping' checks its source device. > > 4ca90ff5976434a2b6e758df38df54387ae70c1b > mapped-devices: Add 'location' and 'check' fields. You're right that it has to do with those commits, but the work around simply involves forcing a recompilation of /etc/config.scm. *Any* change to config.scm would have fixed the problem, or alternatively you could have deleted ~/.cache/guile/ccache. In any case, you can now reformat the mapped device section as it was before, and it will continue to work. What happened here is that commit 4ca90ff5 added two fields to the record type. For efficiency reasons, the 'mapped-device' record constructor (used in /etc/config.scm) is an *inlined* procedure. Unfortunately this means that the compiled version of /etc/config.scm in ~/.cache/guile/ccache was still creating the old record type. Guile is not able to detect this case, so the cache must be manually invalidated somehow. Mark From debbugs-submit-bounces@debbugs.gnu.org Mon Jan 08 00:49:54 2018 Received: (at 30021-done) by debbugs.gnu.org; 8 Jan 2018 05:49:54 +0000 Received: from localhost ([127.0.0.1]:40121 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eYQJl-00027r-NR for submit@debbugs.gnu.org; Mon, 08 Jan 2018 00:49:53 -0500 Received: from world.peace.net ([50.252.239.5]:44986) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eYQJk-00027e-4w for 30021-done@debbugs.gnu.org; Mon, 08 Jan 2018 00:49:52 -0500 Received: from pool-72-93-33-196.bstnma.east.verizon.net ([72.93.33.196] helo=jojen) by world.peace.net with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1eYQJe-0002WY-8s; Mon, 08 Jan 2018 00:49:46 -0500 From: Mark H Weaver To: Vagrant Cascadian Subject: Re: bug#30021: system build: unable to parse multi-line device-mapping References: <87efn11190.fsf@aikidev.net> Date: Mon, 08 Jan 2018 00:49:19 -0500 In-Reply-To: <87efn11190.fsf@aikidev.net> (Vagrant Cascadian's message of "Sun, 07 Jan 2018 19:24:27 -0800") Message-ID: <87zi5oc334.fsf@netris.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 30021-done Cc: 30021-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) Vagrant Cascadian writes: > Running "guix build system /etc/config.scm" resulted in: > > guix system: error: failed to load '/etc/config.scm': > /etc/config.scm:23:9: /etc/config.scm:23:9: In procedure allocate-struct: Wrong type argument in\ > position 2: 3 I forgot to mention that there's already a bug filed for this issue: https://bugs.gnu.org/29881 I'm closing this bug now. Thanks, Mark From unknown Sun Aug 17 00:59:53 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Mon, 05 Feb 2018 12:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator