Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 12 Sep 2002 13:27:50 -0700
From:      Kris Kennaway <kris@obsecurity.org>
To:        current@FreeBSD.org
Subject:   Alpha fatal warning in kernel compile
Message-ID:  <20020912202750.GA21944@xor.obsecurity.org>

next in thread | raw e-mail | index | archive | help

--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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020912202750.GA21944>