[distcc] distcc fails when building linux kernel on gentoo

Michelasso qzerty at gmail.com
Thu Feb 24 09:48:58 GMT 2005


On Thu, 24 Feb 2005 20:31:44 +1100, Martin Pool <mbp at sourcefrog.net> wrote:

> > Building the linux kernel locally on both machines isn't enough (since
> > this operation uses the Makefile, and in both Makefiles* that option
> > is present)?
> >
> > *the line in the Makefile is:
> > # warn about C99 declaration after statement
> > CFLAGS += $(call cc-option,-Wdeclaration-after-statement,)
> 
> No, because that line only switches on if the compiler supports the
> option.  That's what the cc-option macro does.
>

Ok, I am not an expert about compilation issues.
I have the tried to do a 'gcc -Wdeclaration-after-statement test.c' on
both pc's; the result
is that on the gentoo one, with gcc 3.3.4, the compilation works, on
the debian one, with gcc 3.3.5, the compilation immediately stops with
the error 'cc1: error: unrecognized option
`-Wdeclaration-after-statement'.
So it really seems that gcc 3.3.5 doesn't support this flag, I
apologize for having doubted.
As a workaround, could I try to comment out that line in the Makefile?

Bye.


More information about the distcc mailing list