|
From: Eduardo O. <edu...@gm...> - 2025-11-15 22:37:47
|
Hi list, the file INSTALL.lisp - a.k.a. <https://sourceforge.net/p/maxima/code/ci/master/tree/INSTALL.lisp> - says "User feedback on this procedure would be greatly appreciated", so here it goes... I tried to follow its instructions to build a maxima.core with Quicklisp and some packages preloaded to save me some seconds on startup, and the instructions worked modulo a small bug at the end. Here are the details. I ran this, where the `(find-maximagitfile ...)'s in comments are elisp hyperlinks to positions to INSTALL.lisp to remind me where I am, so just ignore them...: --snip--snip-- cd ~/bigsrc/maxima/ sbcl ;; (find-maximagitfile "INSTALL.lisp" "(2)" "(3)" "(4)") (load "configure.lisp") (configure :interactive nil) (quit) cd ~/bigsrc/maxima/src/ sbcl ;; (find-maximagitfile "INSTALL.lisp" "(5)" "(6)" "(7)") (load "maxima-build.lisp") (maxima-compile) (quit) cd ~/bigsrc/maxima/src/ sbcl ;; (find-maximagitfile "INSTALL.lisp" "(8)" "(9a)" "(9b)") (load "maxima-build.lisp") (maxima-load) (cl-user::run) to_lisp(); (in-package :common-lisp-user) ;; ;; Optional: load quicklisp and some packages (load #P"~/quicklisp/setup.lisp") (ql:quickload :cffi) (ql:quickload "str") ;; (in-package :maxima) (common-lisp-user::maxima-dump) ~/bigsrc/maxima/bin/src/maxima --directories ~/bigsrc/maxima/bin/src/maxima to_lisp(); (describe 'str:join) (to-maxima) quit(); --snip--snip-- The bug: when I ran ~/bigsrc/maxima/bin/src/maxima it displayed this, --snip--snip-- /home/edrx/bigsrc/maxima/src(edrx:sc)# ~/bigsrc/maxima/bin/src/maxima Warning: argument end-toplevel-options not recognized. Warning: argument eval not recognized. Loading /home/edrx/.maxima/maxima-init.lisp Loading /home/edrx/.maxima/maxima-init.mac Maxima restarted. (%i2) --snip--snip-- instead of running `maxima-banner' and displaying this: --snip--snip-- /home/edrx/e(edrx:sc)# maxima Loading /home/edrx/.maxima/maxima-init.lisp Loading /home/edrx/.maxima/maxima-init.mac Maxima branch_5_48_base_222_g66001dab3 https://maxima.sourceforge.io using Lisp SBCL 2.1.1.debian 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) --snip--snip-- I checked how ~/bigsrc/maxima/bin/src/maxima was calling SBCL by running the shell commands below in another terminal while Maxima was running, --snip--snip-- (eepitch-shell3) (eepitch-kill) (eepitch-shell3) getpids () { ps -C $1 -o pid=; } getcmdline () { cat /proc/$1/cmdline | tr '\0' ' '; echo } getcmdlines () { for i in $(getpids sbcl); do getcmdline $i; done; } getpids sbcl getcmdlines sbcl --snip--snip-- and what I got, modulo ""s and \\s, was: sbcl --core /home/edrx/bigsrc/maxima/src/binary-sbcl/maxima.core \ --noinform --end-runtime-options --eval "(cl-user::run)" \ --end-toplevel-options sbcl --core \ /usr/local/lib/maxima/branch_5_48_base_222_g66001dab3/binary-sbcl/maxima.core \ --noinform --end-runtime-options --eval "(cl-user::run)" \ --end-toplevel-options The standard core recognizes all the command-line options but the custom one doesn't - and I don't know how to fix that myself. Cheers! =) Eduardo Ochs https://anggtwu.net/eev-maxima.html |