* [bug #30170] Auto-compilation erroneously recompiles dependencies [1.9.11]
@ 2010-06-17 13:20 Ludovic Courtès
2010-06-18 8:33 ` Andy Wingo
2010-06-18 14:54 ` Ludovic Courtès
0 siblings, 2 replies; 6+ messages in thread
From: Ludovic Courtès @ 2010-06-17 13:20 UTC (permalink / raw)
To: Ludovic Courtès, bug-guile
URL:
<http://savannah.gnu.org/bugs/?30170>
Summary: Auto-compilation erroneously recompiles
dependencies [1.9.11]
Project: Guile
Submitted by: civodul
Submitted on: Thu 17 Jun 2010 01:20:27 PM GMT
Category: None
Severity: 3 - Normal
Item Group: None
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
_______________________________________________________
Details:
In this example, `foo.scm' should be auto-compiled only the first time, but
it gets recompiled each time:
#v+
$ touch foo.scm bar.scm
$ cat foo.scm
(define-module (foo))
$ cat bar.scm
(use-modules (foo))
(display "hello!\n")
$ guile -L . bar.scm
;;; note: source file bar.scm
;;; newer than compiled
/home/ludo/.cache/guile/ccache/2.0-0.R-LE-8/home/ludo/src/guile/bar.scm.go
;;; note: autocompilation is enabled, set GUILE_AUTO_COMPILE=0
;;; or pass the --no-autocompile argument to disable.
;;; compiling bar.scm
;;; compiling ./foo.scm
;;; compiled
/home/ludo/.cache/guile/ccache/2.0-0.R-LE-8/home/ludo/src/guile/foo.scm.go
;;; compiled
/home/ludo/.cache/guile/ccache/2.0-0.R-LE-8/home/ludo/src/guile/bar.scm.go
hello!
$ guile -L . bar.scm
;;; note: autocompilation is enabled, set GUILE_AUTO_COMPILE=0
;;; or pass the --no-autocompile argument to disable.
;;; compiling ./foo.scm
;;; compiled
/home/ludo/.cache/guile/ccache/2.0-0.R-LE-8/home/ludo/src/guile/foo.scm.go
hello!
$ guile -L . bar.scm
;;; note: autocompilation is enabled, set GUILE_AUTO_COMPILE=0
;;; or pass the --no-autocompile argument to disable.
;;; compiling ./foo.scm
;;; compiled
/home/ludo/.cache/guile/ccache/2.0-0.R-LE-8/home/ludo/src/guile/foo.scm.go
hello!
#v-
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?30170>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [bug #30170] Auto-compilation erroneously recompiles dependencies [1.9.11]
2010-06-17 13:20 [bug #30170] Auto-compilation erroneously recompiles dependencies [1.9.11] Ludovic Courtès
@ 2010-06-18 8:33 ` Andy Wingo
2010-06-18 14:54 ` Ludovic Courtès
1 sibling, 0 replies; 6+ messages in thread
From: Andy Wingo @ 2010-06-18 8:33 UTC (permalink / raw)
To: Ludovic Courtès, bug-guile
On Thu 17 Jun 2010 15:20, Ludovic Courtès <INVALID.NOREPLY@gnu.org> writes:
> $ guile -L . bar.scm
> ;;; note: autocompilation is enabled, set GUILE_AUTO_COMPILE=0
> ;;; or pass the --no-autocompile argument to disable.
> ;;; compiling ./foo.scm
> ;;; compiled
> /home/ludo/.cache/guile/ccache/2.0-0.R-LE-8/home/ludo/src/guile/foo.scm.go
> hello!
Is it because of "."? What if you replaced "." with `pwd` ?
Andy
--
http://wingolog.org/
^ permalink raw reply [flat|nested] 6+ messages in thread
* [bug #30170] Auto-compilation erroneously recompiles dependencies [1.9.11]
2010-06-17 13:20 [bug #30170] Auto-compilation erroneously recompiles dependencies [1.9.11] Ludovic Courtès
2010-06-18 8:33 ` Andy Wingo
@ 2010-06-18 14:54 ` Ludovic Courtès
2010-06-18 17:05 ` Andy Wingo
2010-06-20 14:55 ` Ludovic Courtès
1 sibling, 2 replies; 6+ messages in thread
From: Ludovic Courtès @ 2010-06-18 14:54 UTC (permalink / raw)
To: Ludovic Courtès, bug-guile
Follow-up Comment #1, bug #30170 (project guile):
Andy> Is it because of "."? What if you replaced "." with `pwd` ?
Indeed, that solves the problem:
#v+
$ guile -L $PWD bar.scm
;;; note: source file bar.scm
;;; newer than compiled
/home/ludo/.cache/guile/ccache/2.0-0.R-LE-8/home/ludo/src/guile/bar.scm.go
;;; note: autocompilation is enabled, set GUILE_AUTO_COMPILE=0
;;; or pass the --no-autocompile argument to disable.
;;; compiling bar.scm
;;; note: source file /home/ludo/src/guile/foo.scm
;;; newer than compiled
/home/ludo/.cache/guile/ccache/2.0-0.R-LE-8/home/ludo/src/guile/foo.scm.go
;;; compiling /home/ludo/src/guile/foo.scm
;;; compiled
/home/ludo/.cache/guile/ccache/2.0-0.R-LE-8/home/ludo/src/guile/foo.scm.go
;;; compiled
/home/ludo/.cache/guile/ccache/2.0-0.R-LE-8/home/ludo/src/guile/bar.scm.go
hello!
$ guile -L $PWD bar.scm
hello!
#v-
Missing a `canonicalize-path'?
Ludo'.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?30170>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2010-06-20 16:13 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-06-17 13:20 [bug #30170] Auto-compilation erroneously recompiles dependencies [1.9.11] Ludovic Courtès
2010-06-18 8:33 ` Andy Wingo
2010-06-18 14:54 ` Ludovic Courtès
2010-06-18 17:05 ` Andy Wingo
2010-06-20 14:55 ` Ludovic Courtès
2010-06-20 16:13 ` Ludovic Courtès
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).