Archive: 2008/7

Compiling SBCL with Threads and Unicode

This is one of those note-to-self posts. For whatever reason, I nearly always forget to enable threads and unicode when I build SBCL. Threads are required by hunchentoot; I enable Unicode just for kicks.

Here's my build recipe for SBCL:

  1. > git clone git://sbcl.boinkor.net/sbcl.git sbcl-git ./sbcl.git
  2. > cd sbcl.git
  3. > git checkout sbcl_1_0_18
  4. Edit customize-target-features.lisp to enable the features you want.
     (lambda (features)
       (flet ((enable (x)
                (pushnew x features))
              (disable (x)
                (setf features (remove x features))))
         ;; Threading support, available only on x86/x86-64 Linux, x86 Solaris
         ;; and x86 Mac OS X (experimental).
         (enable :sb-thread)
         (enable :sb-unicode)))
    
  5. > screen
  6. > sh make.sh
  7. detach screen from terminal while compiling -- too much output! Ctrl-a, d
  8. > sudo INSTALL_ROOT=/opt/sbcl sh install.sh