source: branches/0.27.x/abcl/README

Last change on this file was 13578, checked in by Mark Evenson, 13 years ago

Refresh README.

Update Maven dependencies to explicit 0.27.1 version.

  • Property svn:eol-style set to native
File size: 6.4 KB
Line 
1ABCL README
2===========
3
4This file corresponds to the abcl-0.27.1 release.
5
6GENERAL INFORMATION
7===================
8
9Armed Bear Common Lisp is an implementation of ANSI Common Lisp that
10runs in a Java virtual machine.  It compiles Lisp code directly to
11Java byte code.
12
13
14LICENSE
15=======
16
17Armed Bear Common Lisp is distributed under the GNU General Public
18License with a classpath exception (see "Classpath Exception" below).
19
20A copy of GNU General Public License (GPL) is included in this
21distribution, in the file COPYING.
22
23Linking this software statically or dynamically with other modules is
24making a combined work based on this software. Thus, the terms and
25conditions of the GNU General Public License cover the whole
26combination.
27
28** Classpath Exception
29
30As a special exception, the copyright holders of this software give
31you permission to link this software with independent modules to
32produce an executable, regardless of the license terms of these
33independent modules, and to copy and distribute the resulting
34executable under terms of your choice, provided that you also meet,
35for each linked independent module, the terms and conditions of the
36license of that module. An independent module is a module which is not
37derived from or based on this software. If you modify this software,
38you may extend this exception to your version of the software, but you
39are not obligated to do so. If you do not wish to do so, delete this
40exception statement from your version.
41
42
43RUNNING FROM BINARY RELEASE
44===========================
45
46After you have downloaded a binary release archive unpack it into its
47own directory. To run ABCL directly from this directory, make sure
48Java (version 1.5 or up) is in your shell's path. Then issue the
49following command:
50
51    cmd$ java -jar abcl.jar
52
53which should result in output like the following
54
55    Armed Bear Common Lisp 0.27.1
56    Java 1.6.0_21 Sun Microsystems Inc.
57    Java HotSpot(TM) Client VM
58    Low-level initialization completed in 0.3 seconds.
59    Startup completed in 2.294 seconds.
60    Type ":help" for a list of available commands.
61    CL-USER(1):
62
63
64BUILDING FROM SOURCE RELEASE
65============================
66
67There are three ways to build ABCL from the source release with the
68preferred (and most tested way) is to being to use the Ant build tool:
69
70* Use the Ant build tool for Java environments.
71
72* Use the Netbeans IDE to open ABCL as a project.
73
74* Bootstrap ABCL using a Common Lisp implementation. Supported
75  implementations for this process: SBCL, CMUCL, OpenMCL, Allegro
76  CL, LispWorks or CLISP.
77
78In all cases you need a Java 5 or later JDK (JDK 1.5 and 1.6 have been
79tested).  Just the JRE isn't enough, as you need the Java compiler
80('javac') to compile the Java source of the ABCL implementation.
81
82Note that when deploying ABCL having JDK isn't a requirement for the
83installation site, just the equivalent JRE, as ABCL compiles directly
84to byte code, avoiding the need for the 'javac' compiler in deployment
85environments.
86
87
88Using Ant
89---------
90
91Download a binary distribution [Ant version 1.7.1 or greater][1].
92Unpack the files somewhere convenient, ensuring that the 'ant' (or
93'ant.bat' under Windows) executable is in your path and executable.
94
95[1]: http://ant.apache.org/bindownload.cgi
96
97Then simply executing
98
99    unix$ ant
100
101or
102    dos> ant.bat
103
104from the directory containing this README file will create an
105executable wrapper ('abcl' under UNIX, 'abcl.bat' under Windows).  Use
106this wrapper to start ABCL.
107
108
109Using NetBeans
110--------------
111
112Obtain and install the [Netbeans IDE][2]. One should be able to open
113the ABCL directory as a project in the Netbeans 7.x application,
114whereupon the usual build, run, and debug targets as invoked in the
115GUI are available.
116
117[2]: http://netbeans.org/downloads/
118
119
120Building from Lisp
121------------------
122
123Building from a Lisp is the most venerable and untested way of
124building ABCL.  It produces a "non-standard" version of the
125distribution that doesn't share build instructions with the previous
126two methods, but it still may be of interest to those who absolutely
127don't want to know anything about Java.
128
129First, copy the file 'customizations.lisp.in' to 'customization.lisp',
130in the directory containing this README file, editing to suit your
131situation, paying attention to the comments in the file.  The critical
132step is to have Lisp special variable '*JDK*' point to the root of the
133Java Development Kit.  Underneath the directory referenced by the
134value of '*JDK*' there should be an exectuable Java compiler in
135'bin/javac' ('bin/java.exe' under Windows).
136
137Then, one may either use the 'build-from-lisp.sh' shell script or load
138the necessary files into your Lisp image by hand.
139
140** Using the 'build-from-lisp.sh' script
141
142Under UNIX-like systems, you may simply invoke the
143'build-from-lisp.sh' script as './build-from-lisp.sh
144<lisp-of-choice>', e.g.
145
146    unix$ ./build-from-lisp.sh sbcl
147
148After a successful build, you may use 'abcl' ('abcl.bat' on Windows)
149to start ABCL.  Note that this wrappers contain absolute paths, so
150you'll need to edit them if you move things around after the build.
151
152If you're developing on ABCL, you may want to use
153
154    unix$ ./build-from-lisp.sh <implementation> --clean=nil
155
156to not do a full rebuild.
157
158In case of failure in the javac stage, you might try this:
159
160    unix$ ./build-from-lisp.sh <implementation> --full=t --clean=t --batch=nil
161
162This invokes javac separately for each .java file, which avoids running
163into limitations on command line length (but is a lot slower).
164
165** Building from another Lisp by hand
166
167There is also an ASDF definition in 'abcl.asd' for the BUILD-ABCL
168which can be used to load the necessary Lisp definitions, after which
169
170    CL-USER> (build-abcl:build-abcl :clean t :full t)
171
172will build ABCL.  If ASDF isn't present, simply LOAD the
173'customizations.lisp' and 'build-abcl.lisp' files to achieve the same
174effect as loading the ASDF definition.
175
176
177BUGS
178====
179
180A lot of (renewed) energy has been spent to make ABCL a compliant and
181practically useable Common Lisp implementation.  Because of this, ABCL
1820.27.1 now fails only 20 out of 21702 tests in the ANSI CL test suite.
183Maxima's test suite runs without failures.  ABCL's CLOS is complete
184albeit buggy.  Notably, the MOP is incomplete and the long form of
185DEFINE-METHOD-COMBINATION does not work well.
186
187Patches to address any outstanding issues above will be gladly
188accepted.
189
190Please report problems to the development mailing list:
191
192    armedbear-devel@common-lisp.net
193
194Have fun!
195
196On behalf of all ABCL development team and contributors,
197Erik Huelsmann
198Mark Evenson
199September 11, 2011
Note: See TracBrowser for help on using the repository browser.