Date: Wed, 21 Oct 1998 09:07:46 -0400 (EDT) From: "Marc G. Fournier" <scrappy@hub.org> To: Alex Zepeda <garbanzo@hooked.net> Cc: freebsd-current@FreeBSD.ORG Subject: Re: Invalid option for compiler...? Message-ID: <Pine.BSF.4.05.9810210905390.4514-100000@hub.org> In-Reply-To: <Pine.BSF.4.00.9810201451160.1139-100000@zippy.dyn.ml.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 20 Oct 1998, Alex Zepeda wrote:
> On Tue, 20 Oct 1998, Marc G. Fournier wrote:
>
> >
> > Trying to build a new kernel, and I get the following error:
> >
> > hub# make depend
> > cc -c -O -Wreturn-type -Wcomment -Wredundant-decls -Wimplicit
> > -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith
> > -Winline -Wuninitialized -Wformat -fformat-extensions -ansi -g -nostdinc
> > -I- -I. -I../.. -I../../../include -DKERNEL -include opt_global.h
> > ../../i386/i386/genassym.c
> > cc1: Invalid option `-fformat-extensions'
> > *** Error code 1
>
> -fformat-extensions is used to quash some warnings that might be generated
> by the odd format identifiers in the kernel. As long as you're not using
> -Werror, it's safe to remove this (and is the only way to go with a non
> stock cc). The "correct" solution would be to rebuild cc1 (a make world
> will do this as well as rebuild other parts required for use of a post
> 3.0-R kernel).
I generally do the 'make world' after I know the kernel is going
to run on my platform...I've already done the 'make buildworld', but need
to get a kernel built and reboot'd into first.
How do I get rid of the -fformat-extensions -Werror flags? I've
checked /usr/share/mk/*, /etc/make.conf,
/usr/src/sys/i386/conf/Makefile.i386, and can't find it defined in any of
those places...which place am I missing?
Thanks..
Marc G. Fournier scrappy@hub.org
Systems Administrator @ hub.org
scrappy@{postgresql|isc}.org ICQ#7615664
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?Pine.BSF.4.05.9810210905390.4514-100000>
