From owner-freebsd-current Wed Oct 21 06:44:30 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id GAA19056 for freebsd-current-outgoing; Wed, 21 Oct 1998 06:44:30 -0700 (PDT) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from hub.org (hub.org [209.47.148.200]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id GAA19045 for ; Wed, 21 Oct 1998 06:44:24 -0700 (PDT) (envelope-from scrappy@hub.org) Received: from localhost (scrappy@localhost) by hub.org (8.8.8/8.8.8) with ESMTP id JAA21518; Wed, 21 Oct 1998 09:07:46 -0400 (EDT) (envelope-from scrappy@hub.org) Date: Wed, 21 Oct 1998 09:07:46 -0400 (EDT) From: "Marc G. Fournier" To: Alex Zepeda cc: freebsd-current@FreeBSD.ORG Subject: Re: Invalid option for compiler...? In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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