From owner-freebsd-stable@FreeBSD.ORG Sat Mar 22 17:20:37 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 3DF58106564A for ; Sat, 22 Mar 2008 17:20:37 +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 335E58FC15 for ; Sat, 22 Mar 2008 17:20:37 +0000 (UTC) (envelope-from jdc@parodius.com) Received: by mx01.sc1.parodius.com (Postfix, from userid 1000) id 167AF1CC068; Sat, 22 Mar 2008 10:20:37 -0700 (PDT) Date: Sat, 22 Mar 2008 10:20:37 -0700 From: Jeremy Chadwick To: TooMany Secrets Message-ID: <20080322172037.GA35505@eos.sc1.parodius.com> References: <20080322144243.GB31702@eos.sc1.parodius.com> <20080322154039.GA33018@eos.sc1.parodius.com> 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 17:20:37 -0000 On Sat, Mar 22, 2008 at 05:08:57PM +0100, TooMany Secrets wrote: > > $ echo 'int main(void) { return 0; }' > tmp.c > > $ gcc -Wchar-subscripts -o x tmp.c > > This works fine under a normal user. Under root... also!!! > (note that I really make a strong verification about ccache use; > deleted from make.conf, deleted from .cshrc's root and deleted port > ccache). Then it's something that's happening in the buildworld framework. You might have some weirder stuff in /etc/make.conf, or /etc/src.conf. The src.conf stuff would affect your buildworld capabilities. > One thing I don't know about it, is the "cc1"... There isn't any "cc1" > in the system, and also anything about ccache with it (sorry for my > bad english). If I remember correctly, cc1 is the name of the temporary compiler (it's gcc) built in /usr/obj. buildworld builds gcc, and uses that copy of gcc to compile world, rather than /usr/bin/gcc. > I'm trying to make a buildworld now, and at the moment... But here it > is; without ccache and only with system's gcc: > > ===> lib/csu/i386-elf (obj,depend,all,install) > rm -f .depend > 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/i38 > 6-elf/crt1.c /usr/src/lib/csu/i386-elf/crti.S /usr/src/lib/csu/i386-elf/crtn.S > cc -O2 -fno-strict-aliasing -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 > -Wpointer-arith > -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow > -Wcast-align -Wunused-parameter -Wchar-subscripts -Winline -Wnested > -externs -Wredundant-decls -Wno-pointer-sign -c /usr/src/lib/csu/i386-elf/crt1.c > cc1: error: unrecognized command line option "-Wchar-subscripts" I can't explain what's going on here. I don't have this problem. FWIW, there's some historic reports of this kind of issue, with different issues. Some are due to users dotfiles, others are due to mixed gcc versions on the system (users trying to use gcc 3.4 with gcc 4.x flags like -Wno-pointer-sign), and others are due to CFLAGS modifications. http://groups.google.com/group/comp.unix.bsd.freebsd.misc/browse_thread/thread/a0af29b813232cd1/a1082e5d4200d10a?hl=en&lnk=st&q=gcc+unrecognized+command+line+option+freebsd#a1082e5d4200d10a http://groups.google.com/group/mailing.freebsd.ports/browse_thread/thread/15e5e69b5a93413a/ca03b7c3e08c01a2?hl=en&lnk=st&q=gcc+unrecognized+command+line+option#ca03b7c3e08c01a2 -- | 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 |