[CM] Error compiling CM on Ubuntu Feisty Fawn with SBCL and CMUCL

Ralf Mattes rm@seid-online.de
Fri, 06 Apr 2007 23:40:33 +0200

On Sun, 2007-04-01 at 15:10 -0500, Rick Taube wrote:
> looks to me like a write permission error in the cm isntall  
> directory? im not sure what that weird path is doing, but thats my  
> first guess since pkg.lisp is the first file that will generate  
> a .fasl to the cm/bin/.../ directory

Oh, gosh, sorry. Didn't I report this weeks ago or did I forget to send
a bug report? Anyway - this is _not_ a permission problem but a problem
in the 'cm.sh' file. Somehow Tobias Kunze  seems to assume that all
shells are Bash these days ;-) Using Bashisms in scripts that claim to
be runnable by '/bin/sh' is probably not a good idea. Ubuntu switched
from '/bin/bash' to '/bin/dash' and that broke 'cm.sh' (that switch
alone brought some substantial speedup during boot time so it's worth
keeping it). The code in 'cm.asd' is missinterpreting dash's error
message as real data and tries to create a directory with the name
'cm.sh: 393: \[\[: not found' which strangely fails 8-O
(dash doesn't know of the '[[' tests and treats them as a program

Solution: either fix the script or change the first line to:
"#!/bin/bash -". Even so the later is rather tempting it might create
problems on systems that don't ship with bash (MacOSX ???).

HTH Ralf Mattes

> On Apr 1, 2007, at 2:33 PM, luke hammon wrote:
> > I get the following error when compiling CM (stable and cvs) on  
> > Ubuntu Feisty with SBCL and CMUCL:
> >
> > "can't create directory /var/cache/common-lisp-controller/1000/sbcl/ 
> > local/usr/local/lisp/cm/bin/sbcl_1.0_/usr/local/lisp/cm/bin/cm.sh:  
> > 342: \[\[: not found/
> >    [Condition of type SB-INT:SIMPLE-FILE-ERROR]"
> >
> > SBCL and CMUCL throw the error when compiling "cm/src/pkg.lisp".  
> > Clisp compiles it fine, but it prints a similar warning before it  
> > completes.  I haven't had trouble building it under other distros  
> > or previous versions of Ubuntu.
> >
> > Any ideas? Thanks in advance --
> >
> > luke
> >
> _______________________________________________
> Cmdist mailing list
> Cmdist@ccrma.stanford.edu
> http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist