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:
apt-get install distcc
Install arm cross-compiler
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,
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:
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 http://www.oesf.org/forum/index.php?showtopic=25025
where 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 (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)
ln -s /usr/bin/distcc /root/distcc/gcc
ln -s /usr/bin/distcc /root/distcc/g++
ln -s /usr/bin/distcc /root/distcc/c++
Indicate where laptop is
get sources, configure, compile over network (check with "top" command on laptop to see if cross compiler is working):
cvs -z3 -d:pserver:email@example.com:/cvsroot/emacs co -rEMACS_22_2 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.