From owner-freebsd-current Wed Aug 14 5:19:39 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 E722E37B400 for ; Wed, 14 Aug 2002 05:19:37 -0700 (PDT) Received: from relay01.esat.net (relay01.esat.net [192.111.39.11]) by mx1.FreeBSD.org (Postfix) with ESMTP id 420CA43E6A for ; Wed, 14 Aug 2002 05:19:37 -0700 (PDT) (envelope-from phil@ipac.ie) Received: from ipac-gw.cr001.ddm.esat.net (mail.rfc-networks.ie) [193.95.188.30] by relay01.esat.net with esmtp id 17ex7d-0005Za-00; Wed, 14 Aug 2002 13:19:33 +0100 Received: from tear.domain (unknown [10.0.1.254]) by mail.rfc-networks.ie (Postfix) with ESMTP id A329E54834 for ; Wed, 14 Aug 2002 12:23:17 +0100 (IST) Received: by tear.domain (Postfix, from userid 1000) id 47E9A21146; Wed, 14 Aug 2002 13:20:27 +0000 (GMT) Date: Wed, 14 Aug 2002 13:20:27 +0000 From: Philip Reynolds To: freebsd-current@freebsd.org Subject: Re: CFLAGS=-O and WARN=5 Message-ID: <20020814132027.C56368@rfc-networks.ie> Reply-To: philip.reynolds@rfc-networks.ie References: <7md6slpxr1.wl@black.imgsrc.co.jp> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <7md6slpxr1.wl@black.imgsrc.co.jp>; from kuriyama@imgsrc.co.jp on Wed, Aug 14, 2002 at 06:58:58PM +0900 X-Operating-System: FreeBSD 4.6-STABLE X-URL: http://www.rfc-networks.ie 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 Jun Kuriyama 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