Unable to build world w/o clang on 11

Dimitry Andric dim at FreeBSD.org
Tue Nov 11 19:21:52 UTC 2014


On 11 Nov 2014, at 20:04, Chris H <bsd-lists at bsdforge.com> wrote:
...
> But sadly. blowing away ports, src, and obj. Then checking out
> src r274382, and performing a buildworld. Although I got further.
> it bombed at:
> 
> ===> usr.sbin/hyperv (all)
> ===> usr.sbin/hyperv/tools (all)
> cc  -O2 -pipe
> -I/usr/src/usr.sbin/hyperv/tools/../../../sys/dev/hyperv/utiliti
> es -std=gnu99 -fstack-protector -Wsystem-headers -Werror -Wall -Wno-format-y2k
> -
> W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes
> -Wpointer-arith
> -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wunused-parameter
> -Wcast-align -Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls
> -Wold
> -style-definition -Wno-pointer-sign   -c
> /usr/src/usr.sbin/hyperv/tools/../../..
> /contrib/hyperv/tools/hv_kvp_daemon.c
> cc1: warnings being treated as errors
> /usr/src/usr.sbin/hyperv/tools/../../../contrib/hyperv/tools/hv_kvp_daemon.c:
> In
> function 'kvp_get_ip_info':
> /usr/src/usr.sbin/hyperv/tools/../../../contrib/hyperv/tools/hv_kvp_daemon.c:814
> : warning: 'ip_buffer' may be used uninitialized in this function

Yep, this is another false positive from gcc.  I've mailed a proposed
workaround to Xin Li, but for now, if you compile world and kernel with
gcc, use NO_WERROR= and WERROR= in your make.conf.  Especially the
kernel still needs a bunch of fixes to make it work with gcc again.

It's a pity the gcc tinderboxes have been taken offline.  Maybe this can
be added to the FreeBSD Jenkins instance now?

-Dimitry

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 194 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.freebsd.org/pipermail/freebsd-toolchain/attachments/20141111/03f07d68/attachment.sig>


More information about the freebsd-toolchain mailing list