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

luke hammon aabcehmu@gmail.com
Fri, 6 Apr 2007 23:43:27 -0400


------=_Part_209_11600915.1175917407430
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Eeeeexcellent.  I actually read the previous post on the bash->dash switch,
but I didn't make the connection. /me bonks own head.

--luke

On 4/6/07, Ralf Mattes <rm@seid-online.de> wrote:
>
> 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
> name...).
>
> 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
>
>

------=_Part_209_11600915.1175917407430
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Eeeeexcellent.&nbsp; I actually read the previous post on the bash-&gt;dash switch, but I didn&#39;t make the connection. /me bonks own head.<br><br>--luke<br><br><div><span class="gmail_quote">On 4/6/07, <b class="gmail_sendername">
Ralf Mattes</b> &lt;<a href="mailto:rm@seid-online.de">rm@seid-online.de</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Sun, 2007-04-01 at 15:10 -0500, Rick Taube wrote:<br>&gt; looks to me like a write permission error in the cm isntall<br>&gt; directory? im not sure what that weird path is doing, but thats my<br>&gt; first guess since 
pkg.lisp is the first file that will generate<br>&gt; a .fasl to the cm/bin/.../ directory<br><br>Oh, gosh, sorry. Didn&#39;t I report this weeks ago or did I forget to send<br>a bug report? Anyway - this is _not_ a permission problem but a problem
<br>in the &#39;cm.sh&#39; file. Somehow Tobias Kunze&nbsp;&nbsp;seems to assume that all<br>shells are Bash these days ;-) Using Bashisms in scripts that claim to<br>be runnable by &#39;/bin/sh&#39; is probably not a good idea. Ubuntu switched
<br>from &#39;/bin/bash&#39; to &#39;/bin/dash&#39; and that broke &#39;cm.sh&#39; (that switch<br>alone brought some substantial speedup during boot time so it&#39;s worth<br>keeping it). The code in &#39;cm.asd&#39; is missinterpreting dash&#39;s error
<br>message as real data and tries to create a directory with the name<br>&#39;cm.sh: 393: \[\[: not found&#39; which strangely fails 8-O<br>(dash doesn&#39;t know of the &#39;[[&#39; tests and treats them as a program<br>
name...).<br><br>Solution: either fix the script or change the first line to:<br>&quot;#!/bin/bash -&quot;. Even so the later is rather tempting it might create<br>problems on systems that don&#39;t ship with bash (MacOSX ???).
<br><br>HTH Ralf Mattes<br><br><br>&gt; On Apr 1, 2007, at 2:33 PM, luke hammon wrote:<br>&gt;<br>&gt; &gt; I get the following error when compiling CM (stable and cvs) on<br>&gt; &gt; Ubuntu Feisty with SBCL and CMUCL:<br>
&gt; &gt;<br>&gt; &gt; &quot;can&#39;t create directory /var/cache/common-lisp-controller/1000/sbcl/<br>&gt; &gt; local/usr/local/lisp/cm/bin/sbcl_1.0_/usr/local/lisp/cm/bin/cm.sh:<br>&gt; &gt; 342: \[\[: not found/<br>&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;[Condition of type SB-INT:SIMPLE-FILE-ERROR]&quot;
<br>&gt; &gt;<br>&gt; &gt; SBCL and CMUCL throw the error when compiling &quot;cm/src/pkg.lisp&quot;.<br>&gt; &gt; Clisp compiles it fine, but it prints a similar warning before it<br>&gt; &gt; completes.&nbsp;&nbsp;I haven&#39;t had trouble building it under other distros
<br>&gt; &gt; or previous versions of Ubuntu.<br>&gt; &gt;<br>&gt; &gt; Any ideas? Thanks in advance --<br>&gt; &gt;<br>&gt; &gt; luke<br>&gt; &gt;<br>&gt;<br>&gt; _______________________________________________<br>&gt; Cmdist mailing list
<br>&gt; <a href="mailto:Cmdist@ccrma.stanford.edu">Cmdist@ccrma.stanford.edu</a><br>&gt; <a href="http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist">http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist</a><br><br>
</blockquote></div><br>

------=_Part_209_11600915.1175917407430--