Date: Wed, 29 Aug 2012 01:05:21 +0400 From: Eir Nym <eirnym@gmail.com> To: Dimitry Andric <dim@freebsd.org> Cc: FreeBSD Mail Lists <freebsd-current@freebsd.org> Subject: Re: Can't build FreeBSD-head with CLANG Message-ID: <CAO8GK0qpK=S1qhq3mPP6AXpgg15Wop=ghPRpD=e7MudvPBsx1w@mail.gmail.com> In-Reply-To: <503D29F4.1030804@FreeBSD.org> References: <CAO8GK0pQCqAJ--NkfXm%2Bc7%2Bs-_REGA3b4%2BJgao4pmE9gCo_qzA@mail.gmail.com> <503D12CB.4000208@FreeBSD.org> <CAO8GK0qHZPnpCa0zBiXYtghObAmsoe%2Bzkd0tDMQ=2VWdX_8JMg@mail.gmail.com> <503D29F4.1030804@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
-- Eir Nym On 29 August 2012 00:28, Dimitry Andric <dim@freebsd.org> wrote: > On 2012-08-28 21:51, Eir Nym wrote: >> >> On 28 August 2012 22:49, Dimitry Andric <dim@freebsd.org> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAO8GK0qpK=S1qhq3mPP6AXpgg15Wop=ghPRpD=e7MudvPBsx1w>