From owner-freebsd-current Thu Sep 12 13:27:54 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 30B8537B400 for ; Thu, 12 Sep 2002 13:27:52 -0700 (PDT) Received: from obsecurity.dyndns.org (adsl-64-165-226-88.dsl.lsan03.pacbell.net [64.165.226.88]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8BE4F43E6A for ; Thu, 12 Sep 2002 13:27:51 -0700 (PDT) (envelope-from kris@obsecurity.org) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id D876F66D7F; Thu, 12 Sep 2002 13:27:50 -0700 (PDT) Date: Thu, 12 Sep 2002 13:27:50 -0700 From: Kris Kennaway To: current@FreeBSD.org Subject: Alpha fatal warning in kernel compile Message-ID: <20020912202750.GA21944@xor.obsecurity.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="SLDf9lqlvOQaIe6s" Content-Disposition: inline User-Agent: Mutt/1.4i 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 --SLDf9lqlvOQaIe6s Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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 --SLDf9lqlvOQaIe6s Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (FreeBSD) iD8DBQE9gPjFWry0BWjoQKURAhfvAJ4/q++SI2dMPHiuxnN3Lg4XIvg/vQCdEMbl J8RuqyEiTAkj7Kk35Zz14QY= =ARCP -----END PGP SIGNATURE----- --SLDf9lqlvOQaIe6s-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message