From owner-freebsd-current@FreeBSD.ORG Sun Nov 18 09:18:29 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 C6AA216A417 for ; Sun, 18 Nov 2007 09:18:29 +0000 (UTC) (envelope-from martin@gneto.com) Received: from proxy2.bredband.net (proxy2.bredband.net [195.54.101.72]) by mx1.freebsd.org (Postfix) with ESMTP id 8135B13C46A for ; Sun, 18 Nov 2007 09:18:29 +0000 (UTC) (envelope-from martin@gneto.com) Received: from ironport2.bredband.com (195.54.101.122) by proxy2.bredband.net (7.3.127) id 47285ABF006DCA4C for freebsd-current@freebsd.org; Sun, 18 Nov 2007 07:55:39 +0100 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvVoAJNwP0dT47UeRmdsb2JhbACBX40iAQEBNw Received: from ua-83-227-181-30.cust.bredbandsbolaget.se (HELO mailbox.gneto.com) ([83.227.181.30]) by ironport2.bredband.com with ESMTP; 18 Nov 2007 07:55:45 +0100 Received: from euklides.gneto.com (euklides.gneto.com [192.168.10.11]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mailbox.gneto.com (Postfix) with ESMTP id 039B42A688 for ; Sun, 18 Nov 2007 07:55:05 +0100 (CET) Message-ID: <473FE18B.2090303@gneto.com> Date: Sun, 18 Nov 2007 07:54:03 +0100 From: Martin Nilsson User-Agent: Thunderbird 2.0.0.9 (X11/20071117) MIME-Version: 1.0 To: freebsd-current@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Setting LANG=sv_SE.ISO_8859-1 breaks 7.0 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: Sun, 18 Nov 2007 09:18:29 -0000 Can we have this fixed before 7.0-R or at least unset LANG in the Makefile? If I add the following line to the default profile in /etc/login.conf :lang=sv_SE.ISO_8859-1:\ Awk will do something really strange when creating an options.h file when building gcc. The build ends with the error: cc -O2 -fno-strict-aliasing -pipe -I. -DIN_GCC -DHAVE_CONFIG_H -DPREFIX=\"/usr\" -I/usr/obj/home/FreeBSD/RELENG_7/src/gnu/usr.bin/cc/cc_tools/../cc_tools -I/home/FreeBSD/RELENG_7/src/gnu/usr.bin/cc/cc_tools/../cc_tools -I/home/FreeBSD/RELENG_7/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcc -I/home/FreeBSD/RELENG_7/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcc/config -I/home/FreeBSD/RELENG_7/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcclibs/include -I/home/FreeBSD/RELENG_7/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcclibs/libcpp/include -I/home/FreeBSD/RELENG_7/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcclibs/libdecnumber -g -DGENERATOR_FILE -DHAVE_CONFIG_H -I/usr/obj/home/FreeBSD/RELENG_7/src/tmp/legacy/usr/include -c /home/FreeBSD/RELENG_7/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcc/gengtype.c In file included from ./tm.h:4, from /home/FreeBSD/RELENG_7/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcc/gengtype.c:24: ./options.h:901: error: redeclaration of enumerator 'OPT_w' ./options.h:899: error: previous definition of 'OPT_w' was here *** Error code 1 Stop in /home/FreeBSD/RELENG_7/src/gnu/usr.bin/cc/cc_tools. *** Error code 1 Stop in /home/FreeBSD/RELENG_7/src. *** Error code 1 Stop in /home/FreeBSD/RELENG_7/src. *** Error code 1 Stop in /home/FreeBSD/RELENG_7/src. I think this file is created with src/contrib/gcc/opth-gen.awk tail /usr/obj/home/FreeBSD/RELENG_7/src/gnu/usr.bin/cc/cc_tools/options.h OPT_trigraphs, /* -trigraphs */ OPT_undef, /* -undef */ OPT_w, /* -w */ OPT_v, /* -v */ OPT_w, /* -w */ OPT_version, /* -version */ N_OPTS }; #endif /* OPTIONS_H */ OPT_w is present twice! The awk script is supposed to remove duplicates and sort the result but it does not seem to work with our i18n support. /Martin