From owner-freebsd-stable@FreeBSD.ORG Sun Jan 3 14:03:05 2010 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 1AB3B1065670 for ; Sun, 3 Jan 2010 14:03:05 +0000 (UTC) (envelope-from jilles@stack.nl) Received: from mx1.stack.nl (relay04.stack.nl [IPv6:2001:610:1108:5010::107]) by mx1.freebsd.org (Postfix) with ESMTP id D38EF8FC14 for ; Sun, 3 Jan 2010 14:03:04 +0000 (UTC) Received: from toad.stack.nl (toad.stack.nl [IPv6:2001:610:1108:5010::135]) by mx1.stack.nl (Postfix) with ESMTP id D31EE1DD647; Sun, 3 Jan 2010 15:03:03 +0100 (CET) Received: by toad.stack.nl (Postfix, from userid 1677) id C668673F9D; Sun, 3 Jan 2010 15:03:03 +0100 (CET) Date: Sun, 3 Jan 2010 15:03:03 +0100 From: Jilles Tjoelker To: "E. O." Message-ID: <20100103140303.GA1899@stack.nl> References: <86095ec11001021301i25e91191kdcc2a1673795dce7@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <86095ec11001021301i25e91191kdcc2a1673795dce7@mail.gmail.com> User-Agent: Mutt/1.5.18 (2008-05-17) Cc: freebsd-stable@freebsd.org Subject: Re: locale-related build problems (was: kernel build failed) 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: Sun, 03 Jan 2010 14:03:05 -0000 On Sat, Jan 02, 2010 at 11:01:06PM +0200, E. O. wrote: > pls help me , kernel always returns an error > make buildkernel > and error > ./pci_if.h:214: error: expected '=', ',', ';', 'asm' or '__attribute__' > before '_RELEASE_MS' > ./pci_if.h:214: error: stray '\335' in program > > ./pci_if.h:226: error: stray '\335' in program > ./pci_if.h:226: error: expected '=', ',', ';', 'asm' or '__attribute__' > before '_MS' > ./pci_if.h:226: error: stray '\335' in program > ./pci_if.h:238: error: stray '\335' in program > ./pci_if.h:238: error: expected '=', ',', ';', 'asm' or '__attribute__' > before '_MS' > ./pci_if.h:238: error: stray '\335' in program > [...] The build system appears not to cope with locales. My guess is that you're using Turkish locale, which has dotless and dotted uppercase and lowercase 'i', where the uppercase version of the dotted 'i' is an uppercase dotted 'I'. awk(1) knows about this and generates a file that conforms to Turkish conventions but obviously will not work. As a workaround, you can run your builds with LC_ALL=C in the environment, disabling locale support. (e.g. env LC_ALL=C make buildkernel). This should be fixed by adding LC_ALL=C somewhere in the build process, possibly only for these awk commands. -- Jilles Tjoelker