by NoX » Mon Sep 21, 2015 7:18 pm
Hi,
i was able to build sbcl on the RaspberryPi 2 under archlinuxarm (date: Sep 2015) using the sbcl ARMhf binary provided by sbcl.org . (http://www.sbcl.org/platform-table.html) I have not fully tested the resulting binaries.
Here are my steps. I hope someone can use it.
1. install binary distribution
wget http://prdownloads.sourceforge.net/sbcl/sbcl-1.2.14-armhf-linux-binary.tar.bz2
tar -xjvf sbcl-1.2.14-armhf-linux-binary.tar.bz2
cd sbcl-1.2.14-arm-linux/
INSTALL_ROOT=/home/alarm/sbcl sh install.sh
export SBCL_HOME=/home/alarm/sbcl/lib/sbcl
export PATH=$PATH:/home/alarm/sbcl/bin/
1a. test installation
sbcl
to exit type (SB-EXT:EXIT)
2. build sbcl from source
copy files from https://projects.archlinux.org/svntogit/packages.git/tree/trunk?h=packages/sbcl into a directory
edit PKGBUILD
- add 'armv7h' into arch
- remove makedepends=('sbcl')
- change (enable :sb-thread) to (disable :sb-thread)
run makepkg
there should be an sbcl-1.2.12-1-armv7h.pkg.tar.xz file. Yes an older version as the binary distribution. Update version number and md5 sums your self.
install it using "pacman -U ./sbcl-1.2.12-1-armv7h.pkg.tar.xz" , i think.
2a. now you have an packed base installation
you can add the makedepends=('sbcl') and do what you want.
3. build roslisp, that was my goal
yaourt --needed ros-indigo-roslisp
If you skipped step 2, edit PGKBUILD - remove depend=('sbcl')
4. remove binary distribution
rm -r /home/alarm/sbcl
BTW: Yes, i needed this to build ros-indigo-robot*