Re: Can't build FreeBSD-head with CLANG

看板FB_current作者時間13年前 (2012/08/29 17:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串9/14 (看更多)
-- Eir Nym On 29 August 2012 01:19, Dimitry Andric <dim@freebsd.org> 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 _______________________________________________ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"
文章代碼(AID): #1GFTfFU6 (FB_current)
討論串 (同標題文章)
文章代碼(AID): #1GFTfFU6 (FB_current)