Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 11 Sep 2007 18:44:03 -0700
From:      Steve Kargl <sgk@troutmask.apl.washington.edu>
To:        Brooks Talley <brooks@illuminati.org>
Cc:        freebsd-current <freebsd-current@freebsd.org>
Subject:   Re: Compiling with gcc42 / reverting to CC
Message-ID:  <20070912014403.GA20208@troutmask.apl.washington.edu>
In-Reply-To: <7248470.49881189559919625.JavaMail.root@zmail.illuminati.org>
References:  <7248470.49881189559919625.JavaMail.root@zmail.illuminati.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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



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