From unknown Wed Jun 18 00:23:13 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#78598 <78598@debbugs.gnu.org> To: bug#78598 <78598@debbugs.gnu.org> Subject: Status: guix build fails when debugging is enabled with --debug Reply-To: bug#78598 <78598@debbugs.gnu.org> Date: Wed, 18 Jun 2025 07:23:13 +0000 retitle 78598 guix build fails when debugging is enabled with --debug reassign 78598 guix submitter 78598 "Owen T. Heisler" severity 78598 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Mon May 26 18:07:48 2025 Received: (at submit) by debbugs.gnu.org; 26 May 2025 22:07:49 +0000 Received: from localhost ([127.0.0.1]:33002 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uJfz2-0007xx-Cj for submit@debbugs.gnu.org; Mon, 26 May 2025 18:07:48 -0400 Received: from lists.gnu.org ([2001:470:142::17]:34940) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1uJfyz-0007xY-OV for submit@debbugs.gnu.org; Mon, 26 May 2025 18:07:46 -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 1uJfyu-0003z5-ET for bug-guix@gnu.org; Mon, 26 May 2025 18:07:40 -0400 Received: from mout-p-202.mailbox.org ([2001:67c:2050:0:465::202]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256) (Exim 4.90_1) (envelope-from ) id 1uJfys-0007dr-Fs for bug-guix@gnu.org; Mon, 26 May 2025 18:07:39 -0400 Received: from smtp102.mailbox.org (smtp102.mailbox.org [IPv6:2001:67c:2050:b231:465::102]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-202.mailbox.org (Postfix) with ESMTPS id 4b5qcw4yrDz9sxG for ; Tue, 27 May 2025 00:07:28 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=owenh.net; s=MBO0001; t=1748297248; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=df7xeVBT8lZo24jDCg+Th10rwjiKKjMyprOoHkDbW90=; b=eEPHOcBuJeXJA/GyjsGVQ8rwmyiSZ4ooqHNv4dbj+aCOVsSBi+12SDAFdoWrS1Q1qqvbKJ Mqd8iGXsEneWWL+2iJb8xVcPZq/cZtMnEPhrv1e0Oqpi7i9+seIa0wrO8DycxcDfsGjwit z8XMiP7+xEOilPWGLSg0cdi3ygMJsrmbDdtGc05+DbvmFgA7/G1InOvmd2kvYTM3/aaI8d vPxw+q4bO1uhLQ/sffRMv5AjafLV/bbCz8USR8rFLPshvuXP0hJ689S0u8vnf0g0cnenpY tiOFGwZfwd9J/MzltfejiItCPVEl8AwIb87aDXDvsxFimHmQorUPNHjovlA+dg== Message-ID: Date: Mon, 26 May 2025 17:07:25 -0500 MIME-Version: 1.0 From: "Owen T. Heisler" Subject: guix build fails when debugging is enabled with --debug To: bug-guix@gnu.org Content-Language: en-US Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 4b5qcw4yrDz9sxG Received-SPF: pass client-ip=2001:67c:2050:0:465::202; envelope-from=writer@owenh.net; helo=mout-p-202.mailbox.org X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 1.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: -0.0 (/) Hello, Most builds fail when debugging is enabled by the calling script. This seems to be related to displaying build progress, so it will *not* fail if the requirements are already available in the store. ```console $ guix describe -f channels-sans-intro (list (channel (name 'guix) (url "https://git.guix.gnu.org/guix.git") (branch "master") (commit "36bd8e176c1befcc4d959fb1662d8c3e3d0e2474"))) $ guix gc -D /gnu/store/*-hello-* $ guix build --debug=1 --file=test.scm --no-substitutes The following derivations will be built: /gnu/store/5rdaqszqa2q3pzz43afqw62qniq8xgkd-profile.drv /gnu/store/14xgk2ym3rls18cw02dhzm7gwz9m834h-system.drv The following profile hook will be built: /gnu/store/fyh5hhk7bf9bywzyda7a7r240lv5zmkd-manual-database.drv building path(s) `/gnu/store/95vcxzqwvnzzn2mlxsn56yjkabnlv1mm-manual-database' | @ build-started /gnu/store/fyh5hhk7bf9bywzyda7a7r240lv5zmkd-manual-database.drv - x86_64-linux /var/log/guix/drvs/fy//h5hhk7bf9bywzyda7a7r240lv5zmkd-manual-database.drv.gz 3774190 Creating manual page database... Backtrace: In ice-9/boot-9.scm: 724:2 19 (call-with-prompt _ _ #) In ice-9/eval.scm: 619:8 18 (_ #(#(#))) In guix/ui.scm: 2352:7 17 (run-guix . _) 2315:10 16 (run-guix-command _ . _) In ice-9/boot-9.scm: 1752:10 15 (with-exception-handler _ _ #:unwind? _ # _) In guix/status.scm: 839:4 14 (call-with-status-report _ _) In ice-9/boot-9.scm: 1752:10 13 (with-exception-handler _ _ #:unwind? _ # _) In guix/store.scm: 690:37 12 (thunk) 1331:8 11 (call-with-build-handler _ _) 1331:8 10 (call-with-build-handler # …) In guix/scripts/build.scm: 915:27 9 (_) In guix/store.scm: 1450:15 8 (_ # _ _) 773:14 7 (process-stderr _ _) In unknown file: 6 (display "@ build-log 3774190 45\n\r[ 1/ 64] building…" …) In guix/status.scm: 779:20 5 (write! _ _ _) In srfi/srfi-1.scm: 460:18 4 (fold # …) In guix/status.scm: 669:15 3 (_ (build-log 3774190 "\r[ 1/ 64] building list of …") #) 180:23 2 (update-build #< building: () downloadin…> …) In ice-9/boot-9.scm: 1685:16 1 (raise-exception _ #:continuable? _) 1685:16 0 (raise-exception _ #:continuable? _) ice-9/boot-9.scm:1685:16: In procedure raise-exception: In procedure struct-vtable: Wrong type argument in position 1 (expecting struct): #f ``` Using the following `test.scm`: ```scm (define-module (test) #:use-module (gnu packages base) #:use-module (gnu bootloader) #:use-module (gnu bootloader grub) #:use-module (gnu system) #:use-module (gnu system file-systems)) (operating-system (bootloader (bootloader-configuration (bootloader grub-bootloader))) (file-systems (cons (file-system (device "/dev/vda1") (mount-point "/") (type "ext4")) %base-file-systems)) (host-name "test") (packages (append (list hello) %base-packages))) ``` Thanks, Owen