From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id WP/IAgo1QWQ5MgAASxT56A (envelope-from ) for ; Thu, 20 Apr 2023 14:50:18 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id mNHGAQo1QWTZbAEAG6o9tA (envelope-from ) for ; Thu, 20 Apr 2023 14:50:18 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 964CC21785 for ; Thu, 20 Apr 2023 14:50:17 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ppTje-0003SZ-Ou; Thu, 20 Apr 2023 08:50:03 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ppTjL-0003Qy-0g for help-guix@gnu.org; Thu, 20 Apr 2023 08:49:44 -0400 Received: from mail-qk1-x72e.google.com ([2607:f8b0:4864:20::72e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ppTjI-0001qN-Mf for help-guix@gnu.org; Thu, 20 Apr 2023 08:49:42 -0400 Received: by mail-qk1-x72e.google.com with SMTP id af79cd13be357-74e076b66f7so32727985a.3 for ; Thu, 20 Apr 2023 05:49:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1681994979; x=1684586979; h=content-transfer-encoding:mime-version:user-agent:message-id :in-reply-to:date:references:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to; bh=PT33JeVtoSw3o6Fk3CqlygQk9VmTWawnBuBenoaZ5Ao=; b=mAZE98T1Os8ZG7YXF0KUQvwhYY38cGGXTqmtazLKFQAFgyN4lAqDLzq5EMprA0eMHs j0XYIZgHpLPYXJD2/FP8xZRz1WCXvSnukt2CDuA4G2ZAi4hAynNzrddYwfZhyz7SLHgn zgaPWDfko0d2mT3fBuhlObL8hkjZ8tFxfx2OrP7eR+L5qedW/e7p2bmHlWtVphQdgf+y Nk8kYKFmH4eoGpq+duje0VjLXlHtBO1Oe5ieEsN7mQQvsJ1d8V9dlw3ffyhwn+ld25eA FBHWtek+w5nKIb6Hbvit2tm9J5D+8eusL8jPVWQaLgzDx+XOH1MD74KS2Bm5Ajh5mBd6 BMfA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681994979; x=1684586979; h=content-transfer-encoding:mime-version:user-agent:message-id :in-reply-to:date:references:subject:cc:to:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=PT33JeVtoSw3o6Fk3CqlygQk9VmTWawnBuBenoaZ5Ao=; b=W6RhOcJsuBYNRYFrjS1JBn5PBrd9ZtsgbIwCH5gi7RE2FJdM6u39/C1SYMdr5eMQUE SK4gf6LAH1uAHkikkXLozrExOuB9RhNjludrBs1ArAn/jtORodvfZXbpqqpjGrvllEA/ 6/PO3PTnpOBpTqz/W1AEfu0KPIBbjV778fjH54Qbj05fX6meNgO95tChl+p4X5/cgQ+b FVaiHZHmOFFlMJdPQizgq4mlZ+SORVC6lRZwxTzbZKOBpZmcVqJO0UJswT1Tljogq9Tt wy3aY6eMgDOcyCb0CXBF19AEvJVbXCkNoOAxx7QuxmIZjDCzbTedn0QagBulCptPHiT8 yM6A== X-Gm-Message-State: AAQBX9fKdcLQ6JTj79tn9NevhddFZLDgL8AZUvvs96K0stARKJTOkm7j MN1G+Zb8fQMeAR9QDi1B17bKBcos43c= X-Google-Smtp-Source: AKy350YQxkpz8NZMj3SKEEILxqEqapXhhGcDYEe+JfcVuwG9mNc9pE4wX4Jackmh7xKbFl9om71qlQ== X-Received: by 2002:a05:6214:3001:b0:5ef:4de6:c4f4 with SMTP id ke1-20020a056214300100b005ef4de6c4f4mr1274961qvb.15.1681994979338; Thu, 20 Apr 2023 05:49:39 -0700 (PDT) Received: from hurd (dsl-155-56.b2b2c.ca. [66.158.155.56]) by smtp.gmail.com with ESMTPSA id b8-20020a05620a0f8800b0074c438db55asm401036qkn.74.2023.04.20.05.49.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 20 Apr 2023 05:49:38 -0700 (PDT) From: Maxim Cournoyer To: Saku Laesvuori Cc: help-guix@gnu.org Subject: Re: Error building with guix system image References: <20230419105129.p4pm2qkb6ldcmde4@X-kone> Date: Thu, 20 Apr 2023 08:49:37 -0400 In-Reply-To: <20230419105129.p4pm2qkb6ldcmde4@X-kone> (Saku Laesvuori's message of "Wed, 19 Apr 2023 13:51:29 +0300") Message-ID: <87y1mmyazi.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2607:f8b0:4864:20::72e; envelope-from=maxim.cournoyer@gmail.com; helo=mail-qk1-x72e.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, PDS_BTC_ID=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: help-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1681995017; a=rsa-sha256; cv=none; b=KkbQRrpRjSzYB+pE5MVprinfvjGOUgwxF/WXWRqkmj0qiBkWUrvf3UMh6J3OUGDEmAaOYH WB9Ud/nMuTKi1tZkVuYjepK8wCsbWA8HrKtG7Dk1Zsn7aaEX3mq1a5TVDNN7uPuSpBfupY Xd9NwBFTHvIsC2GVboMH2byPCft1/2oA2wmK5R4Fv/71yvq3NqPsSN3f2z3t+bNeFbPpjH TzKw29T+8q7+kYRdbOjdvrpDxVCUOGviGiIs0EZTN/5zkFX3bXIeZgECeTLbuqVvX5qrBU aXNqzkSyUjwruhZOuBTN8WJPVA0n00F9Nlf+T5HglRq4cEmraoQiZgZa3T1xdQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=mAZE98T1; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1681995017; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=PT33JeVtoSw3o6Fk3CqlygQk9VmTWawnBuBenoaZ5Ao=; b=gwe0iicDXmNhn6g+Z1SoKFVitSun60zkRNiNDdSMn/MQM8oE/7vghSRv+HMgwdLagj+NEy xs6/JT7uktZMK+K4g2yrdtvQcCn9xjIobaFqtmq+WtUT4ukMck5gaeQYhKLb28R6jWdcNG 6U7bsXTuoPu6USYFr6U6/BF3LRGei1RRDY0l75psxGlg7Ga3TwYdcnrnPCaRMmd3K1dLxB DpCTnYdk7jJ+1I3GhiFCKDsRRiDsaffaOWmsL4aqD/dBQwEEOupNIyExjjBu57Kbr6chNl lA3nt/Xy6Rnpvd0ohtgJHn7Fy7Orf6aJgmxsyDbAQcrAyI0cUpEDkZ0XsBnNMw== X-Migadu-Scanner: scn1.migadu.com X-Migadu-Spam-Score: -4.95 X-Spam-Score: -4.95 X-Migadu-Queue-Id: 964CC21785 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=mAZE98T1; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-TUID: ibL27HxxhBpl Hello, Saku Laesvuori writes: > Running `guix system image image-minimal.scm` fails with the following > build log: > > ```build log for partition.img.drv > copying 340 store items | [progress bar animation] > registering 337 items | [progress bar animation, fails before end] > Backtrace: > In ice-9/eval.scm: > 619:8 19 (_ #(# # =E2=80=A6)) > In ./gnu/build/image.scm: > 236:4 18 (initialize-root-partition "tmp-root" #:bootcfg _ # _ # =E2= =80=A6) > In ice-9/boot-9.scm: > 260:13 17 (for-each # =E2=80=A6) > In ./gnu/build/image.scm: > 167:6 16 (register-closure "tmp-root" "system" #:schema _ # _) > In ./guix/store/database.scm: > 111:20 15 (call-with-database "tmp-root/var/guix/db/db.sqlite" # # =E2= =80=A6) > In ./guix/progress.scm: > 71:36 14 (call-with-progress-reporter #< sta=E2=80= =A6> =E2=80=A6) > In srfi/srfi-1.scm: > 634:9 13 (for-each # =E2=80=A6) > In ./guix/store/database.scm: > 420:36 12 (_ #< item: "/gnu/store/8z1q7vjxylm6l4ibsyw=E2= =80=A6>) > In ./guix/store/deduplication.scm: > 42:4 11 (nar-sha256 "tmp-root/gnu/store/8z1q7vjxylm6l4ibsywd4h6=E2= =80=A6") > In ./guix/serialization.scm: > 381:9 10 (dump "tmp-root/gnu/store/8z1q7vjxylm6l4ibsywd4h6m6jv6z=E2= =80=A6") > In srfi/srfi-1.scm: > 634:9 9 (for-each # =E2=80=A6) > In ./guix/serialization.scm: > 386:23 8 (_ "share") > 381:9 7 (dump "tmp-root/gnu/store/8z1q7vjxylm6l4ibsywd4h6m6jv6z=E2= =80=A6") > In srfi/srfi-1.scm: > 634:9 6 (for-each # =E2=80=A6) > In ./guix/serialization.scm: > 386:23 5 (_ "locale") > 381:9 4 (dump "tmp-root/gnu/store/8z1q7vjxylm6l4ibsywd4h6m6jv6z=E2= =80=A6") > In srfi/srfi-1.scm: > 634:9 3 (for-each # =E2=80=A6) > In ./guix/serialization.scm: > 386:23 2 (_ "ja") > 380:43 1 (dump "tmp-root/gnu/store/8z1q7vjxylm6l4ibsywd4h6m6jv6z=E2= =80=A6") > In srfi/srfi-1.scm: > 691:29 0 (filter-map # =E2=80=A6) > > srfi/srfi-1.scm:691:29: In procedure filter-map: > In procedure car: Wrong type argument in position 1 (expecting pair): #f > environment variable `PATH' set to `/gnu/store/zfiwdkwfs039q346nkynvhllxb= ra2rg8-e2fsprogs-1.46.4/bin:/gnu/store/zfiwdkwfs039q346nkynvhllxbra2rg8-e2f= sprogs-1.46.4/sbin:/gnu/store/nj43wfbldxrwfmrk9vgvliz28iyl89dp-fakeroot-1.3= 0.1/bin:/gnu/store/lpkpldxni8vab82kwq9qs032hni580ak-dosfstools-4.2/sbin:/gn= u/store/131xfb6iz9vh7c8s7kv6nhvycrqcfad8-mtools-4.0.42/bin' > ``` > > Does anyone have any pointers on how to debug or fix this? The operating > system builds nicely with `guix system vm`. Building > `gnu/system/examples/bare-bones.tmpl` with `guix system image` also > fails with a similar error and works correctly with `guix system vm`. > > > ```image-minimal.scm > (use-modules > (gnu) > (gnu system image)) > > (define %operating-system > (operating-system > (host-name "image-test") > (bootloader (bootloader-configuration > (bootloader grub-bootloader) > (targets '("/dev/sdX")))) > (file-systems (cons* > (file-system > (mount-point "/") > (device "/dev/sdX1") > (type "ext4")) > %base-file-systems)))) Do you correctly substitute /dev/sdX for your real device name (e.g., /dev/sda) ? It should print a nice error when it doesn't exist, I think, but perhaps it regressed. 'guix system vm' overrides the root file system, so wouldn't complain about a problem in your root file system definition. --=20 Thanks, Maxim