From owner-freebsd-current@FreeBSD.ORG Wed Sep 12 01:44:08 2007 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E8A6D16A417 for ; Wed, 12 Sep 2007 01:44:08 +0000 (UTC) (envelope-from sgk@troutmask.apl.washington.edu) Received: from troutmask.apl.washington.edu (troutmask.apl.washington.edu [128.208.78.105]) by mx1.freebsd.org (Postfix) with ESMTP id B7D1A13C459 for ; Wed, 12 Sep 2007 01:44:08 +0000 (UTC) (envelope-from sgk@troutmask.apl.washington.edu) Received: from troutmask.apl.washington.edu (localhost [127.0.0.1]) by troutmask.apl.washington.edu (8.13.8/8.13.8) with ESMTP id l8C1i4iL020249; Tue, 11 Sep 2007 18:44:04 -0700 (PDT) (envelope-from sgk@troutmask.apl.washington.edu) Received: (from sgk@localhost) by troutmask.apl.washington.edu (8.13.8/8.13.8/Submit) id l8C1i3gt020248; Tue, 11 Sep 2007 18:44:03 -0700 (PDT) (envelope-from sgk) Date: Tue, 11 Sep 2007 18:44:03 -0700 From: Steve Kargl To: Brooks Talley Message-ID: <20070912014403.GA20208@troutmask.apl.washington.edu> References: <7248470.49881189559919625.JavaMail.root@zmail.illuminati.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <7248470.49881189559919625.JavaMail.root@zmail.illuminati.org> User-Agent: Mutt/1.4.2.2i Cc: freebsd-current Subject: Re: Compiling with gcc42 / reverting to CC X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Sep 2007 01:44:09 -0000 On Tue, Sep 11, 2007 at 06:18:39PM -0700, Brooks Talley wrote: > > I have a 7.0-current box that's been updated to the latest HEAD, > and I need to rebuild the kernel. However, someone has helpfully > configured the box to use GCC42 for make, and that's failing because > 1) kern.mk has a CWARNFLAGS definition that GCC42 hates > (-fformat-extensions), and 2) __FreeBSD_cc_version is not defined. > > Can someone(s) please tell me how to either get 7.0-current > compiled on GCC42, or get make buildkernel to use good old CC? > Check /etc/make.conf for a CC variable. Try "make CC=cc buildkernel" or "setenv CC cc ; make buildkernel" or Ask "someone" for helpfully unconfigure GCC42. -- Steve