gcc4.6,how to remove werror

tknv 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?
> 
> Cheers
> ---Dave
> 
> _______________________________________________
> linaro-toolchain mailing list
> linaro-toolchain at lists.linaro.org
> http://lists.linaro.org/mailman/listinfo/linaro-toolchain

-- 
w.tknv/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 490 bytes
Desc: Digital signature
URL: <http://lists.linaro.org/pipermail/linaro-toolchain/attachments/20111129/5312b549/attachment.pgp>


More information about the linaro-toolchain mailing list