README 6.9 KB

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