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

 
 

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

Submitted by:  Ludovic Courtès <civodul>
Submitted on:  Thu 17 Jun 2010 01:20:27 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: Ludovic Courtès <civodul>
Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

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>
Project AdministratorIn charge of this item.
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>
Project AdministratorIn charge of this item.

 

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

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun 20 Jun 2010 04:13:08 PM UTCcivodulStatusNone=>Fixed
      Open/ClosedOpen=>Closed
    Sun 20 Jun 2010 02:55:38 PM UTCcivodulAssigned toNone=>civodul

    Back to the top


    Powered by Savane 3.1-cleanup1