[distcc] distcc different behaviour

RA RAIN RGBRAIN at yandex.ru
Thu Jul 8 02:04:50 MDT 2010


Hello! My name is Alexey. I am sorry for my poor English. Becouse I speak Russian.

I have some problem when compile a project with distcc.
I have project on C++ with QT 3.3.x

I trying to do this:
[root at host CreateReport]# cat ./distcc.sh
export DISTCC_VERBOSE=1
export DISTCC_HOSTS='192.168.10.133'
time make -j8 CC='distcc gcc' CXX='distcc g++' LINK='distcc g++'
[root at host CreateReport]# ./distcc.sh

[root at host28-6 CreateReport]#  ./distcc.sh
distcc g++ -c -pipe -Wall -W -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables  -DQT_NO_DEBUG -DQT_SHARED -DQT_THREAD_SUPPORT -I/usr/lib/qt-3.3/mkspecs/default -I. -I. -I/usr/include/Srvs -I/usr/include -I/usr/lib/qt-3.3/include -Itmp/ -o tmp/CreateReport.o CreateReport.cpp
distcc g++ -c -pipe -Wall -W -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables  -DQT_NO_DEBUG -DQT_SHARED -DQT_THREAD_SUPPORT -I/usr/lib/qt-3.3/mkspecs/default -I. -I. -I/usr/include/Srvs -I/usr/include -I/usr/lib/qt-3.3/include -Itmp/ -o tmp/CreateReport3.o CreateReport3.cpp
distcc[8514] (dcc_trace_version) distcc 3.1 x86_64-unknown-linux-gnu; built Dec  2 2008 17:00:34
distcc[8514] (dcc_recursion_safeguard) safeguard level=0
distcc[8514] (main) compiler name is "distcc"
distcc[8514] (dcc_scan_args) scanning arguments: g++ -c -pipe -Wall -W -O2 -g -pipe -Wall -D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -DQT_NO_DEBUG -DQT_SHARED -DQT_THREAD_SUPPORT -I/usr/lib/qt-3.3/mkspecs/default -I. -I. -I/usr/include/Srvs -I/usr/include -I/usr/lib/qt-3.3/include -Itmp/ -o tmp/CreateReport.o CreateReport.cpp
distcc[8514] (dcc_scan_args) found object/output file "tmp/CreateReport.o"
distcc[8514] (dcc_scan_args) found input file "CreateReport.cpp"
distcc[8514] compile from CreateReport.cpp to CreateReport.o
distcc[8514] (dcc_get_hostlist) read hosts from environment
distcc[8514] (dcc_parse_hosts) found tcp token "192.168.10.133"
distcc[8514] (dcc_lock_host) got cpu lock on 192.168.10.133 slot 0 as fd4
distcc[8514] (dcc_lock_host) got cpu lock on localhost slot 0 as fd6
distcc[8514] (dcc_note_state) note state 3, file "(NULL)", host "localhost"
distcc[8514] (dcc_strip_dasho) result: g++ -c -pipe -Wall -W -O2 -g -pipe -Wall -D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -DQT_NO_DEBUG -DQT_SHARED -DQT_THREAD_SUPPORT -I/usr/lib/qt-3.3/mkspecs/default -I. -I. -I/usr/include/Srvs -I/usr/include -I/usr/lib/qt-3.3/include -Itmp/ CreateReport.cpp
distcc[8514] (dcc_spawn_child) forking to execute: g++ -E -pipe -Wall -W -O2 -g -pipe -Wall -D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -DQT_NO_DEBUG -DQT_SHARED -DQT_THREAD_SUPPORT -I/usr/lib/qt-3.3/mkspecs/default -I. -I. -I/usr/include/Srvs -I/usr/include -I/usr/lib/qt-3.3/include -Itmp/ CreateReport.cpp
distcc[8515] (dcc_trace_version) distcc 3.1 x86_64-unknown-linux-gnu; built Dec  2 2008 17:00:34
distcc[8515] (dcc_recursion_safeguard) safeguard level=0
distcc[8515] (main) compiler name is "distcc"
distcc[8515] (dcc_scan_args) scanning arguments: g++ -c -pipe -Wall -W -O2 -g -pipe -Wall -D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -DQT_NO_DEBUG -DQT_SHARED -DQT_THREAD_SUPPORT -I/usr/lib/qt-3.3/mkspecs/default -I. -I. -I/usr/include/Srvs -I/usr/include -I/usr/lib/qt-3.3/include -Itmp/ -o tmp/CreateReport3.o CreateReport3.cpp
distcc[8515] (dcc_scan_args) found object/output file "tmp/CreateReport3.o"
distcc[8515] (dcc_scan_args) found input file "CreateReport3.cpp"
distcc[8515] compile from CreateReport3.cpp to CreateReport3.o
distcc[8515] (dcc_get_hostlist) read hosts from environment
distcc[8515] (dcc_parse_hosts) found tcp token "192.168.10.133"
distcc[8515] (dcc_lock_host) /root/.distcc/lock/cpu_tcp_192.168.10.133_3632_0 is busy
distcc[8515] (dcc_lock_host) got cpu lock on 192.168.10.133 slot 1 as fd4
distcc[8515] (dcc_lock_host) /root/.distcc/lock/cpu_localhost_0 is busy
distcc[8515] (dcc_lock_host) got cpu lock on localhost slot 1 as fd6
distcc[8515] (dcc_note_state) note state 3, file "(NULL)", host "localhost"
distcc[8515] (dcc_strip_dasho) result: g++ -c -pipe -Wall -W -O2 -g -pipe -Wall -D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -DQT_NO_DEBUG -DQT_SHARED -DQT_THREAD_SUPPORT -I/usr/lib/qt-3.3/mkspecs/default -I. -I. -I/usr/include/Srvs -I/usr/include -I/usr/lib/qt-3.3/include -Itmp/ CreateReport3.cpp
distcc[8515] (dcc_spawn_child) forking to execute: g++ -E -pipe -Wall -W -O2 -g -pipe -Wall -D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -DQT_NO_DEBUG -DQT_SHARED -DQT_THREAD_SUPPORT -I/usr/lib/qt-3.3/mkspecs/default -I. -I. -I/usr/include/Srvs -I/usr/include -I/usr/lib/qt-3.3/include -Itmp/ CreateReport3.cpp
distcc[8515] (dcc_spawn_child) child started as pid8517
distcc[8515] (dcc_strip_local_args) result: g++ -c -pipe -Wall -W -O2 -g -pipe -Wall -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -o tmp/CreateReport3.o CreateReport3.cpp
distcc[8515] exec on 192.168.10.133: g++ -c -pipe -Wall -W -O2 -g -pipe -Wall -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -o tmp/CreateReport3.o CreateReport3.cpp
distcc[8515] (dcc_note_state) note state 2, file "CreateReport3.cpp", host "192.168.10.133"
distcc[8515] (dcc_connect_by_name) connecting to 192.168.10.133 port 3632
distcc[8515] (dcc_connect_by_addr) started connecting to 192.168.10.133:3632
distcc[8515] (dcc_select_for_write) select for write on fd8
distcc[8514] (dcc_spawn_child) child started as pid8516
distcc[8514] (dcc_strip_local_args) result: g++ -c -pipe -Wall -W -O2 -g -pipe -Wall -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -o tmp/CreateReport.o CreateReport.cpp
distcc[8514] exec on 192.168.10.133: g++ -c -pipe -Wall -W -O2 -g -pipe -Wall -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -o tmp/CreateReport.o CreateReport.cpp
distcc[8514] (dcc_note_state) note state 2, file "CreateReport.cpp", host "192.168.10.133"
distcc[8514] (dcc_connect_by_name) connecting to 192.168.10.133 port 3632
distcc[8514] (dcc_connect_by_addr) started connecting to 192.168.10.133:3632
distcc[8514] (dcc_select_for_write) select for write on fd8
distcc[8515] (dcc_note_state) note state 4, file "(NULL)", host "(NULL)"
distcc[8515] (dcc_x_token_int) send DIST00000001
distcc[8515] (dcc_x_token_int) send ARGC00000013
distcc[8515] (dcc_x_token_int) send ARGV00000003
distcc[8515] (dcc_x_token_string) send string 'g++'
distcc[8515] (dcc_x_token_int) send ARGV00000002
distcc[8515] (dcc_x_token_string) send string '-c'
distcc[8515] (dcc_x_token_int) send ARGV00000005
distcc[8515] (dcc_x_token_string) send string '-pipe'
distcc[8515] (dcc_x_token_int) send ARGV00000005
distcc[8515] (dcc_x_token_string) send string '-Wall'
distcc[8515] (dcc_x_token_int) send ARGV00000002
distcc[8515] (dcc_x_token_string) send string '-W'
distcc[8515] (dcc_x_token_int) send ARGV00000003
distcc[8515] (dcc_x_token_string) send string '-O2'
distcc[8515] (dcc_x_token_int) send ARGV00000002
distcc[8515] (dcc_x_token_string) send string '-g'
distcc[8515] (dcc_x_token_int) send ARGV00000005
distcc[8515] (dcc_x_token_string) send string '-pipe'
distcc[8515] (dcc_x_token_int) send ARGV00000005
distcc[8515] (dcc_x_token_string) send string '-Wall'
distcc[8515] (dcc_x_token_int) send ARGV0000000c
distcc[8515] (dcc_x_token_string) send string '-fexceptions'
distcc[8515] (dcc_x_token_int) send ARGV00000011
distcc[8515] (dcc_x_token_string) send string '-fstack-protector'
distcc[8515] (dcc_x_token_int) send ARGV00000019
distcc[8515] (dcc_x_token_string) send string '--param=ssp-buffer-size=4'
distcc[8515] (dcc_x_token_int) send ARGV00000004
distcc[8515] (dcc_x_token_string) send string '-m32'
distcc[8515] (dcc_x_token_int) send ARGV0000000b
distcc[8515] (dcc_x_token_string) send string '-march=i386'
distcc[8515] (dcc_x_token_int) send ARGV0000000e
distcc[8515] (dcc_x_token_string) send string '-mtune=generic'
distcc[8515] (dcc_x_token_int) send ARGV0000001c
distcc[8515] (dcc_x_token_string) send string '-fasynchronous-unwind-tables'
distcc[8515] (dcc_x_token_int) send ARGV00000002
distcc[8515] (dcc_x_token_string) send string '-o'
distcc[8515] (dcc_x_token_int) send ARGV00000013
distcc[8515] (dcc_x_token_string) send string 'tmp/CreateReport3.o'
distcc[8515] (dcc_x_token_int) send ARGV00000011
distcc[8515] (dcc_x_token_string) send string 'CreateReport3.cpp'
distcc[8515] (dcc_note_state) note state 3, file "(NULL)", host "(NULL)"
distcc[8514] (dcc_note_state) note state 4, file "(NULL)", host "(NULL)"
distcc[8514] (dcc_x_token_int) send DIST00000001
distcc[8514] (dcc_x_token_int) send ARGC00000013
distcc[8514] (dcc_x_token_int) send ARGV00000003
distcc[8514] (dcc_x_token_string) send string 'g++'
distcc[8514] (dcc_x_token_int) send ARGV00000002
distcc[8514] (dcc_x_token_string) send string '-c'
distcc[8514] (dcc_x_token_int) send ARGV00000005
distcc[8514] (dcc_x_token_string) send string '-pipe'
distcc[8514] (dcc_x_token_int) send ARGV00000005
distcc[8514] (dcc_x_token_string) send string '-Wall'
distcc[8514] (dcc_x_token_int) send ARGV00000002
distcc[8514] (dcc_x_token_string) send string '-W'
distcc[8514] (dcc_x_token_int) send ARGV00000003
distcc[8514] (dcc_x_token_string) send string '-O2'
distcc[8514] (dcc_x_token_int) send ARGV00000002
distcc[8514] (dcc_x_token_string) send string '-g'
distcc[8514] (dcc_x_token_int) send ARGV00000005
distcc[8514] (dcc_x_token_string) send string '-pipe'
distcc[8514] (dcc_x_token_int) send ARGV00000005
distcc[8514] (dcc_x_token_string) send string '-Wall'
distcc[8514] (dcc_x_token_int) send ARGV0000000c
distcc[8514] (dcc_x_token_string) send string '-fexceptions'
distcc[8514] (dcc_x_token_int) send ARGV00000011
distcc[8514] (dcc_x_token_string) send string '-fstack-protector'
distcc[8514] (dcc_x_token_int) send ARGV00000019
distcc[8514] (dcc_x_token_string) send string '--param=ssp-buffer-size=4'
distcc[8514] (dcc_x_token_int) send ARGV00000004
distcc[8514] (dcc_x_token_string) send string '-m32'
distcc[8514] (dcc_x_token_int) send ARGV0000000b
distcc[8514] (dcc_x_token_string) send string '-march=i386'
distcc[8514] (dcc_x_token_int) send ARGV0000000e
distcc[8514] (dcc_x_token_string) send string '-mtune=generic'
distcc[8514] (dcc_x_token_int) send ARGV0000001c
distcc[8514] (dcc_x_token_string) send string '-fasynchronous-unwind-tables'
distcc[8514] (dcc_x_token_int) send ARGV00000002
distcc[8514] (dcc_x_token_string) send string '-o'
distcc[8514] (dcc_x_token_int) send ARGV00000017
distcc[8514] (dcc_x_token_string) send string 'tmp/CreateReport.o'
distcc[8514] (dcc_x_token_int) send ARGV00000015
distcc[8514] (dcc_x_token_string) send string 'CreateReport.cpp'
distcc[8514] (dcc_note_state) note state 3, file "(NULL)", host "(NULL)"
distcc[8515] (dcc_client_signalled) Interrupt
distcc[8515] (dcc_cleanup_tempfiles_inner) deleted 2 temporary files
distcc[8514] (dcc_client_signalled) Interrupt
distcc[8514] (dcc_cleanup_tempfiles_inner) deleted 2 temporary files

