Subject: kern/17316: NOGCCERROR ignored for kernel builds
To: None <gnats-bugs@gnats.netbsd.org>
From: Ian Dall <Ian.Dall@dsto.defence.gov.au>
List: netbsd-bugs
Date: 06/19/2002 17:43:49
>Number: 17316
>Category: kern
>Synopsis: NOGCCERROR ignored for kernel builds
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: kern-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Jun 19 01:20:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator: Ian Dall
>Release: NetBSD 1.5ZC
>Organization:
private
>Environment:
System: NetBSD gateway.beware.dropbear.id.au 1.5ZC NetBSD 1.5ZC (SIBYL) #2: Sat Jun 15 00:22:45 CST 2002 ian@sibyl.beware.dropbear.id.au:/usr1/local/src/netbsd/src/sys/arch/pc532/compile/SIBYL pc532
Architecture: ns32k
Machine: pc532
>Description:
The -Werror option is too strong when testign new compilers. NOGCCERROR is provided as a configuration option for the restof the tree, but not the kernel.
>How-To-Repeat:
>Fix:
The following patch makes -Werror dependant on NOGCCERROR.
Index: netbsd/src/sys/conf/Makefile.kern.inc
diff -c netbsd/src/sys/conf/Makefile.kern.inc:1.1.1.5 netbsd/src/sys/conf/Makefile.kern.inc:1.2
*** netbsd/src/sys/conf/Makefile.kern.inc:1.1.1.5 Wed Jun 12 12:19:12 2002
--- netbsd/src/sys/conf/Makefile.kern.inc Mon Jun 17 22:31:44 2002
***************
*** 49,55 ****
DBG= # might contain unwanted -Ofoo
DEFWARNINGS?= yes
.if (${DEFWARNINGS} == "yes")
! CWARNFLAGS+= -Werror -Wall -Wno-main -Wno-format-zero-length
WEAK_POINTERS?= no
.if !(${WEAK_POINTERS} == "yes")
CWARNFLAGS+= -Wpointer-arith
--- 49,55 ----
DBG= # might contain unwanted -Ofoo
DEFWARNINGS?= yes
.if (${DEFWARNINGS} == "yes")
! CWARNFLAGS+= ${NOGCCERROR:D:U-Werror} -Wall -Wno-main -Wno-format-zero-length
WEAK_POINTERS?= no
.if !(${WEAK_POINTERS} == "yes")
CWARNFLAGS+= -Wpointer-arith
>Release-Note:
>Audit-Trail:
>Unformatted: