[racket-dev] Recompiling on "wrong version for compiled code"

From: Gustavo Massaccesi (gustavo at oma.org.ar)
Date: Sat Sep 28 20:39:24 EDT 2013

I submitted a similar question a few months ago.

I was using a redefined current-load/use-compiled to delete the old
files, I'm not sure that the code handles all the cases properly, and
that it doesn't delete any source file.

Robby Findler sugested to use 'raco link' to create a collection with
all my personal files, and after the upgrade use 'raco setup' to
recompile all the files. I'm using this solution/workaround.


On Fri, Sep 20, 2013 at 1:14 PM, Tony Garnock-Jones <tonyg at ccs.neu.edu> wrote:
> Hi all,
> Is there some reason the compiler can't either (a) ignore or (b) replace
> the outdated .zos when it comes across a situation like the following?
> compiled/html-utils_rkt.zo::0: read (compiled): wrong version for
> compiled code
> compiled version:
> expected version:
> context...:
>  standard-module-name-resolver
>  standard-module-name-resolver
>  standard-module-name-resolver
> I just ran into this issue with a webservice I run: I had updated Racket
> but forgotten to blow away the compiled .zos of the webservice, so when
> I restarted the service, it repeatedly failed until I went and deleted
> the .zos by hand.
> Tony
> _________________________
>   Racket Developers list:
>   http://lists.racket-lang.org/dev

Posted on the dev mailing list.