From owner-freebsd-current@FreeBSD.ORG Tue Aug 28 21:05:43 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 0ED1E1065670; Tue, 28 Aug 2012 21:05:43 +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 BAB488FC21; Tue, 28 Aug 2012 21:05:42 +0000 (UTC) Received: by ialo14 with SMTP id o14so14822876ial.13 for ; Tue, 28 Aug 2012 14:05:41 -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=x2a0nXXvCQ19h70X5FNnvMrDW6/6WDde6wrdcFnv5cw=; b=VMk5r7ZHd0nTT9iYz/KDJvxaIRGIWf0QhzgXls7iq3sBQEdigT9sRB0fNI0hUJhokE ktZ8OpQlipChqOCrz7Q3Lp44swPjJHhsa/f/RMRqMZu8zrT8iAL9LGKkkS53ebzw53AZ M9dFYYDR5UuBanqPwDQDWifF9jDRMkk2T8XFKWWfdyYs0CeEqOesumeB14TMVvb2A5TE 80QD9JmnSu0s7bR45oLTdgNBknSEZ5k+rCYm5PXGaEooOh7UL+EX47oFxqdZk8BAV1F1 t94fitfyBKSYWCHa+C0/6HxBP2+BTg/KyvffwlZ+7terSkgJkRpREETQ48oZWbdeTQPw jW4w== Received: by 10.50.46.133 with SMTP id v5mr14528833igm.63.1346187941836; Tue, 28 Aug 2012 14:05:41 -0700 (PDT) MIME-Version: 1.0 Received: by 10.64.46.41 with HTTP; Tue, 28 Aug 2012 14:05:21 -0700 (PDT) In-Reply-To: <503D29F4.1030804@FreeBSD.org> References: <503D12CB.4000208@FreeBSD.org> <503D29F4.1030804@FreeBSD.org> From: Eir Nym Date: Wed, 29 Aug 2012 01:05:21 +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: Tue, 28 Aug 2012 21:05:43 -0000 -- Eir Nym On 29 August 2012 00:28, Dimitry Andric wrote: > On 2012-08-28 21:51, Eir Nym wrote: >> >> On 28 August 2012 22:49, Dimitry Andric wrote: >>> >>> On 2012-08-28 18:31, Eir Nym wrote: >>> What is the error you were getting on amd64? >> >> i386 never failed, amd64 =E2=80=94 always > > > Please post the *exact* error message, otherwise I will not be able to > help you. > 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 && ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~= ~ /usr/head/src/sys/gnu/fs/xfs/xfs_alloc.c:1492:11: note: uninitialized use occurs here *fbnop =3D fbno; ^~~~ /usr/head/src/sys/gnu/fs/xfs/xfs_alloc.c:1449:7: note: remove the 'if' if its condition is always true else if (args->minlen =3D=3D 1 && args->alignment =3D=3D 1 && !args= ->isfl && ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~= ~ /usr/head/src/sys/gnu/fs/xfs/xfs_alloc.c:1449:11: error: variable 'fbno' is used uninitialized whenever '&&' condition is false [-Werror,-Wsometimes-uninitialized] else if (args->minlen =3D=3D 1 && args->alignment =3D=3D 1 && !args= ->isfl && ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/head/src/sys/gnu/fs/xfs/xfs_alloc.c:1492:11: note: uninitialized use occurs here *fbnop =3D fbno; ^~~~ /usr/head/src/sys/gnu/fs/xfs/xfs_alloc.c:1449:11: note: remove the '&&' if its condition is always true else if (args->minlen =3D=3D 1 && args->alignment =3D=3D 1 && !args= ->isfl && ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~= ~ /usr/head/src/sys/gnu/fs/xfs/xfs_alloc.c:1449:11: error: variable 'fbno' is used uninitialized whenever '&&' condition is false [-Werror,-Wsometimes-uninitialized] else if (args->minlen =3D=3D 1 && args->alignment =3D=3D 1 && !args= ->isfl && ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/head/src/sys/gnu/fs/xfs/xfs_alloc.c:1492:11: note: uninitialized use occurs here *fbnop =3D fbno; ^~~~ /usr/head/src/sys/gnu/fs/xfs/xfs_alloc.c:1449:11: note: remove the '&&' if its condition is always true else if (args->minlen =3D=3D 1 && args->alignment =3D=3D 1 && !args= ->isfl && ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/head/src/sys/gnu/fs/xfs/xfs_alloc.c:1449:11: error: variable 'fbno' is used uninitialized whenever '&&' condition is false [-Werror,-Wsometimes-uninitialized] else if (args->minlen =3D=3D 1 && args->alignment =3D=3D 1 && !args= ->isfl && ^~~~~~~~~~~~~~~~~ /usr/head/src/sys/gnu/fs/xfs/xfs_alloc.c:1492:11: note: uninitialized use occurs here *fbnop =3D fbno; ^~~~ /usr/head/src/sys/gnu/fs/xfs/xfs_alloc.c:1449:11: note: remove the '&&' if its condition is always true else if (args->minlen =3D=3D 1 && args->alignment =3D=3D 1 && !args= ->isfl && ^~~~~~~~~~~~~~~~~~~~ /usr/head/src/sys/gnu/fs/xfs/xfs_alloc.c:1430:20: note: initialize the variable 'fbno' to silence this warning xfs_agblock_t fbno; ^ =3D 0 4 errors generated. *** [xfs_alloc.o] Error code 1