Re: [racket] raco exe difficutly with Release 5.3.1 & stateless web server

11 views
Skip to first unread message

Nathaniel Rudavsky-Brody

unread,
Dec 5, 2013, 2:46:57 PM12/5/13
to Racket Users
Hi Zack and everyone,

I'm going back to this old thread (http://lists.racket-lang.org/users/archive/2013-January/056176.html), since I have a similar problem with raco and flomap, and can't tell if anyone found a solution. Are there any new ideas?

(This is my first time using raco, so I might be missing something simple.)

Basically, my application (which requires image/flomap directly) runs fine with Racket, but when I compile it with raco exe and run the executable (on Mac OS 10.6.8) it gives:

link: namespace mismatch;
 reference to a module that is not available
  reference phase: 0
  referenced module: "/Applications/Racket-v5.3.6/collects/images/private/flomap-struct.rkt"
  referenced phase level: 0
  reference in module: '#%embedded:g6575:flomap-stats
  in: flomap?
  context...:
   #%embedded:g6575:flomap-stats: [running body]
   #%embedded:g6473:flomap: [traversing imports]
   #%embedded:g3239:flomap: [traversing imports]
   #%embedded:g2661:main: [traversing imports]
   #%embedded:g2158:etterbeek: [traversing imports]
   #%mzc:local: [traversing imports]
   loop
logout

Many thanks for the help!

Nathaniel

Galler

unread,
Dec 6, 2013, 2:05:47 AM12/6/13
to us...@racket-lang.org
Nathaniel Rudavsky-Brody writes:


> Hi Zack and everyone,
> I'm going back to this old thread
(http://lists.racket-lang.org/users/archive/2013-January/056176.html), since
I have a similar problem with raco and flomap, and can't tell if anyone
found a solution. Are there any new ideas?


Nathaniel,

I don't have a solution, but after 4 hours of troubleshooting, I have a hint.

The problem seems to be in the interaction between file flomap-stats.rkt and
flomap-struct.rkt

SETUP

PROGRAM-A.rkt
---------------

#lang racket
(require images/private/flomap-stats)

---------------

Compile program-A : >raco exe program-A.rkt

Run program-A: >program-A.exe

This will regenerate your error.

Now edit images/private/flomap-stats.rkt as described below (make a copy first)

1. comment out flomap-stats.rkt's require form
2. copy and paste flomap-struct.rkt into flomap-stats
3. comment out flomap-struct.rkt's provide form
4. save your changes
5. re-compile and run program-A

This should run successfully without error


Obviously, this doesn't solve your problem, b/c you need images/flomap vs.
flomap-stats, but maybe you can run with this for a bit.

Maybe look at the module-browser in Dr. Racket for anything that seems
strange in the original flomap-stats dependency tree?

R./
Zack





____________________
Racket Users list:
http://lists.racket-lang.org/users

Galler

unread,
Dec 6, 2013, 2:12:02 AM12/6/13
to us...@racket-lang.org

...
> 3. comment out flomap-struct.rkt's provide form
...

For clarity, that should be in the pasted version of flowmap-struct, not the
original.

Matthew Flatt

unread,
Dec 6, 2013, 2:29:23 PM12/6/13
to Galler, us...@racket-lang.org
I'm able to replicate the problem in v5.3.6, but not the current
development version.

I'm not sure exactly where the problem might have been, but I've fixed
several problems in `raco exe` since v5.3.6, so I'm hopeful that the
problem has been fixed for v6.0.

Does a snapshot from

http://www.cs.utah.edu/plt/snapshots/

work for you?

Nathaniel Rudavsky-Brody

unread,
Dec 6, 2013, 2:47:49 PM12/6/13
to Matthew Flatt, Racket Users, Galler
Many thanks to both of you!

Matthew, the app seems to run fine when it's compiled with 6.0.0.1, so the bug must have been fixed somewhere along the way. It's Friday evening here now, but if everything's still working on Monday I'll consider the case closed.

Best,

Nathaniel
--
--
marginalia.be
0485 / 136 458
Reply all
Reply to author
Forward
0 new messages