[plt-scheme] Running into syntax->datum error trying to build r6rs code

From: Ryan Newton (rrnewton at gmail.com)
Date: Sun May 4 06:56:24 EDT 2008

I'm using rev 9632 from SVN.

Either using mzscheme directly, or plt-r6rs, I can build a leaf module  
with no dependencies (compat.mzscheme.sls).

However, when I try to build a module that depends on that leaf node,  
I then run into a syntax->datum error like the following:

[Compiling /afs/csail.mit.edu/u/n/newton/WaveScope/code/wavescript/src/ 
  [Compiling /home/newton/wavescript/src/ws/compat/compat.mzscheme.sls]
syntax->datum: expects argument of type <syntax>; given {#<syntax:/afs/ 
904:24> #<syntax:/afs/csail.mit.edu/u/n/newton/WaveScope/code/ 
wavescript/src/ws/globals.sls:904:28> #<syntax:/afs/csail.mit.edu/u/n/ 

Any ideas?

As a side note, this model of installing everything in a collections  
directory took a little getting used to.  Perhaps plt-r6rs should  
simply take a -path argument for the root of the r6rs application  
(like larceny).  The semantics might be the same as adding the path to  

In any case, if I do let PLT use a separate collects directory (rather  
than adding my current directory to PLTCOLLECTS) then I run into  
trouble with "include".  I've used the include macro to break out  
shared pieces from "compat.sls" (which differs across  
implementations).  It seems that PLT's include demands a relative path  
and won't accept an absolute one(?!).  Further, this relative path is  
taken relative to the *collects* directory.  Is there some way to  
leave include's "cursor" in my orignal source directory, rather than  
in the collects directory in which it's installing binaries.


Posted on the users mailing list.