Maxima: Compiling with gcl, cmucl, sbcl, clisp.



Dear All,

Due to a disk crash I am trying to compile Maxima 5.12 (and earlier versions) 
using gcl, sbcl and cmucl on suse 9.1 (32 bit) and suse 10.1 (64 bit) systems.

Any assistance with the following would be much appreciated:


(1) I installed sbcl on suse 10.1, 64 bit and used it to compile maxima 5.12, 
but am getting the following error:

cfrangos at omega:~/gnu> sbcl
mmap: Cannot allocate memory
ensure_space: failed to validate 8589869056 bytes at 0x1000000000
(hint: Try "ulimit -a"; maybe you should increase memory limits.)

The command: ulimit -v 8600000,  solves the problem  using bash but I do not 
know the equivalent command for tcsh, which is what I use.

(The above memory allocation error does not appear with sbcl installed on 
suse 9.1, 32 bit).

If I enter the full path then Maxima 5.12 sbcl starts correctly (using bash 
and tcsh). However, at the Maxima prompt I cannot recall the previous 
instructions using the arrow keys. Not clear how to remedy this.

cfrangos at omega:~/axiom> /home/apps/maxima5.12sbcl/maxima-5.12.0/maxima-local
Maxima 5.12.0 http://maxima.sourceforge.net
Using Lisp SBCL 1.0.6
Distributed under the GNU Public License. See the file COPYING.
Dedicated to the memory of William Schelter.
This is a development version of Maxima. The function bug_report()
provides bug reporting information.
(%i1) quit();
cfrangos at omega:~/axiom> 



I created a symbolic link in /home/apps/bin with the command:
ln -s /home/apps/maxima5.12sbcl/maxima-5.12.0/maxima-local maxima5.12sbcl

However, this does not work (see below). Not clear what to do here. 

cfrangos/axiom> maxima5.12sbcl
/bin/sh: /home/apps/bin/src/maxima: No such file or directory


The command: maxima, starts Maxima 5.12 compiled with clisp.

cfrangos/axiom> maxima
Maxima 5.12.0 http://maxima.sourceforge.net
Using Lisp CLISP 2.37 (2006-01-02)
Distributed under the GNU Public License. See the file COPYING.
Dedicated to the memory of William Schelter.
This is a development version of Maxima. The function bug_report()
provides bug reporting information.
(%i1) 




(2) I tried to compile Maxima 5.9.0 (I assume close to 5.9.1) with sbcl on 
suse 10.1, 64 bit. I started with the command: ./configure --enable-sbcl. 
However, the program output indicates that clisp is selected (as cmucl and 
sbcl are not available options ??):

omega maxima5.9sbcl/maxima-5.9.0# ./configure --enable-sbcl
loading cache ./config.cache
checking for a BSD compatible install... (cached) /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... (cached) yes
checking for working aclocal... found
checking for working autoconf... found
checking for working automake... found
checking for working autoheader... found
checking for working makeinfo... missing
checking host system type... x86_64-unknown-linux-gnu
checking for clisp... (cached) true
checking POSIX shell to see that it contains getopts... trying /bin/sh
POSIX shell is /bin/sh
creating ./config.status
.....
creating share/Makefile
creating demo/Makefile
creating plotting/Makefile

Summary:
clisp enabled. Executable name: "clisp"
default lisp: clisp
wish executable name: "wish"
omega maxima5.9sbcl/maxima-5.9.0# 


If possible, please send me the configure file and any other relevant files 
for Maxima 5.9 where sbcl and cmucl are included as options.





(3) I have installed cmucl on suse 9.1, 32 bit, in the directory 
/home/apps/cmucl.

/home/frangos> /home/apps/cmucl/bin/lisp
CMU Common Lisp 19d (19D), running on zeus1
With core: /home/apps/cmucl/lib/cmucl/lib/lisp.core
Dumped on: Thu, 2006-11-16 04:43:04+02:00 on lorien
See <http://www.cons.org/cmucl/>; for support information.
Loaded subsystems:
    Python 1.1, target Intel x86
    CLOS based on Gerd's PCL 2004/04/14 03:32:47
