Date: Wed, 14 Aug 2002 13:20:27 +0000 From: Philip Reynolds <philip.reynolds@rfc-networks.ie> To: freebsd-current@freebsd.org Subject: Re: CFLAGS=-O and WARN=5 Message-ID: <20020814132027.C56368@rfc-networks.ie> In-Reply-To: <7md6slpxr1.wl@black.imgsrc.co.jp>; from kuriyama@imgsrc.co.jp on Wed, Aug 14, 2002 at 06:58:58PM %2B0900 References: <7md6slpxr1.wl@black.imgsrc.co.jp>
next in thread | previous in thread | raw e-mail | index | archive | help
Jun Kuriyama <kuriyama@imgsrc.co.jp> 22 lines of wisdom included: > > When I tried make world with CFLAGS="-g -pipe" in make.conf, I got > a result below. > > Is buildworld without CFLAGS=-O not supported? > > ===> bin/df > cc -pipe -g -I/usr/src/bin/df/../../sbin/mount -Werror -Wall -Wno-format-y2k -W -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wcast-align -Wuninitialized -Wformat=2 -Wno-format-extra-args -Werror -c /usr/src/bin/df/df.c > cc1: warnings being treated as errors > cc1: warning: -Wuninitialized is not supported without -O > *** Error code 1 The problem here, as is fairly self-evident is that you cannot compile with -Wuninitialized without a -O flag because it produces warnings that can only be seen through optomisation (it's got to do with automatic variables, see gcc(1) for details). See if this flag exists in /etc/defaults/make.conf, probably in BDECFLAGS, and remove it. Regards, -- Philip Reynolds | RFC Networks Ltd. philip.reynolds@rfc-networks.ie | +353 (0)1 8832063 http://people.rfc-networks.ie/~phil | www.rfc-networks.ie 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?20020814132027.C56368>