gcc4.6,how to remove werror
rreedd555 at gmail.com
Tue Nov 29 14:43:01 UTC 2011
This issue happend,when I was compiling ARM kernel.
I could not get it where -Werror gets overriden in tools/perf.
Could you tell me where is it ?
On Tue, Nov 29, 2011 at 01:53:40PM +0000, Dave Martin wrote:
> On Sun, Nov 27, 2011 at 02:09:29AM +0700, tknv wrote:
> > Sorry for lacking information.
> > I would like to explain again.
> > When I compile kernel with gcc-4.4.3 and remove Werror from Makefile of
> > top of kernel tree, then no warnings to error.
> > When using gcc version 4.6.1 (Ubuntu/Linaro 4.6.1-9ubuntu3) and also
> > remove Werror from Makefile of top of kernel tree, But warnings to error.
> > ex).array subscript is above array bounds [-Werror=array-bounds]
> > cc1: all warnings being treated as errors.
> > So I removed Werror from Makefile for some modules and etc.
> > Just I feel strange, Because I think it will override other Makefile
> > when remove Werror from Makefile of top of kernel tree.
> > But I am not sure this issue is for compiler, Makefiles or my
> > misunderstanding.
> Kbuild doesn't seem to provide a way to override the Werror behvaiour
> from the top level.
> If a particular module uses -Werror, changing the top-level Makefile
> can't affect that.
> The only place I can see where -Werror gets overriden for an ARM kernel
> it in tools/perf. Is that where you were seeing the failure?
> linaro-toolchain mailing list
> linaro-toolchain at lists.linaro.org
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 490 bytes
Desc: Digital signature
More information about the linaro-toolchain