make: *** [tmp/CreateReport3.o] Прерывание
make: *** wait: Нет дочерних процессов.  Останов.
make: *** Ожидание завершения заданий...
make: *** wait: Нет дочерних процессов.  Останов.

real    0m20.094s
user    0m0.012s
sys     0m0.016s
----------------------------------------
distccmon-text 1   always say next:
8514  Preprocess  CreateReport.cpp                    192.168.10.133[0]
  8515  Preprocess  CreateReport3.cpp                        192.168.10.133[1]

  8514  Preprocess  CreateReport.cpp                    192.168.10.133[0]
  8515  Preprocess  CreateReport3.cpp                        192.168.10.133[1]

  8514  Preprocess  CreateReport.cpp                    192.168.10.133[0]
  8515  Preprocess  CreateReport3.cpp                        192.168.10.133[1]
------------------------------------------------
and nothing do not changing
then i precc Ctrl-C
---------------------------

But when I redirect a error stream to file then all be done:
[root at host28-6 CreateReport]# ./distcc.sh 2>/dev/null
distcc g++ -c -pipe -Wall -W -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables  -DQT_NO_DEBUG -DQT_SHARED -DQT_THREAD_SUPPORT -I/usr/lib/qt-3.3/mkspecs/default -I. -I. -I/usr/include/Srvs -I/usr/include -I/usr/lib/qt-3.3/include -Itmp/ -o tmp/CreateReport.o CreateReport.cpp
distcc g++ -c -pipe -Wall -W -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables  -DQT_NO_DEBUG -DQT_SHARED -DQT_THREAD_SUPPORT -I/usr/lib/qt-3.3/mkspecs/default -I. -I. -I/usr/include/Srvs -I/usr/include -I/usr/lib/qt-3.3/include -Itmp/ -o tmp/CreateReport3.o CreateReport3.cpp
test -d bin/ || mkdir -p bin/
distcc g++ -Wl,-rpath,/usr/lib/qt-3.3/lib -o bin/CreateReport tmp/CreateReport.o tmp/CreateReport3.o    -L/usr/lib/qt-3.3/lib -L./lib/ -lMSKU_M_OBD -lREPCl -lqt-mt -lXext -lX11 -lm
-----------
distccmon-text 1 say this:
 9254  Preprocess  CreateReport.cpp                    192.168.10.133[0]
  9255  Preprocess  CreateReport3.cpp                        192.168.10.133[1]

  9254  Compile     CreateReport.cpp                    192.168.10.133[0]
  9255  Compile     CreateReport3.cpp                        192.168.10.133[1]

  9254  Compile     CreateReport.cpp                    192.168.10.133[0]

  9270  Compile                                                   localhost[0]
--------------------------------
and all work well!
---
I use
Name        : distcc                       Relocations: /usr
Version     : 3.1                               Vendor: (none)
Release     : 1                             Build Date: Срд 03 Дек 2008 00:00:48
Install Date: Втр 06 Июл 2010 13:49:07      Build Host: fergus-warp.nyc.corp.google.com
Group       : Development/Languages         Source RPM: distcc-3.1-1.src.rpm
Size        : 1063302                          License: GPL
Signature   : (none)
Packager    : Google Inc. <opensource at google.com>
URL         : https://code.google.com/p/distcc
Summary     : Client side program for distributed C/C++ compilations.

On both PC I use  Fedora 6  and compiler
gcc -v
Using built-in specs.
Target: i386-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-libgcj-multifile --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --disable-dssi --enable-plugin --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre --with-cpu=generic --host=i386-redhat-linux
Thread model: posix
gcc version 4.1.1 20061011 (Red Hat 4.1.1-30)

If you fix this or you know about this send me letter
or send me link wheare i can track this


More information about the distcc mailing list