From owner-freebsd-current Thu Sep 12 13:52:40 2002 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4F76837B400 for ; Thu, 12 Sep 2002 13:52:39 -0700 (PDT) Received: from rootlabs.com (root.org [67.118.192.226]) by mx1.FreeBSD.org (Postfix) with SMTP id EF83443E42 for ; Thu, 12 Sep 2002 13:52:38 -0700 (PDT) (envelope-from nate@rootlabs.com) Received: (qmail 25077 invoked by uid 1000); 12 Sep 2002 20:52:40 -0000 Date: Thu, 12 Sep 2002 13:52:40 -0700 (PDT) From: Nate Lawson To: Kris Kennaway Cc: current@FreeBSD.org Subject: Re: Alpha fatal warning in kernel compile In-Reply-To: <20020912202750.GA21944@xor.obsecurity.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Thu, 12 Sep 2002, Kris Kennaway wrote: > How are you supposed to disable -Werror in kernel builds? Setting > NO_WERROR in the env or passing it to 'make buildkernel' via -D > doesn't work; neither does putting -Wno-error in COPTFLAGS. I get the > following fatal warning when compiling a recent alpha 5.0 kernel under > 4.x: > > cc -c -O -pipe -Wno-error -mcpu=ev56 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -fformat-extensions -ansi -nostdinc -I- -I. -I/local0/src2/sys -I/local0/src2/sys/dev -I/local0/src2/sys/contrib/dev/acpica -I/local0/src2/sys/contrib/ipfilter -I/local0/src2/sys/../include -D_KERNEL -include opt_global.h -fno-common -mno-fp-regs -ffixed-8 -Wa,-mev6 -ffreestanding -Werror /local0/src2/sys/dev/ccd/ccd.c > cc1: warnings being treated as errors > /local0/src2/sys/dev/ccd/ccd.c: In function `ccdiodone': > /local0/src2/sys/dev/ccd/ccd.c:1181: warning: long long int format, daddr_t arg (arg 6) > *** Error code 1 > > Kris NO_WERROR was removed so the only way is to set in your make.conf: WERROR= This causes the WERROR?=-Werror to not set the flag. -Nate (who wants NO_WERROR back or better, warns-clean code more often in -current) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message