Trouble running matlisp on Ubuntu with Allegro

Eric Timmons <[email protected]> Tue, 24 May 2011 00:56:28 -0400
Newsgroups gmane.lisp.matlisp.user
Message-ID <[email protected]>
Hi all,

I've managed to get matlisp working on windows, but I also need to get 
it working on a linux distro as well. Specifically I'm working on Ubuntu 
10.04 with allegro CL 8.1 (64-bit if that matters).

I got the latest version of matlisp from git and followed the 
instructions in the INSTALL file. I noticed some bugs while compiling, 
though. The makefile attempted to install LAPACK before BLAS and it 
(understandably) got unhappy about that. I fixed that, then I noticed 
that the file libmatlisp.so wasn't actually generated so I had to change 
lazy-loader.lisp to load libblas.so, liblapack.so, libdfftpack.so, and 
libtoms715.so.

After making those changes, I loaded start.lisp from Allegro. There were 
some compile warnings, but nothing looked too major. I was then able to 
make matrices using MAKE-REAL-MATRIX, but whenever any code tried to use 
a Fortran function an error was signaled. The following error was given 
when I tried to evaluate (eye 2):

Attempt to do an array operation on #12\? which is not an array.
    [Condition of type TYPE-ERROR]

Restarts:
  0: [RETRY] Retry SLIME REPL evaluation request.
  1: [*ABORT] Return to SLIME's top level.
  2: [ABORT] Abort entirely from this (lisp) process.

Backtrace:
   0: (ERROR TYPE-ERROR :DATUM #12\? :EXPECTED-TYPE ARRAY ...)
   1: (BLAS::FORTRAN-DCOPY 2 #(1.0d0) 0 #(0.0d0 0.0d0 0.0d0 0.0d0) 3)
   2: (DCOPY 2 #(1.0d0) 0 #(0.0d0 0.0d0 0.0d0 0.0d0) 3)
   3: (EYE 2)
   4: (EVAL (EYE 2))
  --more--

Similar errors happen whenever I try to use a fortran function. This 
doesn't happen on Windows (32- or 64-bit). Anyone have any 
ideas/suggestions of what to do to get this to work on Ubuntu?

Cheers,
-Eric

------------------------------------------------------------------------------
vRanger cuts backup time in half-while increasing security.
With the market-leading solution for virtual backup and recovery, 
you get blazing-fast, flexible, and affordable data protection.
Download your free trial now. 
http://p.sf.net/sfu/quest-d2dcopy1