From owner-freebsd-current@FreeBSD.ORG Tue Aug 28 21:19:27 2012 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 59ED6106564A for ; Tue, 28 Aug 2012 21:19:27 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from tensor.andric.com (cl-327.ede-01.nl.sixxs.net [IPv6:2001:7b8:2ff:146::2]) by mx1.freebsd.org (Postfix) with ESMTP id 12B4B8FC0C for ; Tue, 28 Aug 2012 21:19:27 +0000 (UTC) Received: from [192.168.0.6] (spaceball.home.andric.com [192.168.0.6]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id 5482A5C59; Tue, 28 Aug 2012 23:19:26 +0200 (CEST) Message-ID: <503D35DA.9060704@FreeBSD.org> Date: Tue, 28 Aug 2012 23:19:22 +0200 From: Dimitry Andric Organization: The FreeBSD Project User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:15.0) Gecko/20120815 Thunderbird/15.0 MIME-Version: 1.0 To: Eir Nym References: <503D12CB.4000208@FreeBSD.org> <503D29F4.1030804@FreeBSD.org> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: FreeBSD Mail Lists Subject: Re: Can't build FreeBSD-head with CLANG 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: Tue, 28 Aug 2012 21:19:27 -0000 On 2012-08-28 23:05, Eir Nym wrote: ... > This one for example: > cc -c -O2 -pipe -fno-strict-aliasing -std=c99 -Wall > -Wredundant-decls -Wnested-externs -Wstrict-prototypes > -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef > -Wno-pointer-sign -fformat-extensions -Wmissing-include-dirs > -fdiagnostics-show-option -Wno-error-tautological-compare > -Wno-error-empty-body -Wno-error-parentheses-equality -nostdinc -I. > -I/usr/head/src/sys -I/usr/head/src/sys/contrib/altq -D_KERNEL > -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h > -fno-omit-frame-pointer -mno-aes -mno-avx -mcmodel=kernel > -mno-red-zone -mno-mmx -mno-sse -msoft-float > -fno-asynchronous-unwind-tables -ffreestanding -fstack-protector > -Werror /usr/head/src/sys/gnu/fs/xfs/xfs_alloc.c > -I/usr/head/src/sys/gnu/fs/xfs/FreeBSD > -I/usr/head/src/sys/gnu/fs/xfs/FreeBSD/support > -I/usr/head/src/sys/gnu/fs/xfs > /usr/head/src/sys/gnu/fs/xfs/xfs_alloc.c:1449:11: error: variable > 'fbno' is used uninitialized whenever 'if' condition is false > [-Werror,-Wsometimes-uninitialized] > else if (args->minlen == 1 && args->alignment == 1 && !args->isfl && > ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Weird, how are you building the xfs module? It has WERROR= in its Makefile, so the '-Werror' option above should not be there. This is because the XFS code was imported more than 6 years ago, and is very unlikely to ever be fixed. :)