On 05/31/2015 08:12 AM, Sam Varshavchik wrote:
I've got distcc working correctly, when I run a build myself. I
see the
build jobs getting distributed just fine.
However, when I use rpmbuild, all builds appear to be running locally.
As I recall, distcc involves running distcc instead of gcc. Do the RPM
builds somehow override which compiler get used to use the standard gcc
compiler instead of distcc? Perhaps through an environment variable in
the build script?
ps shows the maximum number of "/usr/bin/distcc /usr/bin/g++
[options]"
processes running locally, that I but nothing gets distributed to other
hosts.
I've got %_smp_mflags set correctly to the number of build jobs
that can
run in parallel, to the sum total of jobs that can be distributed via
/etc/distcc/hosts. Counting the number of distcc processes, I see that
the right number of jobs have started, but only the local build jobs are
running, and nothing gets distributed.
There must me something in the environment that's doing this,
because
when I make the build myself, it works correctly.
--
Kevin J. Cummings
kjchome(a)verizon.net
cummings(a)kjchome.homeip.net
cummings(a)kjc386.framingham.ma.us
Registered Linux User #1232 (
http://www.linuxcounter.net/)