[distcc] redeclared symbol error

Alex Olugbile aoo at csag.ucsd.edu
Sun Jun 15 20:14:37 GMT 2003


Hi Martin,
	I've attached the logs, but the preprocessor output is approx 1 
MB; I'll send it if you must have it. distcc compiles a simple hello world 
program without error, but applications of greater complexity are failing. 
I've tried to build my project library, siege (HTTP server stress tool), 
and distcc itself, all failed with simillar errors. 
	I don't believe there's anything special in my project that's 
breaking distcc, but I believe there may be something wrong with the 
include path used by the distcc daemon(server). 

DistCC version: 2.5.1
gcc version: 3.0.4

Attached files
Client log: distcc.log (3.8 KB)
Server log: distccd.log (4.6 KB)

Please let me know if you need the preprocessor output

Alex

On Sun, 15 Jun 2003 mbp at samba.org wrote:

> On 15 Jun 2003, Alex Olugbile <aoo at csag.ucsd.edu> wrote:
> > I've been tinkering with distcc, but when I try to build my rather small 
> > application, the compiler generates a steady stream of '...already 
> > declared in this scope' errors. This error only occurs when I build using 
> > distcc. Any and all suggestions are  welcome. Thanks,
> 
> Thanks for your report.
> 
> What version of distcc and g++ are you using?
> 
> Can you please send a verbose log file and a copy of the preprocessor
> output?  Set these variables and then rebuild just one file.
> 
>   DISTCC_LOG=distcc.log
>   DISTCC_VERBOSE=1
>   DISTCC_SAVE_TEMPS=1
> 
> Does it work when you build just hello.cpp?  Can you work out what's
> special about your project that is breaking it?
> 
> --
> Martin
> 
-------------- next part --------------
distccd[19633] (dcc_trim_path) original PATH /usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin
distccd[19633] (dcc_trim_path) not modifying PATH
distccd[19633] (dcc_should_be_inetd) stdin is a tty; assuming --daemon mode
distccd[19633] distccd (version 2.5.1, built Jun  5 2003 04:52:31)
distccd[19633] (dcc_listen_by_addr) listening on 0.0.0.0:3632
distccd[19633] (dcc_standalone_server) 2 CPUs online on this server
distccd[19633] (dcc_standalone_server) allowing up to 6 active jobs
distccd[19633] (dcc_ignore_sighup) ignoring SIGHUP
distccd[19634] (dcc_detach) setsid to session 19634
distccd[19634] (dcc_preforking_parent) up to 1 children
distccd[19634] (dcc_preforking_parent) up to 2 children
distccd[19634] (dcc_preforking_parent) up to 3 children
distccd[19634] (dcc_preforking_parent) up to 4 children
distccd[19634] (dcc_preforking_parent) up to 5 children
distccd[19634] (dcc_preforking_parent) up to 6 children
distccd[19635] (dcc_check_client) connection from 10.255.255.254:48091
distccd[19635] (dcc_r_token_int) got DIST00000001
distccd[19635] (dcc_r_token_int) got ARGC0000000a
distccd[19635] (dcc_r_argv) reading 10 arguments from job submission
distccd[19635] (dcc_r_token_int) got ARGV00000003
distccd[19635] (dcc_r_argv) argv[0] = "g++"
distccd[19635] (dcc_r_token_int) got ARGV00000002
distccd[19635] (dcc_r_argv) argv[1] = "-g"
distccd[19635] (dcc_r_token_int) got ARGV00000005
distccd[19635] (dcc_r_argv) argv[2] = "-Wall"
distccd[19635] (dcc_r_token_int) got ARGV00000018
distccd[19635] (dcc_r_argv) argv[3] = "-Wno-non-template-friend"
distccd[19635] (dcc_r_token_int) got ARGV00000007
distccd[19635] (dcc_r_argv) argv[4] = "-static"
distccd[19635] (dcc_r_token_int) got ARGV00000003
distccd[19635] (dcc_r_argv) argv[5] = "-O2"
distccd[19635] (dcc_r_token_int) got ARGV00000002
distccd[19635] (dcc_r_argv) argv[6] = "-c"
distccd[19635] (dcc_r_token_int) got ARGV0000000f
distccd[19635] (dcc_r_argv) argv[7] = "AddressBook.cpp"
distccd[19635] (dcc_r_token_int) got ARGV00000002
distccd[19635] (dcc_r_argv) argv[8] = "-o"
distccd[19635] (dcc_r_token_int) got ARGV0000000d
distccd[19635] (dcc_r_argv) argv[9] = "AddressBook.o"
distccd[19635] (dcc_r_argv) got arguments: g++ -g -Wall -Wno-non-template-friend -static -O2 -c AddressBook.cpp -o AddressBook.o
distccd[19635] (dcc_scan_args) scanning arguments: g++ -g -Wall -Wno-non-template-friend -static -O2 -c AddressBook.cpp -o AddressBook.o
distccd[19635] (dcc_scan_args) found input file "AddressBook.cpp"
distccd[19635] (dcc_scan_args) found object/output file "AddressBook.o"
distccd[19635] compile from AddressBook.cpp to AddressBook.o
distccd[19635] (dcc_run_job) output file AddressBook.o
distccd[19635] (dcc_input_tmpnam) input file AddressBook.cpp
distccd[19635] (dcc_r_token_int) got DOTI00101810
distccd[19635] (dcc_r_file) received 1054736 bytes to file /tmp/distcc_8016/server_0000019635.ii
distccd[19635] (dcc_r_file_timed) 1054736 bytes received in 0.089537s, rate 11504kB/s
distccd[19635] (dcc_set_input) changed input from "AddressBook.cpp" to "/tmp/distcc_8016/server_0000019635.ii"
distccd[19635] (dcc_set_input) command after: g++ -g -Wall -Wno-non-template-friend -static -O2 -c /tmp/distcc_8016/server_0000019635.ii -o AddressBook.o
distccd[19635] (dcc_set_output) changed output from "AddressBook.o" to "/tmp/distcc_8016/server_0000019635.o"
distccd[19635] (dcc_set_output) command after: g++ -g -Wall -Wno-non-template-friend -static -O2 -c /tmp/distcc_8016/server_0000019635.ii -o /tmp/distcc_8016/server_0000019635.o
distccd[19635] (dcc_spawn_child) forking to execute: g++ -g -Wall -Wno-non-template-friend -static -O2 -c /tmp/distcc_8016/server_0000019635.ii -o /tmp/distcc_8016/server_0000019635.o
distccd[19635] (dcc_spawn_child) child started as pid19651
distccd[19651] (dcc_increment_safeguard) setting safeguard: _DISTCC_SAFEGUARD=1
distccd[19635] (dcc_collect_child) cc child 19651 terminated with status 0x100
distccd[19635] (dcc_collect_child) cc times: user 8.290000s, system 0.210000s, 14408 minflt, 834 majflt
distccd[19635] (dcc_x_token_int) send DONE00000001
distccd[19635] (dcc_x_token_int) send STAT00000100
distccd[19635] (dcc_x_file) send 25604 byte file /tmp/distcc_8016/cc_0000019635.stderr with token SERR
distccd[19635] (dcc_x_token_int) send SERR00006404
distccd[19635] (dcc_x_file) send 0 byte file /tmp/distcc_8016/cc_0000019635.stdout with token SOUT
distccd[19635] (dcc_x_token_int) send SOUT00000000
distccd[19635] (dcc_x_token_int) send DOTO00000000
distccd[19635] g++ on localhost failed with exit code 1
distccd[19635] job complete
-------------- next part --------------
distcc[27306] (dcc_trace_version) distcc 2.5.1 i686-pc-linux-gnu; built Jun  5 2003 04:52:29
distcc[27306] (dcc_recursion_safeguard) safeguard level=0
distcc[27306] (dcc_set_path) setting PATH=/home/x86-local/bin:/usr/local/bin:/home/x86-local/jdk/bin:./:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin
distcc[27306] (dcc_scan_args) scanning arguments: g++ -DHAVE_CONFIG_H -D_LINUX -D_X86 -D_GCC -D_POSIX -D_PTHREADS -D_HAVE_POSIX_MEMALIGN -D_HAVE_PTHREAD_ATTR_SETSTACK -I../../mite2000/Include -g -Wall -Wno-non-template-friend -static -O2 -c AddressBook.cpp
distcc[27306] (dcc_scan_args) found input file "AddressBook.cpp"
distcc[27306] (dcc_scan_args) no visible output file, going to add "-o AddressBook.o" at end
distcc[27306] compile from AddressBook.cpp to AddressBook.o
distcc[27306] (dcc_parse_hosts_file) load hosts from /home/aoo/.distcc/hosts
distcc[27306] (dcc_parse_hosts) found tcp token "c2-2"
distcc[27306] (dcc_lock_host) got cpu lock on c2-2 slot 0 as fd4
distcc[27306] (dcc_strip_dasho) result: g++ -DHAVE_CONFIG_H -D_LINUX -D_X86 -D_GCC -D_POSIX -D_PTHREADS -D_HAVE_POSIX_MEMALIGN -D_HAVE_PTHREAD_ATTR_SETSTACK -I../../mite2000/Include -g -Wall -Wno-non-template-friend -static -O2 -c AddressBook.cpp
distcc[27306] (dcc_spawn_child) forking to execute: g++ -DHAVE_CONFIG_H -D_LINUX -D_X86 -D_GCC -D_POSIX -D_PTHREADS -D_HAVE_POSIX_MEMALIGN -D_HAVE_PTHREAD_ATTR_SETSTACK -I../../mite2000/Include -g -Wall -Wno-non-template-friend -static -O2 -E AddressBook.cpp
distcc[27306] (dcc_spawn_child) child started as pid27307
distcc[27306] (dcc_strip_local_args) result: g++ -g -Wall -Wno-non-template-friend -static -O2 -c AddressBook.cpp -o AddressBook.o
distcc[27306] exec on c2-2: g++ -g -Wall -Wno-non-template-friend -static -O2 -c AddressBook.cpp -o AddressBook.o
distcc[27307] (dcc_increment_safeguard) setting safeguard: _DISTCC_SAFEGUARD=1
distcc[27306] (dcc_connect_timed) nonblocking connect to 10.255.255.227:3632
distcc[27306] (dcc_select_for_read) select for read on fd5
distcc[27306] (dcc_connect_by_addr) client got connection to c2-2 port 3632 on fd5
distcc[27306] (dcc_x_token_int) send DIST00000001
distcc[27306] (dcc_x_token_int) send ARGC0000000a
distcc[27306] (dcc_x_token_int) send ARGV00000003
distcc[27306] (dcc_x_token_int) send ARGV00000002
distcc[27306] (dcc_x_token_int) send ARGV00000005
distcc[27306] (dcc_x_token_int) send ARGV00000018
distcc[27306] (dcc_x_token_int) send ARGV00000007
distcc[27306] (dcc_x_token_int) send ARGV00000003
distcc[27306] (dcc_x_token_int) send ARGV00000002
distcc[27306] (dcc_x_token_int) send ARGV0000000f
distcc[27306] (dcc_x_token_int) send ARGV00000002
distcc[27306] (dcc_x_token_int) send ARGV0000000d
distcc[27306] (dcc_collect_child) cpp child 27307 terminated with status 0
distcc[27306] (dcc_collect_child) cpp times: user 0.430000s, system 0.110000s, 312 minflt, 560 majflt
distcc[27306] cpp on localhost completed ok
distcc[27306] (dcc_x_file) send 1054736 byte file /tmp/distcc_7638/cppout_0000027306.ii with token DOTI
distcc[27306] (dcc_x_token_int) send DOTI00101810
distcc[27306] (dcc_send_job) client finished sending request to server
distcc[27306] (dcc_r_token_int) got DONE00000001
distcc[27306] (dcc_r_result_header) got response header
distcc[27306] (dcc_r_token_int) got STAT00000100
distcc[27306] (dcc_r_token_int) got SERR00006404
distcc[27306] (dcc_r_token_int) got SOUT00000000
distcc[27306] (dcc_r_token_int) got DOTO00000000
distcc[27306] (dcc_retrieve_results) Notice: skipping retrieval of 0 byte object file AddressBook.o
distcc[27306] (dcc_unlock) release lock fd4
distcc[27306] ERROR: compile on c2-2 failed with exit code 1
distcc[27306] elapsed compilation time 9.253939s
distcc[27306] (dcc_exit) exit: code 1; self: 0.000000 user 0.010000 sys; children: 0.430000 user 0.110000 sys


More information about the distcc mailing list