Okay, I'm going to try to write this as I go... and try to compile stock emacs22 from zaurus using distcc and my debian/ubuntu laptop
From debian based "desktop" laptop PC:
Install distcc
apt-get install distcc
Install arm cross-compiler
wget http://www.codesourcery.com/gnu_toolchains/arm/portal/package2549/public/arm-none-linux-gnueabi/arm-2008q1-126-arm-none-linux-gnueabi-i686-pc-linu
x-gnu.tar.bz2
Install to "/usr/local/"
tar -xvjf arm-2008q1-126-arm-none-linux-gnueabi-i686-pc-linux-gnu.tar.bz2
mv arm-2008q1 /usr/local
make a directory for the links to the cross gcc,
mkdir /home/radiochickenwax/distcc
make some links so that distcc uses the laptop's ARM cross compilers
ln -s /usr/local/arm-2008q1/bin/arm-none-linux-gnueabi-gcc /home/radiochickenwax/distcc/gcc
ln -s /usr/local/arm-2008q1/bin/arm-none-linux-gnueabi-g++ /home/radiochickenwax/distcc/g++
ln -s /usr/local/arm-2008q1/bin/arm-none-linux-gnueabi-c++ /home/radiochickenwax/distcc/c++
still on laptop,add the paths to the cross-compiler to the system path:
export PATH=/home/radiochickenwax/distcc:$PATH
the above should override the default (x86) compilers
I'm going to do this compiliation over USB, since I don't have a wifi card handy. The important thing is that we know the IP addresses of both zaurus and slave/laptop. I'm using the setup from
https://www.oesf.org/forum/index.php?showtopic=25025where the laptop is 192.168.129.1
and the zaurus is 192.168.129.10
start the "distcc" server to accept commands from zaurus (192.168.129.10)
distccd --daemon -a 192.168.129.10
gives me warning:
distccd[13340] (dcc_preferred_user) Warning: no such user as "distcc"
Now, from the zaurus:
apt-get install distcc
link the distcc compilers to override the standard zaurus compilers and build over network: (similar to laptop setting)
mkdir /root/distcc/
ln -s /usr/bin/distcc /root/distcc/gcc
ln -s /usr/bin/distcc /root/distcc/g++
ln -s /usr/bin/distcc /root/distcc/c++
export PATH=/root/distcc:$PATH
Indicate where laptop is
export DISTCC_HOSTS=192.168.129.1
get sources, configure, compile over network (check with "top" command on laptop to see if cross compiler is working):
cd /usr/src
cvs -z3 -d:pserver:anonymous@cvs.savannah.gnu.org:/cvsroot/emacs co -rEMACS_22_2 emacs
cd emacs
./configure && make bootstrap && make && make install
cross fingers, and see if this works....
Note, I wanted to rebuild emacs22 from stock source because I'm having trouble getting images to display inline on the repo version. Before trying this I did
apt-get --compile source
and that applied a bunch of patches that I didn't want.
I just thought I'd try/mention this method since you mentioned using distcc. I'll reply later to this thread what happens with emacs22.