From owner-freebsd-current@FreeBSD.ORG Mon Aug 13 08:23:01 2007 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2CF3916A41A for ; Mon, 13 Aug 2007 08:23:01 +0000 (UTC) (envelope-from mime@traveller.cz) Received: from nxm.secservers.com (nxm.secservers.com [89.185.226.22]) by mx1.freebsd.org (Postfix) with ESMTP id B2D1213C46C for ; Mon, 13 Aug 2007 08:23:00 +0000 (UTC) (envelope-from mime@traveller.cz) Received: from [127.0.0.1] (nxm.secservers.com. [89.185.226.22]) by nxm.secservers.com (8.13.4/8.13.8) with ESMTP id l7D8AKCh035694; Mon, 13 Aug 2007 10:10:20 +0200 (CEST) (envelope-from mime@traveller.cz) From: Michal Mertl To: Trigve Siver In-Reply-To: <179073.30151.qm@web52707.mail.re2.yahoo.com> References: <179073.30151.qm@web52707.mail.re2.yahoo.com> Content-Type: text/plain Date: Mon, 13 Aug 2007 10:10:12 +0200 Message-Id: <1186992612.1207.9.camel@genius.i.cz> Mime-Version: 1.0 X-Mailer: Evolution 2.10.3 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit Cc: freebsd-current@freebsd.org Subject: Re: Error while 'make buildworld' X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 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: Mon, 13 Aug 2007 08:23:01 -0000 Trigve Siver wrote: > Hi all, > > I'm trying to compile freebsd current (to test PMC) from cvs... But when I try to 'make buildworld' it throw me this error: > //-------------- > ... > /usr/local/libexec/ccache/world-cc -O1 -pipe -O2 -pipe -s -O2 -pipe -s -I. -DIN_GCC -DHAVE_CONFIG_H -DPREFIX=\"/usr\" -I/usr/obj/usr/src/gnu/usr.bin/cc/cc_tools/../cc_tools -I/usr/src/gnu/usr.bin/cc/cc_tools/../cc_tools -I/usr/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcc -I/usr/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcc/config -I/usr/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcclibs/include -I/usr/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcclibs/libcpp/include -I/usr/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcclibs/libdecnumber -g -DGENERATOR_FILE -DHAVE_CONFIG_H -I/usr/obj/usr/src/tmp/legacy/usr/include -c /usr/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcc/gengtype.c > In file included from ./tm.h:4, > from /usr/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcc/gengtype.c:24: > ./options.h:375: error: redeclaration of enumerator `OPT_d' > ./options.h:373: error: previous definition of 'OPT_d' was here > ./options.h:898: error: redeclaration of enumerator `OPT_w' > ./options.h:896: error: previous definition of 'OPT_w' was here > *** Error code 1 > > Stop in /usr/src/gnu/usr.bin/cc/cc_tools. > *** Error code 1 > > Stop in /usr/src. > *** Error code 1 > > Stop in /usr/src. > *** Error code 1 > > Stop in /usr/src. > //----------------- > > uname: > > FreeBSD pentium4.domain 6.2-STABLE FreeBSD 6.2-STABLE #0: Sat Aug 11 > 12:16:01 UTC 2007 > dodes@pentium4.domain:/usr/obj/usr/src/sys/CUSTOM i386 > > I've tried to search the net but haven't found anything. I encounter the problem too and I am quite certain it is cause by the locale settings (at least in my case). As src/UPDATING suggests, you should build with "sanitized" environment (e.g. precede your build sesssion by 'env -i' or unset LC_* or LANG or similar. HTH Michal