From owner-freebsd-current@FreeBSD.ORG Wed Aug 29 08:41:25 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 0A057106564A; Wed, 29 Aug 2012 08:41:25 +0000 (UTC) (envelope-from eirnym@gmail.com) Received: from mail-iy0-f182.google.com (mail-iy0-f182.google.com [209.85.210.182]) by mx1.freebsd.org (Postfix) with ESMTP id B36968FC15; Wed, 29 Aug 2012 08:41:24 +0000 (UTC) Received: by ialo14 with SMTP id o14so806086ial.13 for ; Wed, 29 Aug 2012 01:41:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; bh=Py+ILvNnoDz914k7edfGL2IiK22n1vMZR9XuhD89TDM=; b=Qbk3CgJ97GXx89/sAVWTdLxhyvlxJ4lqVzEZalpEmxrCIKmh440ZpOJLYp81HFuOgF CUpe4pT111uDqvLLj08nFc9bi86tQJM+EupuThYQw5l0QX/qJBZvTyxEg56jajWzxfjq 4bOyn+XJCGoU4iXDcFFtU4suSDU1F33oUqbtOeJzDFF4ILInkoi6UlE6qEk70Nzhvsv3 d53UU71f/MXvyLtLfPO6iulEImnbxqUOfubAC6W/k66g3Sfw1fZ0a6j/nxXM8H5R4BJX oqHY1p3R7N8tJjvWweAn3rRtUweCdBTi1wzKhNJQLX/92zbXrFJmxUjybIQaG1aJ8Ajc vIhQ== Received: by 10.42.74.8 with SMTP id u8mr669468icj.16.1346229683134; Wed, 29 Aug 2012 01:41:23 -0700 (PDT) MIME-Version: 1.0 Received: by 10.64.46.41 with HTTP; Wed, 29 Aug 2012 01:41:02 -0700 (PDT) In-Reply-To: <503D35DA.9060704@FreeBSD.org> References: <503D12CB.4000208@FreeBSD.org> <503D29F4.1030804@FreeBSD.org> <503D35DA.9060704@FreeBSD.org> From: Eir Nym Date: Wed, 29 Aug 2012 12:41:02 +0400 Message-ID: To: Dimitry Andric Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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: Wed, 29 Aug 2012 08:41:25 -0000 -- Eir Nym On 29 August 2012 01:19, Dimitry Andric wrote: > On 2012-08-28 23:05, Eir Nym wrote: > ... > >> This one for example: >> cc -c -O2 -pipe -fno-strict-aliasing -std=3Dc99 -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=3Dkernel >> -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 =3D=3D 1 && args->alignment =3D=3D 1 && != args->isfl >> && >> >> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > > Weird, how are you building the xfs module? It has WERROR=3D 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. :) head SVN revision 239793, http://eroese.org/_/_/pub/bsd/GENERIC_PF.amd64 =E2=80=94 kernel config