akhilravidas / distcc

Automatically exported from code.google.com/p/distcc
GNU General Public License v2.0
0 stars 0 forks source link

Doesn't compile on ARM (e.g. NSLU2 - armv5tel) #8

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
1. distcc-3.0rc2.tar.gz

2. Linux 2.6.18-6-ixp4xx armv5tel GNU/Linux
   cc (GCC) 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)

3. tried to run /usr/src/distcc-3.0rc2/# make deb (with -i to catch 
all "cast" errors)

4. What went wrong? => doesn't compile, see 5.

5.
gcc -DHAVE_CONFIG_H -D_GNU_SOURCE -DSYSCONFDIR="\"/etc\"" -
DPKGDATADIR="\"/usr/share/distcc\"" -Isrc -I"./src" -I"./lzo" -I"./popt" -
Werror -g -O2 -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:268: warning: cast increases required alignment of target type

gcc -DHAVE_CONFIG_H -D_GNU_SOURCE -DSYSCONFDIR="\"/etc\"" -
DPKGDATADIR="\"/usr/share/distcc\"" -Isrc -I"./src" -I"./lzo" -I"./popt" -
Werror -g -O2 -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/fix_debug_info.o -c src/fix_debug_info.c
cc1: warnings being treated as errors
src/fix_debug_info.c: In function 'FindElfSection':
src/fix_debug_info.c:67: warning: cast increases required alignment of 
target type
src/fix_debug_info.c:131: warning: cast increases required alignment of 
target type
src/fix_debug_info.c:176: warning: cast increases required alignment of 
target type
src/fix_debug_info.c:178: warning: cast increases required alignment of 
target type

Just let me know whether you need further information :-)

Original issue reported on code.google.com by massimo2...@googlemail.com on 23 Jun 2008 at 11:48

GoogleCodeExporter commented 9 years ago
Thanks for the feedback!

A likely work-around is to build with

    make WERROR_CFLAGS=""

Original comment by fergus.h...@gmail.com on 24 Jun 2008 at 3:45

GoogleCodeExporter commented 9 years ago
I've attached a patch which I hope will fix those issues.
I don't have access to an ARM machine, so maybe you could test out this patch 
for me.

Original comment by fergus.h...@gmail.com on 30 Jul 2008 at 12:32

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by fergus.h...@gmail.com on 30 Jul 2008 at 1:04

GoogleCodeExporter commented 9 years ago
I've submitted the patch to the mainline, so this is fixed in revision 569, I 
hope. 
Please reopen this issue if it's not fixed.

Original comment by fergus.h...@gmail.com on 30 Jul 2008 at 2:34