Lisp HUG Maillist Archive

compile-system bug?

I have a file that I use to load some tests, etc. Here are some lines from 
the top of the file:

        (load "engine-defsys.lisp")

        (compile-system 'engine)
        (load-system 'engine)

I've often noticed that when I load this file I'm warned that fasl files 
are out of date. But, um, if they are, why doesn't compile-system compile 
them...?

So: when I compile-system from the listener out-of-date files are *always* 
compiled, but when I use the same command in a file which is loaded 
they're usually *but not always* compiled. Is there some reason behaviour 
would be different in the two environments? Is this a LispWorks bug, a doc 
bug, or a user bug?


Re: compile-system bug?

Unable to parse email body. Email id is 2207

Re: compile-system bug?

davef@xanalys.com wrote on 04/14/2004 10:51:34 AM:

> I can't think of anything that would make this difference. How
> reproducible is it?

It happens from time to time--as a wild guess, perhaps once every four or 
five times I load the test file.

> You could investigate further by tracing FILE-WRITE-DATE to see if
> that's returning unexpected results inside COMPILE-SYSTEM.

Ok. 

Btw, it's almost as though load-sytem sees the difference but 
compile-system doesn't; load-system always reliably reports that one or 
more files is out of date. That's how I know there's a problem, and then I 
just run compile-system from the listener which seems to always work.

> Hard to say without a full report. As well as the bug-form, your
> system definition and the output from both the from-file and
> from-listener cases, it would be useful to know whether the files are
> all local.

Ok.


Re: compile-system bug?

Hello MichaelL@frogware.com,

| I have a file that I use to load some tests, etc. Here are some lines
| from the top of the file:
| 
|         (load "engine-defsys.lisp")
| 
|         (compile-system 'engine)
|         (load-system 'engine)
| 
| I've often noticed that when I load this file I'm warned that fasl
| files are out of date. But, um, if they are, why doesn't compile-system
| compile them...?
| 
| So: when I compile-system from the listener out-of-date files are
| *always* compiled, but when I use the same command in a file which is
| loaded they're usually *but not always* compiled. Is there some reason 
| behaviour would be different in the two environments? Is this a
| LispWorks bug, a doc bug, or a user bug?

I've never encountered. What about
    (compile-system 'engine :load t) ?
--
Sincerely,
Dmitri Ivanov
lisp.ystok.ru



Updated at: 2020-12-10 08:57 UTC