Skip to content

Rebuilding from source

R. Matthew Emerson edited this page Sep 28, 2018 · 1 revision

Building from source

When everything is normal, you can rebuild CCL from source easily.

% ccl -n
? (rebuild-ccl :full t)

This does two things: it creates a new heap image, and it recompiles the lisp kernel (a C and assembly language program).

Sometimes you may need or want to do one or both of these things separately.

Build the lisp kernel

cd path/to/ccl
cd lisp-kernel/darwinx8664  # or linuxx8664, freebsdx8664, etc.
make clean
make

Note that this will write the lisp kernel binary to ../.., or in other words, to path/to/ccl (the root of the CCL directory).

Build the heap image

With a lisp kernel and an existing heap image, you can build a new heap image.

cd path/to/ccl
./dx86cl64 -n
? (rebuild-ccl :clean t)