* 


I made a link in /home/apps/bin using the command: ln -s  
/home/apps/cmucl/bin/lisp lisp, but this does not work. 

/home/frangos> lisp
Cannot find core file
Based on lisp binary path `lisp'
/home/frangos> 


When I try to compile Maxima 5.12 with cmucl, the system somehow cannot find 
the command lisp on the path. Not clear what to do here.

zeus1:/home/apps/maxima5.12cmucl/maxima-5.12.0 # ./configure --enable-cmucl
checking for a BSD-compatible install... /usr/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 lisp... false
checking for lisp... (cached) false
configure: WARNING: cmucl executable lisp not found in PATH
checking for iconv... true
checking for recode... true
./configure: line 1: lisp: command not found





(4) I tried to compile Maxima 5.12 on suse 9.1, 32 bit, with the preinstalled 
clisp compiler,

/home/frangos> clisp --version
GNU CLISP 2.30 (released 2002-09-15) (built on tschaikowsky.suse.de 
[10.10.129.121])
Features: 
(CLOS LOOP COMPILER CLISP ANSI-CL COMMON-LISP LISP=CL INTERPRETER
 SOCKETS GENERIC-STREAMS LOGICAL-PATHNAMES SCREEN FFI UNICODE
 BASE-CHAR=CHARACTER SYSCALLS PC386 UNIX)
/home/frangos> 


The following error is obtained:


;; Loaded file binary-clisp/letmac.fas
;    - Compiling module "compatibility-macros1" 
;      - Loading binary file "binary-clisp/generr.fas" 
;; Loading file binary-clisp/generr.fas ...
;; Loaded file binary-clisp/generr.fas
;      - Compiling source file
;        "/home/apps/maxima5.12clisp/maxima-5.12.0/src/clmacs.lisp"
Compiling file /home/apps/maxima5.12clisp/maxima-5.12.0/src/clmacs.lisp ...
*** - READ from 
#<INPUT BUFFERED FILE-STREAM CHARACTER
  #P"/home/apps/maxima5.12clisp/maxima-5.12.0/src/clmacs.lisp" @314>: 
#<PACKAGE CUSTOM> has no external symbol with name 
"*FLOATING-POINT-RATIONAL-CONTAGION-ANSI*"
0 errors, 0 warnings
make[1]: *** [binary-clisp/maxima.mem] Error 1
make[1]: Leaving directory `/home/apps/maxima5.12clisp/maxima-5.12.0/src'
make: *** [check-recursive] Error 1
zeus1:/home/apps/maxima5.12clisp/maxima-5.12.0 # 



(5) I tried to install gcl on suse 9.1, 32 bit, using the commands: 
./configure --enable-ansi, make, make install.

At the command make or make install (do not recall which) the system gave the 
following error:


; (DEFUN #:|(PRECOMPILE-INITIALIZE-INSTANCE-SIMPLE PCL 19)9995| ...) is being 
compiled.
;; Warning: The variable CVECTOR is not used.
; (DEFUN #:|(PRECOMPILE-INITIALIZE-INSTANCE-SIMPLE PCL 20)9995| ...) is being 
compiled.
;; Warning: The variable CVECTOR is not used.
End of Pass 1.  
End of Pass 2.  
OPTIMIZE levels: Safety=1 (No runtime error checking), Space=0, Speed=3
Finished compiling /home/apps/gcl/gcl-2.6.7/unixport/../pcl/gcl_pcl_precom2.o.
T
ANSI-LOOP>>make[1]: *** [gcl_pcl_boot.c] Error 255
make[1]: Leaving directory `/home/apps/gcl/gcl-2.6.7/pcl'
make: *** [unixport/saved_pcl_gcl] Error 2
zeus1:/home/apps/gcl/gcl-2.6.7 # 



Thanks very much.

C. Frangos.