gcc4.6,how to remove werror
dave.martin at linaro.org
Tue Nov 29 13:53:40 UTC 2011
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
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?
More information about the linaro-toolchain