Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 139678 - maxima 5.9.3 & 5.10.0 compile but don't work
Summary: maxima 5.9.3 & 5.10.0 compile but don't work
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Science Mathematics related packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-07-08 09:00 UTC by Gilles Schintgen
Modified: 2006-10-31 11:13 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Gilles Schintgen 2006-07-08 09:00:30 UTC
Here's what I get when trying to run maxima:

$ maxima
Maxima encountered a Lisp error:

 Error in SETQ [or a callee]: 0 and 2 are illegal as :START and :END
for the sequence "".

Automatically continuing.
To reenable the Lisp debugger set *debugger-hook* to nil.
Error in SUBSEQ [or a callee]: The tag RETURN-FROM-DEBUGGER is undefined.

Fast links are on: do (use-fast-links nil) for debugging
Broken at CONDITIONS::CLCS-UNIVERSAL-ERROR-HANDLER.  Type :H for Help.
 1 (Abort) Return to top level.
dbl:MAXIMA>>

------------------

emerge -pv gcl maxima
[ebuild   R   ] dev-lisp/gcl-2.6.7  USE="X ansi readline tcltk -custreloc -debug -dlopen -doc -emacs -gprof" 0 kB
[ebuild   R   ] sci-mathematics/maxima-5.9.3  USE="tetex unicode -auctex -clisp -cmucl -emacs -gcl -nls -sbcl -tcltk" 0 kB

------------------

Portage 2.1-r1 (default-linux/x86/2006.0, gcc-3.4.6, glibc-2.3.6-r3, 2.6.16-ck11m2 i686)
=================================================================
System uname: 2.6.16-ck11m2 i686 AMD Athlon(tm) XP 1800+
Gentoo Base System version 1.6.14
dev-lang/python:     2.3.5-r2, 2.4.2
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  0.4.2-r1
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.93
sys-devel/gcc-config: 1.3.13-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -O2 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/lib/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/splash /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-march=athlon-xp -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig confcache distlocks metadata-transfer parallel-fetch sandbox sfperms split-debug strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="en_US.UTF-8"
LC_ALL=""
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/home/tmpportage"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X Xaw3d a52 aac acpi alsa apm arts audiofile avi bitmap-fonts bonobo cairo caps cdparanoia cdr cli crypt css cups curl dbus divx4linux dlloader dri dts dvd dvdread eds emboss encode evo fam ffmpeg flac fortran gb gd gif gpm gstreamer gtk gtk2 hal imlib isdnlog jikes jpeg jpeg2k kde kdeenablefinal libwww lm_sensors lzo mad maildir mbox mmx mmxext mng motif mp3 mpeg musepack musicbrainz ncurses nls nptl nptlonly nvidia ogg oggvorbis opengl pam pcre pdf pdflib perl plotutils png ppds pppd qt qt3 qt4 quicktime readline real reflection sasl scanner sdl session slang spell spl sse ssl svg tcltk tcpd tetex theora tiff truetype truetype-fonts type1-fonts udev unicode usb userlocales videos vidix vorbis win32codecs wmf wxwindows x86 xml xml2 xorg xosd xv xvid xvmc zlib elibc_glibc input_devices_keyboard input_devices_mouse input_devices_evdev kernel_linux userland_GNU"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Gilles Schintgen 2006-08-04 17:40:41 UTC
I tried
USE="sbcl" emerge maxima. Again, the compilation shows no problems, yet maxima fails with the following messages:

----------------------------------------------------------
$ maxima
unhandled SIMPLE-ERROR:
  Error during processing of --eval option "(cl-user::run)":

  The bounding indices 0 and 2 are bad for a sequence of length 0.
See also:
  The ANSI Standard, Glossary entry for "bounding index designator"
  The ANSI Standard, writeup for Issue SUBSEQ-OUT-OF-BOUNDS:IS-AN-ERROR

