It appears that Gentoo has Maxima 5.9.1, which is superseded by Maxima 5.9.2. The source tarball is available from the SourceForge file manager (linked from http://sf.net/projects/maxima/). Maxima 5.9.2 has been about a year in development since 5.9.1 and includes many bug fixes and enhancements. Reproducible: Always Steps to Reproduce: 1. 2. 3.
Created attachment 73082 [details] files/maxima-5.9.2-unicode-fix.patch
Created attachment 73083 [details] maxima-5.9.2.ebuild tested ~amd64 with sbcl
Seems to work fine. (With gcl, x86) Thanks!
(In reply to comment #3) > Seems to work fine. (With gcl, x86) > > Thanks! works on Pentium III as well
emerge maxima failes for me: Calculating dependencies ...done! >>> emerge (1 of 1) sci-mathematics/maxima-5.9.2 to / >>> md5 files ;-) maxima-5.9.2.ebuild >>> md5 files ;-) files/maxima-5.9.2-unicode-fix.patch >>> md5 files ;-) files/digest-maxima-5.9.2 >>> md5 src_uri ;-) maxima-5.9.2.tar.gz >>> Unpacking source... >>> Unpacking maxima-5.9.2.tar.gz to /var/tmp/portage/maxima-5.9.2/work * Applying maxima-5.9.2-unicode-fix.patch ... [ ok ] >>> Source unpacked. * Running aclocal ... [ ok ] * Running autoconf ... [ ok ] * Running automake ... [ ok ] * econf: updating maxima-5.9.2/config.guess with /usr/share/gnuconfig/config.guess * econf: updating maxima-5.9.2/config.sub with /usr/share/gnuconfig/config.sub ./configure --prefix=/usr --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --build=i686-pc-linux-gnu --infodir=/usr/share/info --enable-gcl checking for a BSD-compatible install... /bin/install -c checking whether build environment is sane... yes checking for gawk... gawk checking whether make sets $(MAKE)... yes checking build system type... i686-pc-linux-gnu checking host system type... i686-pc-linux-gnu checking for gcl... true configure: error: unable to run gcl executable "gcl". !!! Please attach the config.log to your bug report: !!! /var/tmp/portage/maxima-5.9.2/work/maxima-5.9.2/config.log !!! ERROR: sci-mathematics/maxima-5.9.2 failed. !!! Function econf, Line 485, Exitcode 0 !!! econf failed !!! If you need support, post the topmost build error, NOT this status message. Any idea? ufechner
Created attachment 73964 [details] config.log of failed emerge
I solved my problem with emerging maxima: - add clisp to the use flags - emerge -C gcl - emerge clisp - emerge maxima Still maxima should compile with gcl, too. One problem left: (%i2) ? sum Maxima encountered a Lisp error: failed to find info directory Automatically continuing. To reenable the Lisp debugger set *debugger-hook* to nil. (%i3) Where can I set the info directory? Or what else do I have to emerge? Regards: Uwe
I believe the "failed to find info directory" problem mentioned by Uwe is the same as http://bugs.gentoo.org/show_bug.cgi?id=112717. Uwe wrote: ----------------- begin quoted text ----------------- One problem left: (%i2) ? sum Maxima encountered a Lisp error: failed to find info directory Automatically continuing. To reenable the Lisp debugger set *debugger-hook* to nil. (%i3) Where can I set the info directory? Or what else do I have to emerge? ------------------ end quoted text ------------------ "failed to find info directory" is the message Maxima prints when it fails to find maxima.info in the place it expected it to be. One known cause for that is some build configurations cause maxima.info to be compressed into maxima.info.gz, but Maxima doesn't know about compressed info. If the build has created maxima.info.gz, it must be modified to create the uncompressed maxima.info instead. If compressed info is not the problem, some other things to look at: What is reported by :lisp *INFO-PATHS* (entered at the Maxima input prompt) ?? Does maxima.info exist in the directory named by *INFO-PATHS* ?? Hope this helps, Robert Dodier robert.dodier@gmail.com Maxima project developer
Thanks. The following steps fixed my problem: su - cd /usr/share/info gunzip maxima.info* ? sum gives the excpected result now. By the way: The result for *INFO-PATHS* (%i2) :lisp *INFO-PATHS* Maxima encountered a Lisp error: EVAL: variable *INFO-PATHS* has no value Automatically continuing. To reenable the Lisp debugger set *debugger-hook* to nil. (%i2) As it works fine now, I don't mind. Regards: Uwe
Uwe wrote: --------- begin quoted text --------- su - cd /usr/share/info gunzip maxima.info* ? sum gives the excpected result now. ---------- end quoted text ---------- OK, glad to hear it works. But is there some way to change the configuration so that maxima.info is not compressed to begin with? Sorry about *INFO-PATHS*. It is in a package other than the default. Should be like this: :lisp CL-INFO::*INFO-PATHS* Thanks for your interest in Maxima, Robert Dodier
I put an ebuild on the gentoo science overlay (http://gentooscience,org) for maxima-5.9.2, ready for more testing. Changes of that one are the following: - USE flags for tcltk and rlwrap (no GUI if not asked for) - ghostview replacement to gv - some cleaning On amd64, I tested it with gcl, could not compile with sbcl. The info files are read fine within maxima gunzipped or not.
(In reply to comment #11) > I put an ebuild on the gentoo science overlay (http://gentooscience,org) for > maxima-5.9.2, ready for more testing. > Changes of that one are the following: > - USE flags for tcltk and rlwrap (no GUI if not asked for) > - ghostview replacement to gv > - some cleaning > On amd64, I tested it with gcl, could not compile with sbcl. > The info files are read fine within maxima gunzipped or not. 1. Where can I get the ebuild? I can test this. 2. Which version of SBCL? I haven't tried it recently, but I'm currently running SBCL 0.9.8, and aside from some configuration issues with thread libraries, it's been running very well. I usually build maxima with GCL, but I can certainly try the new ebuild with all four Lisp processors. >
In reply to Comment #12: Either follow instructions on http://gentooscience.org, "Obtaining the Overlay" or grab the ebuild and patches on https://gentooscience.org/browser/overlay/sci-mathematics/maxima I actually just tested the ebuild on a x86 machine, and now I encountered the problems others did, namely with the gunzipped info and the autoreconf need. But the sbcl compile worked fine. I updated the overlay with the eautoreconf stuff back in place. As for amd64 building with sbcl (stable 0.9.3), the compilation stopped immediately with: -------------------------- test -d binary-sbcl || mkdir binary-sbcl sbcl --noinform --noprint --eval '(progn (load "../lisp-utils/defsystem.lisp") (load "../lisp-utils/make-depends.lisp") (funcall (intern "CREATE-DEPENDENCY-FILE" :mk) "binary-sbcl/maxima.core" "sbcl-depends.mk") (sb-ext:quit))' fatal error encountered in SBCL pid 12789(tid 46912504393728): can't find core file ----------------------- I am not a lisp expert and I rarely used maxima ;) It might be some simple config that sbcl ebuild does not take care of.
(In reply to comment #13) Just reporting a successful build on both x86 and amd64 with the following use flags: sci-mathematics/maxima-5.9.2 -auctex +clisp (-cmucl) +emacs -rlwrap -sbcl +tcltk +tetex
There is an ebuild update on the overlay with the following: - forced rlwrap for sbcl and cmucl (according to README.lisps), thus removing flags - patches for emaxima and default browser - forced sbcl version >= 0.9.4 - redo Makefile's only for sbcl It looks like the amd64 problem I had was just a version of sbcl. I compiled and run it fine with sbcl 0.9.4 and 0.9.8.
(In reply to comment #15) > There is an ebuild update on the overlay with the following: > - forced rlwrap for sbcl and cmucl (according to README.lisps), thus removing > flags > - patches for emaxima and default browser > - forced sbcl version >= 0.9.4 > - redo Makefile's only for sbcl > It looks like the amd64 problem I had was just a version of sbcl. I compiled > and run it fine with sbcl 0.9.4 and 0.9.8. > Everything (including wxmaxima) looks like it's working with x86/Athlon/P3. The one thing I haven't tested yet is whether xmaxima still crashes KDE when you close the window with the X in the upper right corner. That's a Lisp-specific bug, and I've forgotten which Lisp triggers it. It's in bugzilla somewhere, though.
Hello, someone else wrote: > one thing I haven't tested yet is whether xmaxima > still crashes KDE when you close the window with > the X in the upper right corner. That's a Lisp-specific > bug, and I've forgotten which Lisp triggers it. If I remember correctly, the problem was this: When Xmaxima closes, it attempts to kill the associated Maxima process. The process id variable was initialized to -1, and in Clisp (again, iirc) the function to return the process id was renamed so the variable remained -1. Then "kill -1" killed off everything. So, I think Clisp is the version that should be tested -- I think it should pass the test (i.e., close without killing everything). Robert Dodier Maxima developer
Created attachment 84135 [details] maxima-5.9.3.ebuild Hi, maxima-5.9.3 has been released and I've successfully built in on amd64 and x86 using this ebuild. Only a slight mod from the prior ebuild, I've dropped the unicode patch since I don't know enough to update it myself. I've created a new maxima-5.9.3-default-browser.patch which is very similar to the old one. Pete Gustafson
Created attachment 84136 [details, diff] maxima-5.9.3-default-browser.patch
unicode patch is a simple find -name \*.lisp | xargs sed -i 's/base-char/character/g' IIRC...i'm quite busy right now
Created attachment 84137 [details, diff] maxima-5.9.3-unicode-fix.patch
Created attachment 84138 [details, diff] maxima-5.9.3-emaxima.patch
Created attachment 84139 [details] maxima-5.9.3.ebuild OK, thanks for the suggestion. I think all the patches are updated now. Note this means that the prior ebuild maxima-5.9.2.ebuild worked unchanged for me. I'm reposting it as maxima-5.9.3.ebuild in order to make my previous version obsolete. Pete
Thanks for the inputs. maxima-5.9.3 in http://gentooscience.org overlay. Some changes from comment #23: - added nls support with linguas stuff (only pt and es supported) - fixed the 50maxima-gentoo.el with proper versioning - re-added opera to possible browser in maxima-5.9.3-default-browser.patch Please test and report here. It worked for me on amd64 with gcl, with and without tcl/tk gui.
works here on amd64 with sbcl 0.9.11
i'd suggest to remove the unicode fix...the only affected source line is specific to lispworks,a propitary lisp. the unicode fix was meant to fix compile errors with unicode enabled sbcl, which doesn't seem to be affected by the patch...i don't know about base-char/character in lispworks,so perhaps silently remove the patch?
Committed sci-mathematics/maxima-5.9.3 to the tree which should fix these issues. Thanks to you all for your work on this package, please let me know if you have any further issues.