all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Olivier Dion via <gwl-devel@gnu.org>
To: Ricardo Wurmus <rekado@elephly.net>
Cc: gwl-devel@gnu.org
Subject: Re: Guile code snippet
Date: Thu, 21 Apr 2022 16:08:49 -0400	[thread overview]
Message-ID: <87pmlaurla.fsf@laura> (raw)
In-Reply-To: <87ee1qs3qf.fsf@elephly.net>

On Thu, 21 Apr 2022, Ricardo Wurmus <rekado@elephly.net> wrote:
>>> This is now fixed with commit
>>> dceec9ecb9e24252ab9130f7a3626c00b2ff1a68.

I tried this:
--8<---------------cut here---------------start------------->8---
process foo
  packages "guile" "guile-fibers"
  # /bin/guile {
    (use-modules (fibers))
  }

workflow bar
  processes foo
--8<---------------cut here---------------end--------------->8---

and got:
#v+
info: .07 Loading workflow file `test.w'...
info: .75 Computing workflow `bar'...
run: 1.35 Executing: /bin/sh -c /gnu/store/4a49gb4b2ha7hms9jddkzf0d4hj5wqj5-gwl-foo.scm '((inputs) (outputs) (values) (name . "foo"))'
;;; Stat of /home/old/softwares/gwl/ (use-modules (fibers))  failed:
;;; In procedure stat: No such file or directory: "/home/old/softwares/gwl/ (use-modules (fibers)) "
Backtrace:
           0 (primitive-load "/home/old/softwares/gwl/ (use-modules ?")

ERROR: In procedure primitive-load:
In procedure open-file: No such file or directory:
"/home/old/softwares/gwl/ (use-modules (fibers)) "
#v-

seems like the interpreter is trying to stat the concatenation of
/bin/guile and the code.

Also tried this:
--8<---------------cut here---------------start------------->8---
process foo
  packages "guile" "guile-fibers"
  procedure
    . `(begin
        (use-modules (fibers)))


workflow bar
  processes foo
--8<---------------cut here---------------end--------------->8---

and got:
#v+
info: .08 Loading workflow file `test.w'...
info: .75 Computing workflow `bar'...
run: 1.35 Executing: /bin/sh -c /gnu/store/fp7fi4ksr16mlgwncdl38w9nw5a9kn15-gwl-foo.scm '((inputs) (outputs) (values) (name . "foo"))'
Backtrace:
           5 (primitive-load "/gnu/store/fp7fi4ksr16mlgwncdl38w9nw5a?")
In ice-9/eval.scm:
    619:8  4 (_ #(#(#(#(#(#(#(#<directory (guil?> ?) ?) ?) ?) ?) ?) ?))
In ice-9/boot-9.scm:
  3935:20  3 (process-use-modules _)
   222:17  2 (map1 (((fibers))))
  3936:31  1 (_ ((fibers)))
   3330:6  0 (resolve-interface (fibers) #:select _ #:hide _ #:prefix ?)

ice-9/boot-9.scm:3330:6: In procedure resolve-interface:
no code for module (fibers)
error: 1.39 process `foo' failed with return value 1.
#v-

Looks like GUILE_LOAD_PATH is not set.

-- 
Olivier Dion
oldiob.dev


  reply	other threads:[~2022-04-21 20:09 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-04-20  3:37 Guile code snippet Olivier Dion via
2022-04-20  9:47 ` Ricardo Wurmus
2022-04-20 16:13   ` Olivier Dion via
2022-04-20 16:26     ` Ricardo Wurmus
2022-04-20 16:35       ` Olivier Dion via
2022-04-20 21:21     ` Ricardo Wurmus
2022-04-21 16:30       ` Olivier Dion via
2022-04-21 18:14         ` Ricardo Wurmus
2022-04-21 20:08           ` Olivier Dion via [this message]
2022-04-21 20:46             ` Ricardo Wurmus
2022-04-21 22:02               ` Olivier Dion via

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87pmlaurla.fsf@laura \
    --to=gwl-devel@gnu.org \
    --cc=olivier.dion@polymtl.ca \
    --cc=rekado@elephly.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.