[CM] fun with CM + Linux

Rick Taube taube@uiuc.edu
Fri, 6 Dec 2002 15:18:16 -0800


if you dont save a cm image then you have to set the package and the read
table by hand:

(in-package :cm)
(setf *readtable* *cm-readtable*)

that should do it. of course you will also have to load your cminit.lisp by
hand if you want that active as well.

(load "/whatever/cminit.lisp")

but you should track down what the problem is in the saved imag,. im sure
its fixable somehow-- maybe the cmu man page will say something useful

----- Original Message -----
From: "Dave Phillips" <dlphilp@bright.net>
To: "Rick Taube" <taube@uiuc.edu>
Sent: Friday, December 06, 2002 1:14 PM
Subject: Re: [CM] fun with CM + Linux


> Rick Taube wrote:
>
> > my guess is that this has nothing to do with cm directly. it may have
> > sometig to do with saved images.  you can disable the save in cm.lisp by
> > commenting this out at the end of src/cm.lisp:
> >
> > (apply (find-symbol (string 'save-cm) :cm)
> >                cm-bin-directory
> >                args)
> >
> > then load cm.lisp and when its done do
> > (in-package :cm)
> > (start-snd)
> >
> > and see if you can start-snd relaiably several times. if then the
priblem is
> > with the image saving or its heap size or....
>
> This seems to help. I started and restarted Snd a number of times, it
> seems to like things when I just load CLM, CMN, and finally CM. However,
> of course a new problem creeps in. When I try running my cmn-test file I
> get this error again:
>
>
> * (load "/home/dlphilp/CCRMA/clm-2/all.lisp")
> * [snip]
> * (load "/home/dlphilp/CCRMA/cmn/cmn-all.lisp")
> * [snip]
> * (load "/home/dlphilp/CCRMA/cm-2.4.0/src/cm.lisp")
> * [snip]
>
> * (in-package :cm)
> #<The CM package, 2142/3150 internal, 0/2 external>
> * (start-snd)
> T
>
> * (compile-file "/home/dlphilp/CCRMA/cm-2.4.0/etc/examples/cmn-test.cm")
>
> Python version 1.0, VM version Intel x86 on 06 DEC 02 04:11:48 pm.
> Compiling: /home/dlphilp/CCRMA/cm-2.4.0/etc/examples/cmn-test.cm 06 DEC
> 02 02:50:17 pm
>
> Converted TESTIT.
> Compiling DEFINE (TESTIT STF LEN NTS):
> Compiling Creation Form for #<KERNEL::CLASS-CELL MIDI>:
> Compiling Creation Form for #<KERNEL::CLASS-CELL HEAP>:
> Compiling Creation Form for #<KERNEL::CLASS-CELL RANDOM>:
> Compiling Creation Form for #<KERNEL::CLASS-CELL CYCLE>:
>
> Error: Read error at 913:
>  "(events #!/\two-ways "cmn-test.mid")"
> Reader error at 938 on #<Stream for file
> "/home/dlphilp/CCRMA/cm-2.4.0/etc/examples/cmn-test.cm">:
> No dispatch function defined for #\!.
>
> Byte Compiling Top-Level Form:
> Byte Compiling Creation Form for #<KERNEL::CLASS-CELL SEQ>:
>
> Error: Read error at 948:
>  "(events #!/\two-ways "cmn-test.cmn" :staffing staffs :size 20 :title
> "Triad")"
> Reader error at 1014 on #<Stream for file
> "/home/dlphilp/CCRMA/cm-2.4.0/etc/examples/cmn-test.cm">:
> No dispatch function defined for #\!.
>
> Compilation unit finished.
>   2 errors
>
> /home/dlphilp/CCRMA/cm-2.4.0/etc/examples/cmn-test.x86f written.
> Compilation finished in 0:00:00.
>
> #p"/home/dlphilp/CCRMA/cm-2.4.0/etc/examples/cmn-test.x86f"
> T
> T
> *
>
>
>   Bummer. I looked for the fix to this problem but didn't find it in my
> mail (too much mail). Any suggestions ?
>
> == dp
>