Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

distcc build fail in filename.c #10

Closed
GoogleCodeExporter opened this issue May 26, 2015 · 7 comments
Closed

distcc build fail in filename.c #10

GoogleCodeExporter opened this issue May 26, 2015 · 7 comments

Comments

@GoogleCodeExporter
Copy link

Building distcc-3.0rc2 fails on i686-pc-linux-gnu with GCC 4.2.3.

Configure with:
CFLAGS="-O3" ../distcc-3.0rc2/configure --prefix=/usr --sysconfdir=/etc
--with-docdir=/usr/doc/distcc-3.0rc2 --with-included-popt --with-gtk
--without-gnome

Console output:

gcc -DHAVE_CONFIG_H -D_GNU_SOURCE -DSYSCONFDIR="\"/etc\""
-DPKGDATADIR="\"/usr/share/distcc\"" -Isrc -I"../distcc-3.0rc2/src"
-I"../distcc-3.0rc2/lzo" -I"../distcc-3.0rc2/popt" -Werror -O3 -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/help.o -c
../distcc-3.0rc2/src/help.c
gcc -DHAVE_CONFIG_H -D_GNU_SOURCE -DSYSCONFDIR="\"/etc\""
-DPKGDATADIR="\"/usr/share/distcc\"" -Isrc -I"../distcc-3.0rc2/src"
-I"../distcc-3.0rc2/lzo" -I"../distcc-3.0rc2/popt" -Werror -O3  -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/filename.o -c
../distcc-3.0rc2/src/filename.c
cc1: warnings being treated as errors
../distcc-3.0rc2/src/filename.c: In function 'dcc_is_object':
../distcc-3.0rc2/src/filename.c:263: warning: passing argument 1 of
'dcc_find_ex
tension' discards qualifiers from pointer target type
make: *** [src/filename.o] Error 1

Original issue reported on code.google.com by caffe...@m13.alpha-net.ne.jp on 30 Jun 2008 at 1:41

@GoogleCodeExporter
Copy link
Author

Work-around is to pass WERROR_CFLAGS= to make, e.g.

   sh configure
   make WERROR_CFLAGS=
   make WERROR_CFLAGS= install

Original comment by fergus.h...@gmail.com on 30 Jun 2008 at 4:53

@GoogleCodeExporter
Copy link
Author

Original comment by fergus.h...@gmail.com on 30 Jun 2008 at 4:55

  • Changed state: Accepted

@GoogleCodeExporter
Copy link
Author

Hi,

Thanks for the bug report.

I can't reproduce the bug myself, but I think the attached patch will fix it.
Could you please test it?

Cheers,
  Fergus.

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

Attachments:

@GoogleCodeExporter
Copy link
Author

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

  • Changed state: Started

@GoogleCodeExporter
Copy link
Author

Thank you for your reply Fergus.
This patch seems to works good for me, but build fails in another line.

I got error:

gcc -DHAVE_CONFIG_H -D_GNU_SOURCE -DSYSCONFDIR="\"/etc\""
-DPKGDATADIR="\"/usr/share/distcc\"" -Isrc -I"../distcc-3.0rc2/src"
-I"../distcc-3.0rc2/lzo" -I"../distcc-3.0rc2/popt" -Werror -O3 -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/filename.o -c 
../distcc-3.0rc2/src/filename.c
cc1: warnings being treated as errors
../distcc-3.0rc2/src/filename.c: In function 'dcc_is_object':
../distcc-3.0rc2/src/filename.c:274: warning: passing argument 1 of
'dcc_find_extension' discards qualifiers from pointer target type
make: *** [src/filename.o] Error 1

Original comment by caffe...@m13.alpha-net.ne.jp on 30 Jul 2008 at 12:31

@GoogleCodeExporter
Copy link
Author

Thanks for testing it.
Here's another patch that I think should fix all the occurrences of this.

(If it fails, please try "make -k" so that we can fix more errors in one go :)

Original comment by fergus.h...@gmail.com on 30 Jul 2008 at 7:22

Attachments:

@GoogleCodeExporter
Copy link
Author

I've submitted this patch to the mainline.
So as of revision 575, this should be fixed now.

Original comment by fergus.h...@gmail.com on 31 Jul 2008 at 7:14

  • Changed state: Fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant