From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Bavier Subject: bug#30879: Commit bc499b113 broke guix on guile@2.0.14, improper field initialization Date: Tue, 20 Mar 2018 10:43:02 -0500 Message-ID: <20180320154302.GL105827@pe06.us.cray.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47930) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eyJQk-0000QE-JR for bug-guix@gnu.org; Tue, 20 Mar 2018 11:44:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eyJQh-0007At-SE for bug-guix@gnu.org; Tue, 20 Mar 2018 11:44:06 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:36112) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eyJQh-0007An-OR for bug-guix@gnu.org; Tue, 20 Mar 2018 11:44:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eyJQf-00053H-So for bug-guix@gnu.org; Tue, 20 Mar 2018 11:44:03 -0400 Sender: "Debbugs-submit" Resent-Message-ID: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47423) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eyJPq-000895-Bk for bug-guix@gnu.org; Tue, 20 Mar 2018 11:43:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eyJPm-0005q5-VH for bug-guix@gnu.org; Tue, 20 Mar 2018 11:43:10 -0400 Received: from esa2.cray.iphmx.com ([68.232.143.164]:27190) by eggs.gnu.org with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.71) (envelope-from ) id 1eyJPm-0005ld-DV for bug-guix@gnu.org; Tue, 20 Mar 2018 11:43:06 -0400 Received: from pe06.us.cray.com (pe06.us.cray.com [172.30.79.74]) by sealmr01.us.cray.com (8.14.3/8.13.8/hubv3-LastChangedRevision: 16250) with ESMTP id w2KFh2UY022897 for ; Tue, 20 Mar 2018 08:43:03 -0700 Content-Disposition: inline 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: 30879@debbugs.gnu.org Hello Guix, On the master branch (5d818b3557cc3b546d5bd0639359c14c7c0ab685), when configured with guile@2.0.14, I get the following backtrace when running `make`. Backtrace: In ice-9/boot-9.scm: 1739: 19 [#] In unknown file: ?: 18 [primitive-load "/home/users/bavier/src/guix/./build-aux/compile-all.scm"] In guix/build/compile.scm: 158: 17 [compile-files "." "/home/users/bavier/src/guix" ...] 107: 16 [load-files "." # # ...] In ice-9/boot-9.scm: 2900: 15 [resolve-interface (gnu tests base) #:select ...] 2825: 14 [# # ...] 3101: 13 [try-module-autoload (gnu tests base) #f] 2412: 12 [save-module-excursion #] 3121: 11 [#] In unknown file: ?: 10 [primitive-load-path "gnu/tests/base" ...] In gnu/tests/base.scm: 390: 9 [#] 63: 8 [run-basic-test # # "basic" ...] In ice-9/eval.scm: 387: 7 [eval # #] 387: 6 [eval # #] 411: 5 [eval # #] 387: 4 [eval # #] In unknown file: ?: 3 [filter # (# # # #)] In ice-9/eval.scm: 411: 2 [eval # #] 411: 1 [eval # #] 387: 0 [eval # #] ice-9/eval.scm:387:11: In procedure eval: ice-9/eval.scm:387:11: In procedure mapped-device-target: Wrong type argument: #< device: "my-root" title: label mount-point: "/" type: "ext4" flags: () options: #f mount?: #t needed-for-boot?: #f check?: #t create-mount-point?: #f dependencies: () location: ((line . 209) (column . 24) (filename . "gnu/tests.scm"))> (as an aside: maybe would could postpone compilation of test modules until `make check`). I git bisect'd this failure to commit bc499b113a598c0e7863da9887a4133472985713, which added the 'initrd-modules' field to the (@ (gnu system) ) record. The %simple-os from (gnu tests base) seems improperly initialized. In particular, the fields seem to be shifted: scheme@(guile-user)> (@@ (gnu tests base) %simple-os) $1 = #< kernel: # kernel-arguments: () bootloader: #< bootloader: ...> initrd: # initrd-modules: () firmware: "komputilo" host-name: #f hosts-file: () mapped-devices: (#< device: "my-root" ...> #< ...> ...) file-systems: () swap-devices: (#< name: "alice" ...> ...) ... Notice e.g. the "firmware" field has that value that should be in "host-name", which has the value "hosts-file" should have, and "mapped-devices" has the value "file-systems" should have, etc. If you explicitely specify the new "initrd-modules" field this commit added in (@ (gnu tests) %simple-os), then compilation proceeds as expected. -- Eric Bavier, Scientific Libraries, Cray Inc.