From owner-freebsd-stable@FreeBSD.ORG Tue Jun 12 21:07:55 2012 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 3F238106564A for ; Tue, 12 Jun 2012 21:07:55 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from tensor.andric.com (tensor.andric.com [87.251.56.140]) by mx1.freebsd.org (Postfix) with ESMTP id EDC678FC08 for ; Tue, 12 Jun 2012 21:07:54 +0000 (UTC) Received: from [IPv6:2001:7b8:3a7:0:2cb1:d09b:e4ef:7451] (unknown [IPv6:2001:7b8:3a7:0:2cb1:d09b:e4ef:7451]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id D9AC95C37; Tue, 12 Jun 2012 23:07:53 +0200 (CEST) Message-ID: <4FD7AFA8.8030807@FreeBSD.org> Date: Tue, 12 Jun 2012 23:07:52 +0200 From: Dimitry Andric Organization: The FreeBSD Project User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:14.0) Gecko/20120607 Thunderbird/14.0 MIME-Version: 1.0 To: "S.N.Grigoriev" References: <201206121325.q5CDPNnt078479@freefall.freebsd.org> <33681339512137@web15h.yandex.ru> In-Reply-To: <33681339512137@web15h.yandex.ru> X-Enigmail-Version: 1.5a1pre Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: FreeBSD Stable Subject: Re: CLang and WERROR 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: Tue, 12 Jun 2012 21:07:55 -0000 On 2012-06-12 16:42, S.N.Grigoriev wrote: > I've found out that CLang requires again NO_WERROR= and WERROR= statements in /etc/src.conf to build kernel from fresh sources. Older sources (at least up to June 4) did not require that. The following error occures: > > clang -O2 -pipe -nostdinc -I/usr/include -I. -I/usr/src/sys/dev/aic7xxx/aicasm -std=gnu99 -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wunused-parameter -Wcast-align -Wno-pointer-sign -o aicasm aicasm.o aicasm_symbol.o aicasm_gram.o aicasm_macro_gram.o aicasm_scan.o aicasm_macro_scan.o -ll > clang: error: argument unused during compilation: '-nostdinc' ... Ah, thanks for noticing. I had forgotten to merge one additional change that was needed. Please update your stable/9 to r236975, which should fix this.