x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -D_GNU_SOURCE -DSYSCONFDIR="\"/etc\"" -DPKGDATADIR="\"/usr/share/distcc\"" -Isrc -I"./src" -I"./lzo" -Werror -O3 -march=core2 -fomit-frame-pointer -pipe -MD -W -Wall -Wimplicit -Wuninitialized -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wmissing-declarations -D_REENTRANT -pthread -o src/where.o -c src/where.c cc1: warnings being treated as errors src/where.c: In function 'dcc_lock_local_cpp': src/where.c:193: error: 'chosen' may be used uninitialized in this function make: *** [src/where.o] Error 1
Created attachment 170182 [details, diff] distcc-3.0-werror.diff
I reported to upstream. http://code.google.com/p/distcc/issues/detail?id=28 http://distcc.googlecode.com/issues/attachment?aid=6181885209652935876&name=src-where-uninitialized.patch Could you test the patch? I'll commit it to portage tree.
Created attachment 170434 [details, diff] uninitialized.patch Or, you could fix the bug.
Fixed in distcc-3.0-r4
-Werror is still problematic on at least MIPS and SH-4 (gcc-4.3.2): sh4-unknown-linux-gnu-gcc -DHAVE_CONFIG_H -D_GNU_SOURCE -DSYSCONFDIR="\"/etc\"" -DPKGDATADIR="\"/usr/share/distcc\"" -Isrc -I"./src" -I"./lzo" -Werror -Os -m4 -ml -fomit-frame-pointer -ffast-math --param max-aliased-vops=10000 -MD -W -Wall -Wimplicit -Wuninitialized -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wmissing-declarations -pthread -o src/srvnet.o -c src/srvnet.c cc1: warnings being treated as errors src/srvnet.c: In function 'dcc_check_client': src/srvnet.c:264: error: cast increases required alignment of target type src/srvnet.c:269: error: cast increases required alignment of target type make: *** [src/srvnet.o] Error 1 ()
ok. removed -Werror in distcc-3.0-r4.