0: (SB-DEBUG:BACKTRACE 128 #<SYNONYM-STREAM :SYMBOL SB-SYS:*STDERR* {50A8821}>)
1: (SB-DEBUG::DEBUGGER-DISABLED-HOOK
    #<SIMPLE-ERROR {90536A1}>
    #<unavailable argument>)
2: (INVOKE-DEBUGGER #<SIMPLE-ERROR {90536A1}>)
3: (ERROR
    "Error during processing of --eval ~
                                              option ~S:~%~%  ~A")
4: ((LAMBDA (SB-IMPL::E)) #<SB-KERNEL:BOUNDING-INDICES-BAD-ERROR {90533D1}>)
5: ((LAMBDA (SB-IMPL::E)) #<SB-KERNEL:BOUNDING-INDICES-BAD-ERROR {90533D1}>)
6: (SIGNAL #<SB-KERNEL:BOUNDING-INDICES-BAD-ERROR {90533D1}>)
7: (ERROR SB-KERNEL:BOUNDING-INDICES-BAD-ERROR)
8: (SB-IMPL::SIGNAL-BOUNDING-INDICES-BAD-ERROR "" 0 2)
9: (SB-IMPL::VECTOR-SUBSEQ* "" 0 #<unavailable argument>)
10: (SET-LOCALE)
11: (RUN)
12: (SB-INT:EVAL-IN-LEXENV (RUN) #<NULL-LEXENV>)
13: (SB-IMPL::PROCESS-EVAL-OPTIONS ("(cl-user::run)"))
14: (SB-IMPL::TOPLEVEL-INIT)
15: ((FLET SB-IMPL::RESTART-LISP))

unhandled condition in --disable-debugger mode, quitting
----------------------------------------------------------

Notice the lisp error which is quite similar to the one given by gcl. It may be a stupid question but is it actually possible to successfully run maxima 5.9.3 with this ebuild?
What USE flags (for the lisp implementation and for maxima) are known to work?

BTW, maxima-5.9.1 works flawlessly.
Comment 2 Gilles Schintgen 2006-10-31 08:01:12 UTC
I've got the same issue with 5.10.0. Note that this happens on two completely different machines. (One of them was recompiled after upgrading to gcc-4, the other still uses gcc-3.x.)

Here's the error message I get when trying to use 5.10.0 (built with gcl):

$ maxima
Maxima encountered a Lisp error:

 Error in SETQ [or a callee]: 0 and 2 are illegal as :START and :END
for the sequence "".

Automatically continuing.
To reenable the Lisp debugger set *debugger-hook* to nil.
Error in SUBSEQ [or a callee]: The tag RETURN-FROM-DEBUGGER is undefined.

Fast links are on: do (use-fast-links nil) for debugging
Broken at CONDITIONS::CLCS-UNIVERSAL-ERROR-HANDLER.  Type :H for Help.
 1 (Abort) Return to top level.
dbl:MAXIMA>>


I don't want to annoy anyone by repeating a question I've already asked, but I'd still be interested in hearing if it's actually possible to successfully run maxima 5.9.3 or 5.10.0?
What USE flags (for the lisp implementation and for maxima) are known to work?
Comment 3 Gilles Schintgen 2006-10-31 08:50:53 UTC
I did some more testing. It also happens when I compile maxima with USE="-*" or USE="unicode tetex tk"

Compiling with clisp instead of gcl doesn't help:

$ maxima
Maxima encountered a Lisp error:


AREF: index 0 for "" is out of range

Automatically continuing.
To reenable the Lisp debugger set *debugger-hook* to nil.

*** - THROW: there is no CATCHer for tag RETURN-FROM-DEBUGGER
Break 1 [1]>
Comment 4 Gilles Schintgen 2006-10-31 09:53:51 UTC
Here's the output when compiled with cmucl:

$ maxima
Maxima encountered a Lisp error:

 Type-error in KERNEL::INVALID-ARRAY-INDEX-ERROR-HANDLER:
    0 is not of type (INTEGER 0 (0))

Automatically continuing.
To reenable the Lisp debugger set *debugger-hook* to nil.

Attempt to THROW to a tag that does not exist: RETURN-FROM-DEBUGGER
   [Condition of type KERNEL:SIMPLE-CONTROL-ERROR]

Restarts:
  0: [ABORT] Skip remaining initializations.

Debug  (type H for help)

("assembly routine: C:UNWIND")
0]


Are there any steps I could take to debug this issue?
It's strange that the error message always refers to an array index. But I doubt that both releases are broken.
Comment 5 Gilles Schintgen 2006-10-31 10:19:05 UTC
BTW, not even maxima -g or maxima -h work. They immediately terminate with the error messages given in the previous comments.
Comment 6 Gilles Schintgen 2006-10-31 11:07:37 UTC
And here's with sbcl-0.9.17:

$ maxima
unhandled SIMPLE-ERROR:
  Error during processing of --eval option "(cl-user::run)":

  The bounding indices 0 and 2 are bad for a sequence of length 0.
See also:
  The ANSI Standard, Glossary entry for "bounding index designator"
  The ANSI Standard, writeup for Issue SUBSEQ-OUT-OF-BOUNDS:IS-AN-ERROR

0: (SB-DEBUG:BACKTRACE 128 #<SYNONYM-STREAM :SYMBOL SB-SYS:*STDERR* {508A099}>)
1: (SB-DEBUG::DEBUGGER-DISABLED-HOOK
    #<SIMPLE-ERROR {9088B51}>
    #<unavailable argument>)
2: (INVOKE-DEBUGGER #<SIMPLE-ERROR {9088B51}>)
3: (ERROR
    "Error during processing of --eval ~
                                    option ~S:~%~%  ~A")
4: ((LAMBDA (SB-IMPL::E)) #<SB-KERNEL:BOUNDING-INDICES-BAD-ERROR {9088891}>)
5: ((LAMBDA (SB-IMPL::E)) #<SB-KERNEL:BOUNDING-INDICES-BAD-ERROR {9088891}>)
6: (SIGNAL #<SB-KERNEL:BOUNDING-INDICES-BAD-ERROR {9088891}>)
7: (ERROR SB-KERNEL:BOUNDING-INDICES-BAD-ERROR)
8: (SB-IMPL::SIGNAL-BOUNDING-INDICES-BAD-ERROR "" 0 2)
9: (SB-IMPL::VECTOR-SUBSEQ* "" 0 #<unavailable argument>)
10: (SET-LOCALE)
11: (RUN)
12: (SB-INT:SIMPLE-EVAL-IN-LEXENV (RUN) #<NULL-LEXENV>)
13: (SB-IMPL::PROCESS-EVAL-OPTIONS ("(cl-user::run)"))
14: (SB-IMPL::TOPLEVEL-INIT)
15: ((LABELS SB-IMPL::RESTART-LISP))

unhandled condition in --disable-debugger mode, quitting
Comment 7 Gilles Schintgen 2006-10-31 11:13:10 UTC
Well, the backtrace pointed me in the right direction: there was a locale problem. LC_ALL wasn't set. Assigning a value to it solves the problem.