bugGuile - Bugs: bug #30170, Auto-compilation erroneously...

 
 

bug #30170: Auto-compilation erroneously recompiles dependencies [1.9.11]

Submitter:  Ludovic Courtès <civodul>
Submitted:  Thu 17 Jun 2010 01:20:27 PM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  civodul
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Fri 18 Jun 2010 02:54:53 PM UTC, comment #1: 

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'.

Ludovic Courtès <civodul>
Group administrator
Thu 17 Jun 2010 01:20:27 PM UTC, original submission:  

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-

Ludovic Courtès <civodul>
Group administrator

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by civodul (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2010-06-20 civodul StatusNone Fixed
        Open/ClosedOpen Closed
    2010-06-20 civodul Assigned toNone civodul

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code