load(lapack);



On Sat, Mar 2, 2013 at 8:19 AM, Marco Maggesi <maggesi at math.unifi.it> wrote:

> Hello,
> I have a problem with the lapack package.  I try to load the lapack
> package with
>
> $ maxima
> Maxima 5.29.1 http://maxima.sourceforge.net
> using Lisp SBCL 1.1.3.nixos
> Distributed under the GNU Public License. See the file COPYING.
> Dedicated to the memory of William Schelter.
> The function bug_report() provides bug reporting information.
> (%i1) load(lapack);
>
> and I get the following error:
>
> ; compiling file
>
> "/nix/store/lrryaf5n0ldyp8zd4rivalnggbg9sap6-maxima-5.29.1/share/maxima/5.29.1/share/lapack/lapack/dgesvd.lisp"
> (written 01 JAN 1970 01:00:01 AM):
> ; compiling (IN-PACKAGE :LAPACK)
> ; compiling (LET* (# #) ...)Heap exhausted during garbage collection:
> 0 bytes available, 32 requested.
>

Compiling lapack requires a fair amount of memory.  This means sbcl needs
to be told to start with a larger dynamic space (heap).  I don't have
maxima or sbcl available right now, but there are options to do that.


> Now if I restart maxima I get the following error.
>
> $ maxima
> fatal error encountered in SBCL pid 3457:
> can't load .core for different runtime, sorry
>
>
> Welcome to LDB, a low-level debugger for the Lisp runtime environment.
> ldb>
>
> I get the same behavior on two architecture:
>   - OSX (maxima installed with macports);
>   - NixOS (a paradoxal linux distribution: http://nixos.org/).
>
> On NixOS I can recover from this situation by removing the directory
> ~/maxima.core.
>

Well, this is strange.  I would not expect sbcl to just randomly use
maxima.core from any location.  Could be a bug in maxima or in the way you
installed it.  Can't debug this any further since I don't have maxima or
sbcl right now.

Ray