The root of the OpenMCL source hierarchy is a directory named
ccl
; the CVS project and source/binary tar.gz
distributions are all intended to create (or overwrite) a
ccl
directory in the working directory.
The lisp kernel sources reside in
ccl/lisp-kernel
.
The OpenMCL kernel for LinuxPPC ("ppccl") can be bult with the following standard Linux/GNU development tools:
cc
- the GNU C compiler (any recent version)
ld
- the GNU linker (any recent version)
m4
- the GNU m4 macro processor (any recent version)
as
- the GNU assembler (version 2.9.1 or later)
Prior to version 0.10 of OpenMCL, some of the assembly
language kernel sources used constructs that aren't properly
recognized by versions of GNU as
(GAS) older than
2.10.1; those constructs are no longer used, and I've been able to
assemble the OpenMCL sources with GAS 2.9.1. I don't know about
earlier versions, but that version's a couple of years old now.
You can determine the version of the installed as
on
your system by calling:
% as --version
in the shell. A copy of GNU as
is available at
ftp://clozure.com/pub/gas-2.10.1
; you could also consider checking your LinuxPPC distribution to
see if a newer version of the binutils
package is
available (or obtaining the binutils
sources from a
GNU mirror site.)
As of version 0.10.1 of OpenMCL,
ccl/lisp-kernel/linux/Makefile
defines a makefile
variable named AS as "as
", and quietly assumes
version 2.9.1 or greater of as
. Unless the version
of as
on your system is older than 2.9.1, it shouln't
be necessary to modify this definition.
With that definition in place, do:
% cd ccl/lisp-kernel/linux % make
That'll assemble several assembly language source files, compile several C source files, and link ../../ppccl.
The OpenMCL kernel for DarwinPPC ("dppccl") can be bult with the following development tools, which are available from Apple's developer website:
cc
- Apple's modified version of the GNU C compiler
ld
- Apple's linker
gm4
- the GNU m4 macro processor. Note that the 'm4'
program that Apple distributes is a different (and generally less
functional) version of m4.
as
- Apple's modified version of what was once the GNU assembler, a long time ago
I've used the "December 2001 Developer Tools Release" to build OpenMCL; I'm not aware of any significant difference between that release and the October 2001/OSX 10.1 release. I'd be skeptical of earlier versions.
It may be the case that recent versions of the Developer Tools are bundled with shrink-wrapped versions of OS X. They can be downloaded for free from Apple"s Developer site, which may require registration.
With the tools installed, building the DarwinPPC OpenMCL kernel is a simple matter of doing:
% cd ccl/lisp-kernel/darwin % make
That'll assemble and compile the kernel sources and create the OpenMCL kernel in ccl/dppccl.