GNU bug report logs - #64090
Cannot compute a file with a G-exp

Previous Next

Package: guix;

Reported by: Robby Zambito <contact <at> robbyzambito.me>

Date: Fri, 16 Jun 2023 01:33:01 UTC

Severity: normal

Full log


View this message in rfc822 format

From: "(" <paren <at> disroot.org>
To: Robby Zambito <contact <at> robbyzambito.me>
Cc: 64090 <at> debbugs.gnu.org
Subject: bug#64090: Cannot compute a file with a G-exp
Date: Sat, 17 Jun 2023 08:51:38 +0100
Hi!

Robby Zambito <contact <at> robbyzambito.me> writes:
> scheme@(guile-user)> (source-module-closure '((ice-9 popen) (ice-9 atomic) (ini) (json)))
> $8 = ()

SOURCE-MODULE-CLOSURE only works for modules provided by Guix or Guix
channels ;) Modules included in Guile don't need it at all, and for
modules provided by third-party Guile libraries like guile-ini or
guile-json, you need to use WITH-EXTENSIONS:

  (use-modules (gnu packages guile-xyz))

  (with-extensions (list guile-ini guile-json) GEXP)

> 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:

No, it includes the entire dependency tree, but filters out any modules
that don't come from Guix or Guix channels.

> 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:

I suspect this will be fixed if you follow what I've said above.

  -- (




This bug report was last modified 284 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.