From owner-freebsd-current@FreeBSD.ORG Wed Jul 28 16:06:25 2004 Return-Path: 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 625E116A4CE for ; Wed, 28 Jul 2004 16:06:25 +0000 (GMT) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5067643D5F for ; Wed, 28 Jul 2004 16:06:25 +0000 (GMT) (envelope-from mux@freebsd.org) Received: by elvis.mu.org (Postfix, from userid 1920) id 8954D5C8B4; Wed, 28 Jul 2004 09:06:19 -0700 (PDT) Date: Wed, 28 Jul 2004 18:06:19 +0200 From: Maxime Henrion To: Maxim Maximov Message-ID: <20040728160619.GA13608@elvis.mu.org> References: <41078B9E.2030603@mcsi.pp.ru> <20040728113014.GV82302@elvis.mu.org> <4107BE27.6050003@mcsi.pp.ru> <4107C519.5040101@mcsi.pp.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4107C519.5040101@mcsi.pp.ru> User-Agent: Mutt/1.4.2.1i cc: current@freebsd.org Subject: Re: build is broken after gcc import X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 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, 28 Jul 2004 16:06:25 -0000 Maxim Maximov wrote: > Maxim Maximov wrote: > >Now traceroute builds fine, thanks! But buildkernel fails (after > >successful buildworld): Thanks for testing the patch, it has now been committed. > >-------------------------------------------------------------- > > >>> stage 3.1: making dependencies > >-------------------------------------------------------------- > >cd /usr/obj/usr/src/sys/ULTRA; MAKEOBJDIRPREFIX=/usr/obj > >MACHINE_ARCH=i386 MACHINE=i386 CPUTYPE= > >GROFF_BIN_PATH=/usr/obj/usr/src/i386/legacy/usr/bin > >GROFF_FONT_PATH=/usr/obj/usr/src/i386/legacy/usr/share/groff_font > >GROFF_TMAC_PATH=/usr/obj/usr/src/i386/legacy/usr/share/tmac > >DESTDIR=/usr/obj/usr/src/i386 _SHLIBDIRPREFIX=/usr/obj/usr/src/i386 > >INSTALL="sh /usr/src/tools/install.sh" > >PATH=/usr/obj/usr/src/i386/legacy/usr/sbin:/usr/obj/usr/src/i386/legacy/usr/bin:/usr/obj/usr/src/i386/legacy/usr/games:/usr/obj/usr/src/i386/usr/sbin:/usr/obj/usr/src/i386/usr/bin:/usr/obj/usr/src/i386/usr/games:/sbin:/bin:/usr/sbin:/usr/bin > >/usr/obj/usr/src/make.i386/make KERNEL=kernel depend -DNO_MODULES_OBJ > >rm -f .olddep > >if [ -f .depend ]; then mv .depend .olddep; fi > >/usr/obj/usr/src/make.i386/make _kernel-depend > >cc -c -O -pipe -Wall -Wredundant-decls -Wnested-externs > >-Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline > >-Wcast-qual -fformat-extensions -std=c99 -g -nostdinc -I- -I. > >-I/usr/src/sys -I/usr/src/sys/contrib/dev/acpica > >-I/usr/src/sys/contrib/altq -I/usr/src/sys/contrib/ipfilter > >-I/usr/src/sys/contrib/pf -I/usr/src/sys/contrib/dev/ath > >-I/usr/src/sys/contrib/dev/ath/freebsd -I/usr/src/sys/contrib/ngatm > >-D_KERNEL -include opt_global.h -finline-limit=8000 --param > >inline-unit-growth=100 --param large-function-growth=1000 > >-mno-align-long-strings -mpreferred-stack-boundary=2 -ffreestanding > >/usr/src/sys/i386/i386/genassym.c > >cc1: error: unrecognized command line option "-fformat-extensions" > >*** Error code 1 It seems you have cvsup'ed at a bad time. The -fformat-extensions option is a FreeBSD-specific (and NetBSD, I've been told) option, and is not in GCC baseline. It has been merged back in revision 1.24 of src/contrib/gcc/toplev.c. Can you check that you have the latest version of this file? If you don't just re-cvsup and try again. > And attached patch fixes the problem. This patch is incorrect, as should be obvious after the explanation above. Cheers, Maxime