From owner-freebsd-current@FreeBSD.ORG Wed Aug 29 08:43:19 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 CA8A31065679; Wed, 29 Aug 2012 08:43:19 +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 7D5888FC16; Wed, 29 Aug 2012 08:43:19 +0000 (UTC) Received: by ialo14 with SMTP id o14so809309ial.13 for ; Wed, 29 Aug 2012 01:43:18 -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=e3ku7XqqTm9PXdZ9sfQGHnxbMgmLByhPVmG1gIrD6is=; b=q/pE1egqouJZOAyzX6UoN1I2M/QQ7KwnmoJjyZYPn0brhXIkc1iYHaDWfQLw6Rv8kp gqi1BK+ATb787K/pulpN+W6rlW+MUXQh3a2qAa5vgElQpx9wDNFYc9+RvJHEqTLtWgau 3Wj5pu/DWeRWEdGPGzd4hi61G6d6LV6sMystr8yFz0PBLU0HW2cLM3vGjRGkRYPB1/dB /91Pqdp3XYUXmGNAXawVIv9uAEETN/XPc6wuhioBwKh94mm2JeDXPJxF3cjo144jhrMC xoJnvmOFbO8SdqPyjcFQZSvoTquyEfu/2+D1Bkgbv135OWfA1HigsoBoVHgrZ5ZGWG8P 331A== Received: by 10.42.84.69 with SMTP id k5mr703513icl.5.1346229798824; Wed, 29 Aug 2012 01:43:18 -0700 (PDT) MIME-Version: 1.0 Received: by 10.64.46.41 with HTTP; Wed, 29 Aug 2012 01:42:58 -0700 (PDT) In-Reply-To: References: <503D12CB.4000208@FreeBSD.org> <503D29F4.1030804@FreeBSD.org> <503D35DA.9060704@FreeBSD.org> From: Eir Nym Date: Wed, 29 Aug 2012 12:42:58 +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:43:19 -0000 -- Eir Nym On 29 August 2012 12:41, Eir Nym wrote: > -- 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 http://eroese.org/_/_/pub/bsd/kernel.amd64.GENERIC_PF =E2=80=94 full logs f= or it.