From owner-freebsd-stable@FreeBSD.ORG Sat Mar 22 14:42:44 2008 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 09506106566B for ; Sat, 22 Mar 2008 14:42:44 +0000 (UTC) (envelope-from jdc@parodius.com) Received: from mx01.sc1.parodius.com (mx01.sc1.parodius.com [72.20.106.3]) by mx1.freebsd.org (Postfix) with ESMTP id 022D48FC16 for ; Sat, 22 Mar 2008 14:42:43 +0000 (UTC) (envelope-from jdc@parodius.com) Received: by mx01.sc1.parodius.com (Postfix, from userid 1000) id DC2171CC068; Sat, 22 Mar 2008 07:42:43 -0700 (PDT) Date: Sat, 22 Mar 2008 07:42:43 -0700 From: Jeremy Chadwick To: TooMany Secrets Message-ID: <20080322144243.GB31702@eos.sc1.parodius.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2007-11-01) Cc: freebsd-stable Subject: Re: Error compiling buildworld X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 22 Mar 2008 14:42:44 -0000 On Sat, Mar 22, 2008 at 02:09:31PM +0100, TooMany Secrets wrote: > System csup from today at 13:20 (aprox.). > > My make.conf flags: > CPUTYPE?=prescott > CFLAGS= -O -pipe > CXXFLAGS+= -O -DNO_MALLOC_EXTRAS > COPTFLAGS= -O -pipe > #CCACHE > CC=/usr/local/libexec/ccache/world-cc > CXX=/usr/local/libexec/ccache/world-c++ > (I try with and without ccache). > CC='/usr/local/libexec/ccache/world-cc' mkdep -f .depend -a > -I/usr/src/lib/csu/i386-elf/../common -I/usr/src/lib/csu/i386-elf > /../../libc/include /usr/src/lib/csu/i386-elf/crt1.c > /usr/src/lib/csu/i386-elf/crti.S /usr/src/lib/csu/i386-elf/crtn.S > /usr/local/libexec/ccache/world-cc -O -pipe -march=prescott > -I/usr/src/lib/csu/i386-elf/../common -I/usr/src/lib/csu/i386-elf/. > ./../libc/include -Wsystem-headers -Wall -Wno-format-y2k -W > -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpoi > nter-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow > -Wcast-align -Wunused-parameter -Wchar-subscripts -Winlin > e -Wnested-externs -Wredundant-decls -Wno-pointer-sign -c > /usr/src/lib/csu/i386-elf/crt1.c > cc1: error: unrecognized command line option "-Wchar-subscripts" There haven't been any changes to src/lib/csu/i386-elf in 2-4 years: http://www.freebsd.org/cgi/cvsweb.cgi/src/lib/csu/i386-elf/ I'm willing to bet that the compiler tinkering you've done is causing said problem. It would indicate whatever compiler is being used ("world-cc") is acting as if it doesn't understand the compiler flag specified. I can assure you that gcc does support this option. It would be useful to see see the buildworld output with CXXFLAGS, COPTFLAGS, CC, and CXX disabled in your make.conf. I realise you said "I get the same error without this stuf", but you should've sent *that* buildworld output. :-) Also, you really should be using "?=" operators on those optimisation flags, in case something else overrides them. Yes, I know what the documentation in share/examples/etc/make.conf says, but I still recommend doing what I said. -- | Jeremy Chadwick jdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB |