unofficial mirror of bug-guile@gnu.org 
 help / color / mirror / Atom feed
From: Mark H Weaver <mhw@netris.org>
To: "Ludovic Courtès" <ludo@gnu.org>, bug-guile@gnu.org
Subject: Re: [bug #33165] `load' uses a wrong relative path
Date: Tue, 26 Apr 2011 11:59:24 -0400	[thread overview]
Message-ID: <87oc3txaub.fsf@netris.org> (raw)
In-Reply-To: <20110426-132016.sv15145.52753@savannah.gnu.org> ("Ludovic Courtès"'s message of "Tue, 26 Apr 2011 13:20:17 +0000")

Ludovic Courtès <INVALID.NOREPLY@gnu.org> writes:
>    ?: 0 [primitive-load-path "home/ludo/src/kanren-book/t/d/a.scm"]
>
> ERROR: In procedure primitive-load-path:
> ERROR: In procedure primitive-load-path: Unable to find file
> "home/ludo/src/kanren-book/t/d/a.scm" in load path

FYI, I'm unable to reproduce this on Guile 2.0.0.215-fb9cf.
Here's what I get:

mhw@freedomincluded:~/guile-test$ mkdir t
mhw@freedomincluded:~/guile-test$ cd t
mhw@freedomincluded:~/guile-test/t$ touch a.scm
mhw@freedomincluded:~/guile-test/t$ mkdir d
mhw@freedomincluded:~/guile-test/t$ echo '(load "a.scm")' > d/b.scm
mhw@freedomincluded:~/guile-test/t$ guile -l a.scm d/b.scm
;;; note: auto-compilation is enabled, set GUILE_AUTO_COMPILE=0
;;;       or pass the --no-auto-compile argument to disable.
;;; compiling /home/mhw/guile-test/t/a.scm
;;; compiled /home/mhw/.cache/guile/ccache/2.0-LE-4-2.0/home/mhw/guile-test/t/a.scm.go
;;; compiling /home/mhw/guile-test/t/d/b.scm
;;; compiled /home/mhw/.cache/guile/ccache/2.0-LE-4-2.0/home/mhw/guile-test/t/d/b.scm.go
Backtrace:
In ice-9/boot-9.scm:
 170: 11 [catch #t #<catch-closure 603da0> ...]
In unknown file:
   ?: 10 [catch-closure]
In ice-9/boot-9.scm:
  62: 9 [call-with-prompt prompt0 ...]
In module/ice-9/eval.scm:
 389: 8 [eval # #]
In ice-9/boot-9.scm:
1918: 7 [save-module-excursion #<procedure 8bd700 at ice-9/boot-9.scm:3341:3 ()>]
3348: 6 [#<procedure 8bd700 at ice-9/boot-9.scm:3341:3 ()>]
In unknown file:
   ?: 5 [load-compiled/vm "/home/mhw/.cache/guile/ccache/2.0-LE-4-2.0/home/mhw/guile-test/t/d/b.scm.go"]
In ice-9/boot-9.scm:
1918: 4 [save-module-excursion #<procedure 928ee0 at ice-9/boot-9.scm:3341:3 ()>]
3348: 3 [#<procedure 928ee0 at ice-9/boot-9.scm:3341:3 ()>]
1190: 2 [%start-stack load-stack #<procedure 926770 at ice-9/boot-9.scm:3337:10 ()>]
1195: 1 [#<procedure 924738 ()>]
In unknown file:
   ?: 0 [primitive-load "/home/mhw/guile-test/t/d/a.scm"]

ERROR: In procedure primitive-load:
ERROR: In procedure open-file: No such file or directory: "/home/mhw/guile-test/t/d/a.scm"

    Best,
     Mark



  reply	other threads:[~2011-04-26 15:59 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-04-26 13:20 [bug #33165] `load' uses a wrong relative path Ludovic Courtès
2011-04-26 15:59 ` Mark H Weaver [this message]
2011-04-29  8:32 ` Andy Wingo
2011-06-17 18:23 ` Andy Wingo
2011-06-18 17:57   ` Ludovic Courtès
2011-06-19 20:16     ` Andy Wingo
2011-06-21 20:51       ` Andy Wingo

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

  List information: https://www.gnu.org/software/guile/

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

  git send-email \
    --in-reply-to=87oc3txaub.fsf@netris.org \
    --to=mhw@netris.org \
    --cc=bug-guile@gnu.org \
    --cc=ludo@gnu.org \
    /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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).