Package: maxima
Version: 5.33.0-2
Severity: normal

Dear Maintainer,

In my system, Maxima cannot load Lapack. It fails after showing
this error message:

Finished loading 
/home/jeronimo/.maxima/binary/binary-gcl/share/lapack/lapack/zheev.o
Compiling /usr/share/maxima/5.33.0/share/lapack/eigensys.lisp.
; (DEFUN LAPACK-MAXIFY-MATRIX ...) is being compiled.
;;; The variable 2.0 is not a symbol.;; Warning: The variable NROW is not used.
;; Warning: The variable NCOL is not used.
;; Warning: The variable A is not used.
; (DEFUN $ZHEEV ...) is being compiled.
;; Warning: The variable INFO is not used.
;; Warning: The variable INFO is not used.
No FASL generated.
loadfile: failed to load /usr/share/maxima/5.33.0/share/lapack/load-lapack.lisp
 -- an error. To debug this try: debugmode(true);

So, it seems that the number "2" was used as a variable name (or
prefix of a variable name), and GCL did not like it.

Fixing this is easy: the file
/usr/share/maxima/5.33.0/share/lapack/eigensys.lisp

defines a function called "lapack-maxify-matrix". In this
function, there is a temporary variable called "2d".
It is defined once and used only once. Change its name
to "two-d" and Maxima is able to load lapack.

Thank you,
Jerônimo

PS: here is the function, for reference:

(defun lapack-maxify-matrix (nrow ncol a)
  "Convert an LAPACK matrix of dimensions NROW and NCOL into a Maxima
matrix (list of lists)"
  (let ((2d (make-array (list ncol nrow) :element-type (array-element-type a)
                        :displaced-to a)))
    (let (res)
      (dotimes (r nrow)
        (let (row)
          (dotimes (c ncol)
            ;; Fortran arrays are column-major order!
            (let ((v (aref 2d c r)))
              (push (add (realpart v) (mul '$%i (imagpart v))) row)))
          (push `((mlist) ,@(nreverse row)) res)))
      `(($matrix) ,@(nreverse res)))))


-- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 3.14-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages maxima depends on:
ii  libc6         2.18-6
ii  libgmp10      2:6.0.0+dfsg-4
ii  libreadline6  6.3-6
ii  libx11-6      2:1.6.2-2

Versions of packages maxima recommends:
ii  gnuplot-x11   4.6.5-1
ii  maxima-share  5.33.0-2

Versions of packages maxima suggests:
ii  maxima-doc    5.33.0-2
ii  maxima-emacs  5.33.0-2
ii  texmacs       1:1.0.7.18-1
ii  tk [wish]     8.6.0+8
ii  xmaxima       5.33.0-2

-- no debconf information


--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to