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