From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id kP2HCPS7i2TcOQEASxT56A (envelope-from ) for ; Fri, 16 Jun 2023 03:33:40 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id 0C2aCPS7i2RtRwEAauVa8A (envelope-from ) for ; Fri, 16 Jun 2023 03:33:40 +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 BA9EF40AA9 for ; Fri, 16 Jun 2023 03:33:39 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q9yKm-00041N-LQ; Thu, 15 Jun 2023 21:33:04 -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 1q9yKk-00041F-Ne for bug-guix@gnu.org; Thu, 15 Jun 2023 21:33:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1q9yKk-0000G3-Fk for bug-guix@gnu.org; Thu, 15 Jun 2023 21:33:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1q9yKj-0000TR-SG for bug-guix@gnu.org; Thu, 15 Jun 2023 21:33:01 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#64090: Cannot compute a file with a G-exp Resent-From: Robby Zambito Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Fri, 16 Jun 2023 01:33:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 64090 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 64090@debbugs.gnu.org X-Debbugs-Original-To: bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16868791441776 (code B ref -1); Fri, 16 Jun 2023 01:33:01 +0000 Received: (at submit) by debbugs.gnu.org; 16 Jun 2023 01:32:24 +0000 Received: from localhost ([127.0.0.1]:48240 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q9yK8-0000SZ-9v for submit@debbugs.gnu.org; Thu, 15 Jun 2023 21:32:24 -0400 Received: from lists.gnu.org ([209.51.188.17]:47154) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q9yK6-0000SS-Le for submit@debbugs.gnu.org; Thu, 15 Jun 2023 21:32:23 -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 1q9yK6-0003yC-F9 for bug-guix@gnu.org; Thu, 15 Jun 2023 21:32:22 -0400 Received: from relay6-d.mail.gandi.net ([217.70.183.198]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q9yK1-00007J-7o for bug-guix@gnu.org; Thu, 15 Jun 2023 21:32:22 -0400 X-GND-Sasl: contact@robbyzambito.me Received: by mail.gandi.net (Postfix) with ESMTPSA id 2D585C0006 for ; Fri, 16 Jun 2023 01:32:11 +0000 (UTC) User-agent: mu4e 1.10.2; emacs 28.2 From: Robby Zambito Date: Thu, 15 Jun 2023 21:17:47 -0400 Message-ID: <87v8fogpk8.fsf@robbyzambito.me> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=217.70.183.198; envelope-from=contact@robbyzambito.me; helo=relay6-d.mail.gandi.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-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: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: bug-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1686879220; h=from:from:sender:sender: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:resent-cc: resent-from:resent-sender:resent-message-id:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=sBsxh4WIWmj3E9miYvEWbUUeTglggUDMiL2oTVK8zME=; b=EacfFVVrj05hlskJMcCGjTleOMuc7KjqOs8srv+LqzT4zfDFF8OX2rzbxg/h9Xw5F4ybGT D3O+DX9SdaS7Z700y13C9HDidiOxkCajglr5sjBN/rXGkv1kcLETKLkfEULAFnhU6DBaOj HPktX50lRqD1Hz2UhuuYOJjedpNCXCZzH1L6DhkVKwkf2czweB/ThZgb55WunIZgIKMWYB mI9zXHrfrlrGqgN0yT0gjWPg+dFGLrFnYR++YRnEXkoVEoVf6znI9Jjxlss5UOERA4apZV sOq+NH+L//l7kVyy26RPw9Bf7FT562WAKaziOq+d2zCt8Hlg9RtaG1sYjjXTJg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1686879220; a=rsa-sha256; cv=none; b=onj2Uq++5eWwlbPkB2yUbe7GQfL3G9vYnYJwdRn5wr/df8aZVQ3uuifdFdw/YqavGarpMB dK3RQsXoH7V0SufROyvs8i0tNJjJZLEOC4yGDL+LekNgLmuJ9hxTwFYnXxY/2hWRi8Qeue QKwCg5fvmO9NDFlgvtIsyLXENnx7kcvBysvxEr6ZR72mTQZnrBA7USwFncit+CRRgt16s7 G2p8H+5lvUArlfISZ/1Sx/iGuWu3nJP8lF4H3PkglfLDkVHg7+C6UUqdXEjNvBFKzit4hR qjC9BASekH667l6gloBdAYcyLEDKVgNeeZaeJt3w4ukfxz5/X5SpdBQq/8XxaA== X-Migadu-Scanner: scn1.migadu.com X-Migadu-Spam-Score: -2.03 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: BA9EF40AA9 X-Spam-Score: -2.03 X-TUID: 27YWazwgqVOY Hi, I seem to be having two issues with writing a G-exp that computes a file. The first issue I ran into is that source-module-closure returns null no matter what modules I give it. ``` scheme@(guile-user)> (source-module-closure '((ice-9 popen) (ice-9 atomic) = (ini) (json))) $8 =3D () ``` This seems to be a bug to me. I found that I could get a partial list of dependencies using source-module-dependencies, which seems to only include the direct dependencies. So in my G-exp that I want to have depend on (ini), I used: ``` (with-imported-modules (source-module-dependencies '(ini))) ``` and then slowly worked on rebuilding over and over again, adding each dependency as it was reported as missing. Now that I have a seemingly correct (as far as the dependencies are concerned) expression, I have run into another issue. ``` scheme@(guile-user)> ;; Assumes a file exists at wofi/style.css scheme@(guile-user)> (define rz/terminal-emulator "foot") scheme@(guile-user)> (import (guix gexp) (guix modules) (guix)) scheme@(guile-user)> ,build (computed-file "config" (with-imported-modules (append (source-module-dependencies '(ini)) '((ini) (scheme documentation) (smc core common) (smc context common) (smc context u8) (smc context char) (smc core config) (smc core log) (logging logger) (smc core state) (smc core transition) (smc context oop generic) (smc context oop port) (smc context oop char) (smc context oop u8) (smc fsm) (smc core set))) #~(begin (import (ini)) (plain-file #$output (with-output-to-string (lambda () (scm->ini '((#f ("stylesheet" . #$(local-file "wofi/style.css")) ("xoffset" . 0) ("yoffset" . 0) ("hide_scroll" . "true") ("show" . "drun") ("width" . "600px") ("lines" . 10) ("line_wrap" . "word") ("term" . #$rz/terminal-emulator) ("allow_markup" . "true") ("always_parse_args" . "true") ("show_all" . "true") ("print_command" . "true") ("layer" . "overlay") ("allow_images" . "true") ("insensitivity" . "true") ("prompt" . "Hey, you should type something!") ("image_size" . 25) ("display_generic" . "true") ("key_expand" . "Tab")))))))))) warning: importing modules (ice-9 receive) (ice-9 pretty-print) (ice-9 text= ual-ports) from the host building /gnu/store/icvbvnjdiykc7lsraz16j1hsydfg77ld-module-import-compiled= .drv... 18% =E2=96=95=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96= =88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88= =E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2= =96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96= =88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88= =E2=96=8B = = =E2=96=8FWhile executing meta-c= ommand: User interrupt ``` At this point, if I do not interrupt the process, it will eat up all of my systems memory and crash. Building my config with this provides some more information: ``` The following derivations will be built: /gnu/store/a86dcbp4nckf40g7h7abw02viqn9aags-home.drv /gnu/store/1mr2bjmbjwqd0qg4zbhpiajbqz8ljxvm-files.drv /gnu/store/5rsbwalrkvd09gq554gc0dclc65vmyhj-wofi-config.drv /gnu/store/icvbvnjdiykc7lsraz16j1hsydfg77ld-module-import-compiled.drv /gnu/store/gn8jpf439qskxai3vyph8zv1p7ygsrsh-provenance.drv building /gnu/store/gn8jpf439qskxai3vyph8zv1p7ygsrsh-provenance.drv... successfully built /gnu/store/gn8jpf439qskxai3vyph8zv1p7ygsrsh-provenance.d= rv building /gnu/store/icvbvnjdiykc7lsraz16j1hsydfg77ld-module-import-compiled= .drv... [ 1/50] Loading './ice-9/pretty-print.scm'... [ 2/50] Loading './ice-9/receive.scm'... [ 3/50] Loading './ice-9/textual-ports.scm'... [ 4/50] Loading './ini/fsm-context-ini.scm'... [ 5/50] Loading './ini/fsm-context.scm'... [ 6/50] Loading './ini/fsm.scm'... [ 7/50] Loading './ini.scm'... [ 8/50] Loading './logging/logger.scm'... [ 9/50] Loading './oop/goops.scm'... interrupt ``` It hangs on importing `./oop/goops.scm`. Regards, Robby