32 bit Distcc server on AMD64 Debian

February 8th, 2009

Is this possible? Probably, either either with an -m32 wrapper script or with a 32-bit chroot environment. Here's my first try:/usr/local/bin/gcc-4.1

#!/bin/sh/usr/bin/gcc-4.1 -m32 $@

I just learned that with /usr/local/bin/ its easy to override /bin/ because it usually comes before /bin in the PATH environment variable. Cool!

Not sure if this works just yet, trying it out now. Nope, this didn't work. I'm going the chroot route now. Distccd doesn't want to start for me in the chroot, I'm manually starting it to test.

Chroot Works! (mostly)

I have to manually start distccd because the initscript doesn't work for some reason, must be something about the chroot setup. Here's the command I'm using:

distccd --listen --no-detach --allow --user=distccd --log-file=/var/log/distccd.log

The resulting distccd.log:

distccd[21746] (dcc_check_client) connection from

distccd[21746] compile from to

distccd[21746] (dcc_r_file_timed) 512460 bytes received in 0.045744s, rate 10940kB/s

distccd[21750] (dcc_collect_child) cc times: user 0.288018s, system 0.068004s, 4370 minflt, 0 majflt

distccd[21750] /usr/bin/gcc-4.1 /root/.ccache/ on localhost completed ok

Helpful Links

Yearly Indexes: 2003 2004 2006 2007 2008 2009 2010 2011 2012 2013 2015 2019 2020 2022