make kernel build error on recent -current

Ruslan Ermilov ru at freebsd.org
Wed Nov 21 05:58:38 PST 2007


On Wed, Nov 21, 2007 at 03:05:27PM +0600, Alexey Dokuchaev wrote:
> hi there,
> 
> i'm seeing this while trying to make my kernel:
> 
> cc -c -O2 -pipe -mtune=pentium4 -march=pentium4 -fno-strict-aliasing -march=pentium4 -std=c99 -g -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -Wundef -Wno-pointer-sign -fformat-extensions -nostdinc  -I. -I/usr/src/sys -I/usr/src/sys/contrib/altq -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-builtin -mno-align-long-strings -mpreferred-stack-boundary=2  -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3 -ffreestanding -Werror  /usr/src/sys/kern/kern_intr.c
> cc1: warnings being treated as errors
> /usr/src/sys/kern/kern_intr.c: In function 'intr_priority':
> /usr/src/sys/kern/kern_intr.c:117: warning: 'pri' may be used uninitialized in this function
> *** Error code 1
> 
> it seems that `kern.pre.mk' enables -Werror despite my NO_WERROR setting.
> 
I cannot reproduce this on neither RELENG_7 or HEAD, compiling
GENERIC or LINT (you didn't tell what combination you're using),
but NO_WERROR never affected -Werror in kernel and module builds.
In this case, you can reset -Werror like this:

	make ... WERROR=


Cheers,
-- 
Ruslan Ermilov
ru at FreeBSD.org
FreeBSD committer


More information about the freebsd-current mailing list