On Tue, Nov 29, 2011 at 09:43:01PM +0700, tknv wrote: > 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 ?
In tools/perf/Makefile: 34:# Define WERROR=0 to disable treating any warnings as errors. 69:ifneq ($(WERROR),0) 70: CFLAGS_WERROR := -Werror 105:CFLAGS = -fno-omit-frame-pointer -ggdb3 -Wall -Wextra -std=gnu99 $(CFLAGS_WERROR) $(CFLAGS_OPTIMIZE) -D_FORTIFY_SOURCE=2 $(EXTRA_WARNINGS) $(EXTRA_CFLAGS) This Makefile _only_ applies to the perf tools. The rest of the kernel uses other Makefiles. The perf tools are not built automatically, so if you are only trying to build a kernel image then you must have some other problem. As I suggested previously, can you please run make V=1 and send the last few lines of output, including the error message *and* the command which caused it. Without a precise indication of where the error occurs, I can't offer much help. Cheers ---Dave _______________________________________________ linaro-toolchain mailing list linaro-toolchain@lists.linaro.org http://lists.linaro.org/mailman/listinfo/linaro-toolchain