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

From: Tony Garnock-Jones (tonyg at ccs.neu.edu)
Date: Fri Sep 20 12:14:39 EDT 2013

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: 5.90.0.5
expected version: 5.90.0.9
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

Posted on the dev mailing list.